Skip to content

Instantly share code, notes, and snippets.

View xee5ch's full-sized avatar

Al xee5ch

View GitHub Profile
@xee5ch
xee5ch / thunderbird-dbg.bat
Created November 23, 2011 14:57
Thunderbird Debug Log Run
@ECHO OFF
:==========================================================================
:
:
: Filename: THUNDERBIRD-DBG.BAT
: Description: Start Thunderbird debugging with logging.
:
: Last modified by: alharaka@gmail.com
: On date: 12:55 AM 11/24/2011
:
@xee5ch
xee5ch / gist:1400111
Created November 28, 2011 11:45
Firefox Error
Value application/vnd.openxmlformats-officedocument.wordprocessingml.document exceeds the maximum allowed value (VARCHAR (30, -127))
#!/usr/bin/env bash
# Written by William Ting for the following blog post:
# http://williamting.com/posts/2012/04/18/set-up-python-and-django-on-dreamhost/
rcfile="${HOME}/.bashrc"
version="2.7.3"
setuptools_version="2."7
tmp_dir="${HOME}/tmp-${RANDOM}"
if [[ ${#} == 0 ]]; then
; call trello2org interactively
; or pragmatically like this: (trello2org "c:/Users/jfurtney/blo-up-2-7.json")
(require 'json)
(defun convert-trello-json-file-to-org (trello-json-file)
(let* ((board (json-read-file trello-json-file))
(board-name (cdr (assoc 'name (cdr board))))
(lists (cdr (assoc 'lists (cdr board))))
@xee5ch
xee5ch / qtel-apn-info.txt
Created June 17, 2013 14:27
APN info for Qtel/Ooredoo
Qtel MMS APN Settings
Name: Qtel MMS
APN: mms.qtel
Proxy: 10.23.8.3
Port: 8080
Username: mms
Password: mms
Server:
MMSC: http://mmsr.qtelmms.qa
@xee5ch
xee5ch / fixcygwinssl.sh
Created June 30, 2013 14:05
Use CURL Certificate Authorities files to fix SSL certs in my Cygwin environment.
#!/bin/bash
pushd /usr/ssl/certs
curl http://curl.haxx.se/ca/cacert.pem | awk 'split_after==1{n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1}{print > "cert" n ".pem"}'
c_rehash
@xee5ch
xee5ch / getsslcertexpiry.sh
Created July 3, 2013 12:53
Bashism with OpenSSL s_client to download SSL cert and process cert to get expiry date.
SSLHOST=domain.tld
SSLPORT=443
echo "" | openssl s_client -connect $SSLHOST:$SSLPORT 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' |openssl x509 -text|grep "Not After :"
@xee5ch
xee5ch / convert-ff-pwd-to-keepass.rb
Created December 5, 2013 17:52
Convert Firefox passwords to KeePass XML for import into KeePassX.
#!/bin/env ruby
require 'rexml/document'
require 'digest/md5'
xml = File.read('ff-passwords-export.xml')
doc = REXML::Document.new(xml)
head = ""
foot = ""
@xee5ch
xee5ch / .tmux.conf
Created April 8, 2014 22:26
My Current .tmux.conf
# Change default binding key.
unbind C-b
set -g prefix \\
bind \ send-prefix
# Greatly expand scrollback history
set -g history-limit 10000
# Mouse configuration
#setw -g mode-mouse on
@xee5ch
xee5ch / .emacs
Created April 8, 2014 22:28
My Current .emacs
;; no longer using elpa+el-get, default to el-get only
;;
;;
;; begin: elpa configuration
(when (>= emacs-major-version 24)
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t))
;; end: elpa configuration