Skip to content

Instantly share code, notes, and snippets.

View Superbil's full-sized avatar
:shipit:
Working in Cloud

Superbil Superbil

:shipit:
Working in Cloud
View GitHub Profile
@Superbil
Superbil / org-html5presentation.el
Last active December 16, 2015 00:59 — forked from takumikinjo/.gitignore
HTML5 Presentation export for Org-mode
;;; org-html5presentation.el --- HTML5 Presentation export for Org-mode
;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
;; Free Software Foundation, Inc.
;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.org
;; Version: 7.5
;;
@Superbil
Superbil / gist:5301843
Last active December 15, 2015 18:09
connect to weechat, use weechat.el got error on *Message*, Emacs 24.3.1, weechat.el Version: 20130324.1656
Trying to get password via `weechat-password-callback'...
Using auth-source to retrieve weechat relay password
Weechat connecting to 192.168.1.58:9000
Connected to '192.168.1.58', version 0.4.0
error in process filter: bindat--unpack-group: Args out of range: "��Ixœ­UÝoEOɇ[„�/¼MÊK‚ì;Ďã'
MP‚JI R…ª½»õݒóÞiwçP%
… (
RŸ¨PU€øPû@ …&g¥Oü 0{þ:›J¤R,Ÿnfvvç7¿™Ù›:S™«” žCÆP±šõ:(½Ä›
‹Šã*ËIƒÖ¤YéB]쫊)¿#ùMü‹[D0bùTÖ<eá§2'_.”«(ŸÀ'Ó¢ÔöˆË”.¢ycÎÈÃÌâ,óùR®˜/” žRaÍ4[­–ÑÝcÂ51*þqûcvè7]ÆQš°Aõ[ƒLÅA$¥í#yJR±E…Q”òÀў'SrvåÜb
’X=«Á©2+•Ê<ÌJF±°`ŠUcna¶$3„dœ [ñΩ?aª`Ä:Á™½©m²Ra1½kBEáðާñH!©ºØVg‰í Œf ÔÉ4ÑL±ŠÐ«Õ.qÏöÓ{!Œ”pCµÐüø¶S,çŠX#œ¾¾º6µ^iTË#½u]àœ_5WÅ÷áŸÇïþt¹½³×wfÒpÓ.¿Á¶µËWŸÄwï´ß{pã*ªg£åóg`fÎ,Ìö7¼k4Bóíù…H½Ùgzê˜Æÿè\\§Žêù0¦°©æË´¤É×u¸¸ù­NìÌ@,trè–Ñ1j².´oßj´ûN{ÿÇnPhïïßò÷Èù¦¢K²ÿÉD·
@Superbil
Superbil / test.py
Created March 30, 2013 07:41
try to fetch http status
#!/bin/env python
import time
import httplib
def scanx_run(command, server):
scanx = httplib.HTTPConnection(server)
# debug mode
# scanx.set_debuglevel(1)
# run command
@Superbil
Superbil / ios-library.sh
Last active May 19, 2017 10:19
build google protobuf iOS version
export SDKVER="6.1"
configure_for_platform() {
export PLATFORM=$1
export ARCHITECTURE=$2
echo "Platform is $PLATFORM"
if [ "$PLATFORM" == "iPhoneSimulator" ]; then
export ARCH=i686-apple-darwin10
fi
@Superbil
Superbil / init-dictionary.el
Created March 8, 2013 03:18
lookup dictionary in emacs on mac
;; from http://larkery.tumblr.com/post/465585528/emacs-dictionary-app
(defun mac-open-dictionary (the-word)
"Open Dictionary.app for the-word"
(interactive "Dictionary Lookup: ")
(shell-command
(concat "open \"dict:///" (replace-regexp-in-string "\"" "\\\\\"" the-word) "\"")))
;; see https://gist.github.com/1228110
;; dict.py is from http://sakito.jp/mac/dictionary.html
(defun dictionary ()
aspell --with-lang-en
autoconf
automake
bazaar
bdw-gc
bitlbee
brew-gem
c-ares
cabextract
cloc
# Use jdb to debug Android application
# Run ddms and select application to forward port.
ddms
# Execute jdb and attach to the listening application
# ddms show 8600 / 8700
jdb -attach localhost:8600
# Or in windows, need to specify connector explicitly
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Org Capture
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Capture templates for: TODO tasks, Notes, appointments, phone calls, and org-protocol
(setq org-capture-templates
(quote (("t" "todo" entry (file "~/org/refile.org")
"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
("r" "respond" entry (file "~/org/refile.org")
"* TODO Respond to %:from on %:subject\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t)
("n" "note" entry (file "~/org/refile.org")
@Superbil
Superbil / .zshrc
Last active December 14, 2015 02:39
my zshrc for oh-my-zsh
#!/usr/bin/env zsh
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
if [[ -z "$INSIDE_EMACS" ]]; then
# normal term
ZSH_THEME="gentoo"
else
# inside Emacs
ZSH_THEME="dpoggi"
@Superbil
Superbil / init-gnus.el
Created February 22, 2013 13:44
Gmail for gnus in emacs
;; You need this to be able to list all labels in gmail
(setq gnus-ignored-newsgroups "")
;; And this to configure gmail imap
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)))
(provide 'init-gnus)