I hereby claim:
- I am jonsecchis on github.
- I am jonsecchis (https://keybase.io/jonsecchis) on keybase.
- I have a public key ASBNNwtmGWuZ63H7FnGHw2tSsO4K8c15I8sUTSa1QNXHfAo
To claim this, I am signing this object:
import os | |
import binascii | |
def replicate(path): | |
# | |
# Replicate a file given the path of the current file. Opens current file | |
# and new file and reads all lines into new file. | |
# | |
with open(get_new_filename(path), "w") as newfile, open(path) as program: | |
for line in program: |
IFS=' ' read a b <<< "varA varB" |
I hereby claim:
To claim this, I am signing this object:
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty |
tcpdump -nni $IF -e icmp[icmptype] == 8 |
# Enable ipv4 forwarding on the gateway machine | |
sudo iptables -P FORWARD ACCEPT | |
sysctl net.ipv4.conf.all.forwarding=1 | |
# Add static route on linux | |
sudo ip route add 172.200.0.0/16 via 10.10.6.22 dev wlp3s0 | |
# Add static route on macos | |
sudo route add 172.200.0.0/16 10.10.6.22 |
certutil -L -d sql:${HOME}/.mozilla/firefox/profile/ |
# Map Docker socket | |
RUN curl https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz > docker-latest.tar.gz | |
RUN tar --strip-components=1 -xzvf docker-latest.tar.gz -C /usr/local/bin | |
RUN rm -rf docker-latest.tar.gz |
# export line by line vars declared like: var=value | |
vars() { | |
IFS='' | |
while read line; do | |
export $line | |
done < $1 | |
} |
if [[ $(cat /proc/self/cgroup | grep -c docker) -eq 0 ]]; then | |
printf "Outside Docker\n" | |
else | |
printf "Inside Docker\n" | |
fi |