Skip to content

Instantly share code, notes, and snippets.

View jamiecounsell's full-sized avatar

Jamie Counsell jamiecounsell

View GitHub Profile
jamiecounsell / stacktrace.txt
Created October 29, 2017 16:00
Error during include of component '/apps/myapp/components/cqsearch/sitesearchcontroller'
Error Message: File "/META-INF/tags/helloWorld.tagx" not found
Processing Info:
Page = /content/myapp/en/search-results
Resource Path = /content/myapp/en/search-results/jcr:content/searchControllerParsys/sitesearchcontroller
SIZE=4; sudo dd if=/dev/zero of=/swapfile bs=1024 count=`expr $SIZE \* 1024000` && sudo mkswap /swapfile && sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' && sudo chmod 600 /swapfile && sudo swapon /swapfile;
jamiecounsell / error.txt
Created July 15, 2016 03:17
TypeError: <method-wrapper '__ne__' of type object at 0x1eeab80> is not a Python function
2016-07-15 03:14:14,050:DEBUG:certbot.main:Root logging level set at 30
2016-07-15 03:14:14,050:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-07-15 03:14:14,050:WARNING:certbot.cli:You are running with an old copy of certbot that does not receive updates, and is less reliable than more recent versions. We recommend upgrading to the latest certbot-auto script, or using native OS packages.
2016-07-15 03:14:14,058:DEBUG:certbot.main:certbot version: 0.8.1
2016-07-15 03:14:14,058:DEBUG:certbot.main:Arguments: []
2016-07-15 03:14:14,058:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2016-07-15 03:14:14,065:DEBUG:certbot.plugins.selection:Requested authenticator None and installer None
2016-07-15 03:14:14,363:DEBUG:certbot.plugins.selection:Multiple candidate plugins: * webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
jamiecounsell /
Last active June 14, 2016 03:24 — forked from andriisoldatenko/
Install local Python 2.7.10 on CentOS 7
# Versions section
mkdir $TMP_PATH && cd $TMP_PATH
# Update yum and libraries
yum -y update
jamiecounsell /
Created October 3, 2015 20:56
Django urlpatterns to dictionary for easy JSON serialization (redacting `/admin/` urls)
def recursively_build__url_dict(d, urlpatterns):
for i in urlpatterns:
if isinstance(i, RegexURLResolver):
d[str(i.__dict__['_regex'])] = {}
if str(i.__dict__['_regex']) != "^admin/":
d[str(i.__dict__['_regex'])], i.url_patterns
d[str(i.__dict__['_regex'])] = "REDACTED"
jamiecounsell / gist:06937e04dd25267f7393
Created February 1, 2015 21:36
Pillow dependency install for Debian
sudo apt-get install libjpeg62-dev zlib1g-dev libtiff-opengl libtiff-tools libfreetype6-dev liblcms1-dev libopenjpeg-dev tcl-dev tk-dev
pip install -I pillow
write to 0x9df8040 [0x9df8098] (121 bytes => 121 (0x79))
read from 0x9df8040 [0x9dfd5f8] (7 bytes => 7 (0x7))
read from 0x9df8040 [0x9dfd5ff] (79 bytes => 79 (0x4F))
read from 0x9df8040 [0x9dfd5f8] (5 bytes => 5 (0x5))
read from 0x9df8040 [0x9dfd5fd] (3226 bytes => 3226 (0xC9A))