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 / 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 / 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 / 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 / .bashrc
Last active December 16, 2015 01:09
my bashrc
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
# yummy !
PS1='\h:\W🍔 \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
@Superbil
Superbil / protobuf-objc.rb
Last active December 16, 2015 14:09
protobuf-objc 2.5.0 for homebrew
require 'formula'
class ProtobufObjc < Formula
homepage 'https://github.com/Superbil/protobuf-objc'
url 'https://github.com/Superbil/protobuf-objc.git'
sha1 '7dcd0d77c5aeb706510d67d157793fd689ad4073'
head 'https://github.com/Superbil/protobuf-objc.git',
:branch => 'develop'
Debugger entered--Lisp error: (error "Only symbols are supported in `compiler-macro'")
signal(error ("Only symbols are supported in `compiler-macro'"))
error("Only symbols are supported in `compiler-macro'")
#[771 "\2119\204 \300\301!\207\302\303D\304\305DF\207" [error "Only symbols are supported in `compiler-macro'" put quote (quote compiler-macro) function] 8 "\n\n(fn F ARGS COMPILER-FUNCTION)"](python-syntax-context (type &optional syntax-ppss) (lambda (form) (pcase type ((\` (quote comment)) (\` (let ((ppss (or ... ...))) (and (nth 4 ppss) (nth 8 ppss))))) ((\` (quote string)) (\` (let ((ppss (or ... ...))) (and (nth 3 ppss) (nth 8 ppss))))) ((\` (quote paren)) (\` (nth 1 (or (\, syntax-ppss) (syntax-ppss))))) (_ form))))
apply(#[771 "\2119\204 \300\301!\207\302\303D\304\305DF\207" [error "Only symbols are supported in `compiler-macro'" put quote (quote compiler-macro) function] 8 "\n\n(fn F ARGS COMPILER-FUNCTION)"] python-syntax-context (type &optional syntax-ppss) (lambda (form) (pcase ty
@Superbil
Superbil / install_vpython.sh
Last active June 15, 2017 16:09
install vpython script for homebrew on mac
brew install wxwidgets boost
pip install Polygon ttfquery
# get zip(git) from https://github.com/BruceSherwood/vpython-wx
cd vpython-wx
python setup.py install
#!/bin/sh
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run in interactive mode with:
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)"
#
# or run it without prompt questions:
(require-package 'dired+)
(defun dired-show-only (regexp)
(interactive "sFiles to show (regexp): ")
(dired-mark-files-regexp regexp)
(dired-toggle-marks)
(dired-do-kill-lines))
(eval-after-load 'dired+
'(progn
@Superbil
Superbil / move_autosave.el
Last active December 17, 2015 06:29
let auto save and backup to temporary directory
;; http://emacswiki.org/emacs/AutoSave
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))