Skip to content

Instantly share code, notes, and snippets.

@jab416171
jab416171 / hexdump
Created April 21, 2013 01:59
Yahoo Login Hexdump
00 00 00 00 00 00 59 43 : 48 54 00 00 01 00 00 00 ......YCHT......
00 01 00 00 01 7F 41 73 : 6B 46 6F 72 42 6F 6F 7A ......AskForBooz
65 C0 80 61 68 6F 6C 65 : 2C 61 68 6F 6C 65 73 2C e..ahole,aholes,
61 73 73 68 6F 6C 65 2C : 61 73 73 68 6F 6C 65 73 asshole,assholes
2C 61 73 73 77 69 70 65 : 2C 62 69 61 74 63 68 2C ,asswipe,biatch,
62 69 74 63 68 2C 62 69 : 74 63 68 65 73 2C 62 6C !@$,!@$es,bl
6F 5F 6A 6F 62 2C 62 6C : 6F 77 5F 6A 6F 62 2C 62 o_job,blow_job,b
6C 6F 77 6A 6F 62 2C 63 : 6F 63 6B 73 75 63 6B 65 lowjob,cocksucke
72 2C 63 75 6E 74 2C 63 : 75 6E 74 73 2C 64 69 63 r,!@$,!@$s,dic
6B 68 65 61 64 2C 66 75 : 63 6B 2C 66 75 63 6B 65 khead,!@$,!@$e
@jab416171
jab416171 / kern.log
Created April 19, 2013 19:53
Computer locked up Apr 19
Apr 19 07:54:28 joe-Pixel kernel: [ 4.169477] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
Apr 19 07:54:28 joe-Pixel kernel: [ 4.169516] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Apr 19 07:54:28 joe-Pixel kernel: [ 4.169732] snd_hda_intel 0000:00:1b.0: irq 43 for MSI/MSI-X
Apr 19 07:54:28 joe-Pixel kernel: [ 4.169761] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
Apr 19 07:54:28 joe-Pixel kernel: [ 4.176386] industrialio: module is from the staging directory, the quality is unknown, you have been warned.
Apr 19 07:54:28 joe-Pixel kernel: [ 4.178459] isl29018: module is from the staging directory, the quality is unknown, you have been warned.
Apr 19 07:54:28 joe-Pixel kernel: [ 4.187804] init: plymouth-splash main process (1160) terminated with status 1
Apr 19 07:54:29 joe-Pixel kernel: [ 4.577487] ------------[ cut here ]------------
Apr 19 07:54:29 joe-Pixel kernel: [ 4.577508] WARNING: at /build/buildd/linux-3.2.0/drivers
@jab416171
jab416171 / .xsession-errors
Last active December 16, 2015 08:59
Computer locks up
openConnection: connect: No such file or directory
cannot connect to brltty at :0
(polkit-gnome-authentication-agent-1:1802): GLib-CRITICAL **: g_variant_new_string: assertion `string != NULL' failed
(polkit-gnome-authentication-agent-1:1802): polkit-gnome-1-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-lIQVcd/pkcs11: No such file or directory
** Message: applet now removed from the notification area
** Message: using fallback from indicator to GtkStatusIcon
** Message: applet now embedded in the notification area
@jab416171
jab416171 / settings.xml
Created April 14, 2013 18:34
Maven settings.xml for Jenkins plugins
<settings>
<pluginGroups>
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
</pluginGroups>
<profiles>
<!-- Give access to Jenkins plugins -->
<profile>
<id>jenkins</id>
<activation>
@jab416171
jab416171 / gist:5255264
Created March 27, 2013 15:46
Automatically detects if a user is logged into gmail, and if they are, will replace all the mailto: links on your webpage with links to the gmail compose window (automatically filling in the To field):
$('<img/>').hide()
.attr('src','https://mail.google.com/mail/photos/img/photos/public/AIbEiAIAAABDCKa_hYq24u2WUyILdmNhcmRfcGhvdG8qKDI1ODFkOGViM2I5ZjUwZmZlYjE3MzQ2YmQyMjAzMjFlZTU3NjEzOTYwAZwSCm_MMUDjh599IgoA2muEmEZD')
.load(function(){
$('a[href^="mailto:"]').each(function(){
var email = $(this).attr('href').replace(/^mailto:/,'');
$(this).attr('href','https://mail.google.com/mail/?view=cm&fs=1&tf=0&to='+escape(email));
});
})
.appendTo('body');
@jab416171
jab416171 / gist:5238089
Created March 25, 2013 15:47
0x20 vs 0xc2a0
[09:39:13] ~$ xxd
if [[ "true" == "true" ]]; then echo "yes"; fi;
0000000: 6966 c2a0 5b5b 2022 7472 7565 2220 3d3d if..[[ "true" ==
0000010: 2022 7472 7565 2220 5d5d 3b20 7468 656e "true" ]]; then
0000020: 2065 6368 6f20 2279 6573 223b 2066 693b echo "yes"; fi;
0000030: 0a .
[09:39:25] ~$ xxd
if [[ "true" == "true" ]]; then echo "yes"; fi;
0000000: 6966 205b 5b20 2274 7275 6522 203d 3d20 if [[ "true" ==
0000010: 2274 7275 6522 205d 5d3b 2074 6865 6e20 "true" ]]; then
@jab416171
jab416171 / bad
Created February 11, 2013 19:50
Vim doesn't autocomplete /home/$USER/a/b/c.sh if current working directory is /home/$USER
+ /etc/bash_completion:_filedir_xspec:3:IFS='
'
+ /etc/bash_completion:_filedir_xspec:4:COMPREPLY=()
+ /etc/bash_completion:_filedir_xspec:5:_get_comp_words_by_ref cur
+ /etc/bash_completion.d/git:_get_comp_words_by_ref:1:local exclude flag i OPTIND=1
+ /etc/bash_completion.d/git:_get_comp_words_by_ref:2:words=()
+ /etc/bash_completion.d/git:_get_comp_words_by_ref:2:local cur cword words
+ /etc/bash_completion.d/git:_get_comp_words_by_ref:3:upargs=()
+ /etc/bash_completion.d/git:_get_comp_words_by_ref:3:upvars=()
+ /etc/bash_completion.d/git:_get_comp_words_by_ref:3:local upargs upvars vcur vcword vprev vwords
NOVA_BRANCH=folsom-1
SWIFT_BRANCH=folsom-1
SWIFT_KEYSTONE_BRANCH=folsom-1
GLANCE_BRANCH=folsom-1
KEYSTONE_BRANCH=folsom-1
NOVNC_BRANCH=folsom-1
HORIZON_BRANCH=folsom-1
NOVACLIENT_BRANCH=folsom-1
KEYSTONECLIENT_BRANCH=folsom-1
@jab416171
jab416171 / git_svn_bash_prompt.sh
Created September 25, 2012 18:21 — forked from woods/git_svn_bash_prompt.sh
Set color bash prompt according to git/svn branch, and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE:
[remote "host-one"]
url = jenkins@git:/${name}.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
timeout = 5
replicationDelay = 0
authGroup = Administrators