$ docker run -d \
--name mysql \
-e MYSQL_ROOT_PASSWORD=mysecretpassword \
mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytumblr | |
import requests | |
from pprint import pprint | |
from re import findall | |
from urlparse import urlparse | |
tumblr_blog = 'blog.viktorpetersson.com' | |
wordpress_site = 'http://viktorpetersson.com/' | |
source_file = '/Users/mvip/Desktop/pages.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"device_name": "My Sync Device", | |
"listening_port" : 0, // 0 - randomize port | |
/* storage_path dir contains auxilliary app files if no storage_path field: .sync dir created in the directory | |
where binary is located. otherwise user-defined directory will be used */ | |
// "storage_path" : "/home/user/.sync", | |
/* set location of pid file */ | |
// "pid_file" : "/var/run/btsync/btsync.pid", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ export FOO="One ""Two ""Three" | |
$ echo $FOO | |
One Two Three | |
$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import sys | |
import cloudsigma | |
import base64 | |
import random | |
import string | |
import re | |
from urlparse import urlparse | |
from datetime import date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get update | |
Ign http://ch.archive.ubuntu.com trusty InRelease | |
Ign http://ch.archive.ubuntu.com trusty-updates InRelease | |
Hit http://ch.archive.ubuntu.com trusty Release.gpg | |
Hit http://ch.archive.ubuntu.com trusty-updates Release.gpg | |
Hit http://ch.archive.ubuntu.com trusty Release | |
Hit http://ch.archive.ubuntu.com trusty-updates Release | |
Hit http://ch.archive.ubuntu.com trusty/main Sources | |
Hit http://ch.archive.ubuntu.com trusty/universe Sources | |
Hit http://ch.archive.ubuntu.com trusty/main amd64 Packages |
I hereby claim:
- I am vpetersson on github.
- I am vpetersson (https://keybase.io/vpetersson) on keybase.
- I have a public key whose fingerprint is BCF0 4347 27E8 6317 2814 9ACF D8F3 CDB3 DBDA 4D52
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONTAINERS="$(docker ps -a -q)" | |
if [ -n "$CONTAINERS" ]; then | |
docker rm "$CONTAINERS" | |
fi | |
for i in $(docker images --filter 'dangling=true' -q); do | |
docker rmi $i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request timeout for icmp_seq 1176 | |
Request timeout for icmp_seq 1177 | |
64 bytes from 216.58.208.78: icmp_seq=1178 ttl=50 time=589.522 ms | |
64 bytes from 216.58.208.78: icmp_seq=1179 ttl=50 time=135.608 ms | |
64 bytes from 216.58.208.78: icmp_seq=1180 ttl=50 time=59.023 ms | |
64 bytes from 216.58.208.78: icmp_seq=1181 ttl=50 time=89.568 ms | |
64 bytes from 216.58.208.78: icmp_seq=1182 ttl=50 time=336.301 ms | |
64 bytes from 216.58.208.78: icmp_seq=1183 ttl=50 time=356.849 ms | |
64 bytes from 216.58.208.78: icmp_seq=1184 ttl=50 time=136.502 ms | |
64 bytes from 216.58.208.78: icmp_seq=1185 ttl=50 time=131.593 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grep -v "^#" /etc/watchdog.conf | |
max-load-1 = 0.5 | |
realtime = yes | |
priority = 1 |
OlderNewer