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 | |
file=$(mktemp ~/Documents/Pastes/XXXXXX) | |
mv $file $file.html | |
file="$file.html" | |
chmod 644 ${file} | |
[[ ! -z "$1" ]] && lang="-s $1" | |
cat - > ${file}.in |
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
systemctl stop squid.service | |
rm -rf /var/spool/squid | |
mkdir -p /var/spool/squid | |
chown proxy: /var/spool/squid | |
squid -z | |
systemctl start squid.service |
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
; -*-conf-*- | |
api = 2 | |
core = 7.x | |
; Commerce kickstart. | |
projects[commerce_kickstart][type] = core | |
; Be2Bill needed modules. | |
projects[commerce_cardonfile] = "2.0-beta2" | |
projects[commerce_be2bill] = "1.x-dev" |
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 pkg_resources | |
for pkg in pkg_resources.working_set: | |
if pkg.requires(): | |
print '{} => {}'.format(pkg.key, ', '.join(req.project_name for req in pkg.requires())) | |
else: | |
print pkg.key |
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 time | |
import contextlib | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
FB_USER = "YOUR FACEBOOK MAIL" | |
FB_PASS = "YOUR FACEBOOK PASSWORD" | |
backoff_time = 5 |
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 | |
if [[ -z "$1" ]]; then | |
echo "Need filename" | |
exit 1 | |
fi | |
file_ext=$(echo $1 |awk -F . '{if (NF>1) {print $NF}}') | |
file=$(mktemp /tmp/XXXXXX.$file_ext) | |
cp "$1" $file |
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
Package: lxc-templates | |
Architecture: linux-any | |
Depends: lxc (>= 0.8.0), ${misc:Depends} | |
Recommends: busybox-static, | |
debootstrap | cdebootstrap, | |
openssl, | |
rsync, | |
uuid-runtime, | |
xz-utils | |
Suggests: qemu-user-static |
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
Verifying that +kotnik is my Bitcoin username. You can send me #bitcoin here: https://onename.io/kotnik |
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
api = 2 | |
core = 7.x | |
; Drupal core. | |
projects[drupal][type] = core | |
projects[drupal][version] = 7.32 | |
projects[drupal][patch][] = "https://drupal.org/files/issues/install-redirect-on-empty-database-728702-36.patch" | |
; Platform indicator module. | |
projects[platform][version] = 1.2 |
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
$ git push | |
Counting objects: 3, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (3/3), done. | |
Writing objects: 100% (3/3), 567 bytes | 0 bytes/s, done. | |
Total 3 (delta 1), reused 0 (delta 0) | |
Processing activity environment.push | |
Found 1 new commit. |
OlderNewer