Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
To remove a submodule you need to:
// run this on the master: | |
// $ du -sk MAG-* |sort -rn|head -20 | while read _line ; do _ar=( ${_line} ); echo -n "\"$(cat ${_ar[1]}/name-utf8.txt)\", "; done ;echo "" | |
_array=[ ] | |
_array.each { | |
JOB_NAME="Magnifier/${it}" | |
KEEP_LAST_NUM_OF_BUILDS=2 | |
Jenkins.instance.getItemByFullName("${JOB_NAME}").builds.findAll { true }.each { | |
if (KEEP_LAST_NUM_OF_BUILDS) { |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: kube-registry-v0 | |
namespace: kube-system | |
labels: | |
k8s-app: kube-registry | |
version: v0 | |
spec: | |
replicas: 1 |
require "socket" | |
socket = TCPSocket.open("www.theonion.com", "80") | |
TCPSocket.open("www.theonion.com", 80) do |socket| | |
socket.puts "GET / HTTP/1.0\n\n" | |
puts socket.read | |
end |
require 'socket' | |
server = TCPServer.open(3010) # Socket to listen on port | |
loop do # Servers run forever | |
Thread.start(server.accept) do |client| | |
puts "client connected" | |
#do stuff | |
end | |
end |
require 'socket' | |
gs = TCPServer.open(0) | |
socks = [gs] | |
addr = gs.addr | |
addr.shift | |
puts "server is on #{addr.join(':')}" | |
while true | |
nsock = select(socks) |