This file contains hidden or 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 | |
# load resources | |
xrdb -merge .Xresources | |
#xsetroot -solid '#222'& | |
# map caps lock as extra escape | |
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'& | |
# start clipboard manager | |
parcellite& |
This file contains hidden or 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
2013-08-28 10:00:15 jnerula | craige: You sounds confused | |
2013-08-28 10:03:58 craige | Mildly | |
2013-08-28 10:04:15 jnerula | craige: Perhaps your should try your luck... on the goat tower. | |
2013-08-28 10:04:25 craige | tenyks: goat tower | |
2013-08-28 10:04:26 tenyks | You die by the horns of a goat halfway up the goat tower. | |
2013-08-28 10:04:30 craige | O.o |
This file contains hidden or 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
$ lsblk -f | |
NAME FSTYPE LABEL UUID MOUNTPOINT | |
sda | |
└─sda1 | |
sdb | |
├─sdb1 ext2 d5d6e9bb-00e4-4c36-9368-fc956a127bff /boot | |
└─sdb2 crypto_LUKS 6d69874d-1636-4885-9204-c5df79b3cf05 | |
└─sdb2-crypt LVM2_member IlhbJQ-w4qY-VIuZ-U5L5-CzOD-2Ph6-jthlva | |
├─insomnia--vg-swap swap a754ed9c-cac8-4585-a74c-55c5f4a63e2d | |
└─insomnia--vg-root ext4 1f0f06b1-d5c2-49a3-8327-c4f64b7df51a / |
This file contains hidden or 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
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/gevent-0.13.8-py2.7-linux-x86_64.egg/gevent/greenlet.py", line 390, in run | |
result = self._run(*self.args, **self.kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/tenyks_contrib-0.1.26-py2.7.egg/tenykslinkscraper/main.py", line 42, in handle_link_posted | |
headers={'content-type': 'application/json'}) | |
File "/usr/local/lib/python2.7/dist-packages/requests-1.2.3-py2.7.egg/requests/api.py", line 88, in post | |
return request('post', url, data=data, **kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/requests-1.2.3-py2.7.egg/requests/api.py", line 44, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/requests-1.2.3-py2.7.egg/requests/sessions.py", line 335, in request |
This file contains hidden or 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
CONNECTIONS = { | |
'freenode': { | |
'host': 'irc.freenode.net', | |
'port': 6667, | |
'retries': 5, | |
'password': None, | |
'nicks': ['tenyks', 'tenyks_'], | |
'ident': 'tenyks', | |
'realname': 'tenyks IRC bot', | |
'commands': ['/msg nickserv identify foo bar'], |
This file contains hidden or 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 | |
touch -r backup.sql backup.sql.marker | |
while :; | |
do | |
if [[ -n $(find . -name *.sql -newer backup.sql.marker) ]]; | |
then | |
echo "Backup finished at $(date)" | mailx -s 'New Backup' [email protected] | |
break | |
fi |
This file contains hidden or 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
if settings.POST_URL_TITLES: | |
head = requests.head(url) | |
content_type = head.headers['content-type'].split(' ')[0].strip(';') | |
if content_type == 'text/html': | |
request = requests.get(url) | |
soup = BeautifulSoup(request.text) | |
parser = HTMLParser() | |
title = soup.title.string | |
title = parser.unescape(title) | |
self.send('Link title: %s' % title, data) |
This file contains hidden or 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
a:5:{i:0;s:39:"Invalid entity_type specified: customer";i:1;s:5450:"#0 /var/www/www.zumiez.com/releases/32f7b47215f6ab52a8ef92cdee30115ede948256/app/code/core/Mage/Eav/Model/Config.php(328): Mage::throwException('Invalid entity_...') #1 /var/www/www.zumiez.com/releases/32f7b47215f6ab52a8ef92cdee30115ede948256/app/code/core/Mage/Eav/Model/Entity/Abstract.php(276): Mage_Eav_Model_Config->getEntityType('customer') #2 /var/www/www.zumiez.com/releases/32f7b47215f6ab52a8ef92cdee30115ede948256/app/code/core/Mage/Customer/Model/Resource/Customer.php(42): Mage_Eav_Model_Entity_Abstract->setType('customer') #3 /var/www/www.zumiez.com/releases/32f7b47215f6ab52a8ef92cdee30115ede948256/app/code/local/Mage/Core/Model/Config.php(1361): Mage_Customer_Model_Resource_Customer->__construct(Array) #4 /var/www/www.zumiez.com/releases/32f7b47215f6ab52a8ef92cdee30115ede948256/app/code/local/Mage/Core/Model/Config.php(1393): Mage_Core_Model_Config->getModelInstance('customer_resour...', Array) #5 /var/www/www.zumiez.com/releases/32f |
This file contains hidden or 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 | |
# In order for this parser to work, the file needs to be structured with | |
# tickets like the following: | |
# | |
# 12345678 - Some ticket title | |
# Action: UAT Needed. | |
# State: (APPROVED|PENDING|FAILED) | |
# Pivotal: https://www.pivotaltracker.com/s/projects/745189/stories/12345678 | |
# Github: https://github.com/copious/Zumiez.com/pull/123 |
This file contains hidden or 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
if [ ! ${#} -eq 2 ]; then | |
echo "Usage: ${0} deploy_20130101.txt (APPROVED|PENDING|FAILED)" | |
exit 1 | |
fi | |
DEPLOY_FILE=${1} | |
STATUS=${2} | |
i=0 | |
lines=$(wc -l ${DEPLOY_FILE} | awk '{print $1}') |