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
http://blohg.org/ | |
http://getnikola.com/ | |
http://markdoc.org/ | |
http://mulholland.xyz/docs/ivy/ | |
http://mynt.mirroredwhite.com/ | |
http://obraz.pirx.ru/ | |
http://pelican.readthedocs.org/en/latest/ | |
http://pyfolio.org/ | |
http://pypi.python.org/pypi/jules | |
http://pythonhosted.org/swg/ |
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
# workon myenv | |
# cdvirtualenv | |
# | |
## prefix is required both for compilation and for npm: | |
# export PREFIX=$(pwd) | |
# export NODEVER=0.10.18 | |
# | |
# wget http://nodejs.org/dist/v${NODEVER}/node-v${NODEVER}.tar.gz | |
# tar -zxf node-v${NODEVER}.tar.gz | |
# cd node-v${NODEVER} |
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
MULTITAIL() { | |
if [ "$#" = "0" ]; then | |
echo "MULTITAIL logdir host1 host2 ..." | |
exit 1 | |
fi | |
logdir=$1 | |
shift | |
if [ "$#" = "0" ]; then |
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
# -*- coding: utf-8 -*- | |
import io | |
import os | |
import sys | |
import time | |
import wsgiref.util | |
import uwsgidecorators |
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
#!/usr/bin/env python3 | |
# A script to export (backup) Safari Reading List | |
import os | |
import plistlib | |
with open(os.path.expanduser('~/Library/Safari/Bookmarks.plist'), 'rb') as fp: | |
plist = plistlib.load(fp) | |
bookmarks = [ | |
ch['Children'] for ch in plist['Children'] |
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
-- Transport tabs from one browser to another. This script moves tabs from Safari to Firefox | |
-- config | |
property sourceBrowser : "Safari" | |
property destinationBrowser : "Firefox" | |
on run | |
assertRunning() | |
assertHasOpenWindow() | |
set sourceWindow to assertFrontmost() |
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
#!/usr/bin/env python3 | |
import argparse | |
import ast | |
import os | |
import sys | |
import xlsxwriter | |
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
#!/usr/bin/env python3 | |
import argparse | |
import json | |
import os | |
import re | |
import urllib.parse | |
import urllib.request | |
import xlsxwriter |
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
# Save into salt://_beacons/system_boot.py and then run | |
# saltutil.sync_beacons | |
from __future__ import absolute_import, unicode_literals | |
__virtualname__ = 'system_boot' | |
def beacon(config): | |
""" | |
beacons: |
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
# Save into salt://rename.sls then run the following command: | |
# salt-run state.orch rename pillar='{"old": "OLD_NAME", "new": "NEW_NAME"}' | |
# | |
# For more tips like this, follow https://twitter.com/SaltTips | |
{% set old_name = pillar['old'] %} | |
{% set new_name = pillar['new'] %} | |
Rename minion id: | |
salt.function: |
OlderNewer