Skip to content

Instantly share code, notes, and snippets.

Working from home

Christian M. Grube seraphyn

Working from home
View GitHub Profile
seraphyn / ender.js
Created Dec 5, 2011
Scripts on
View ender.js
* =============================================================
* Ender: open module JavaScript framework (
* Build: ender build jeesh reqwest
* =============================================================
* Ender: open module JavaScript framework (client-lib)
import os
illegal = list('''!"#$%&\'()*+,/:;<=>?@[\\]^_`{|}~ ''')
repl = "_"
for root,dir,files in os.walk(os.getcwd()):
for fi in files:
for ill in illegal:
if ill in fi:
print "found ", os.path.join(root,fi)
newname = fi.replace(ill,repl)
os.rename( os.path.join(root,fi) , os.path.join(root,newname) )
seraphyn / youtube.rb
Created Jan 29, 2012 — forked from portwaypoint/youtube.rb
Jekyll youtube liquid template tag. Use with {% youtube IDOFVIDEO %} ... Found
View youtube.rb
module Jekyll
class Youtube < Liquid::Tag
@@width = 640
@@height = 510
def initialize(name, id, tokens)
@id = id
seraphyn / Rakefile
Created Jan 31, 2012
Octopress Rakefile-diff 1
View Rakefile
< editor = ENV["EDITOR"] || "" # if environment variable $EDITOR is set, newly-created posts will automatically open for editing
< if #{editor}
< system "#{editor} #{filename}"
< end
< end
seraphyn / _config.yml
Created Feb 1, 2012
Adding Google Plus Sidebar to Octopress found
View _config.yml
# Google Plus Profile
# Hidden: No visible button, just add author information to search results
googleplus_user: 112735778092864419421
googleplus_hidden: yes
googleplus_profile_display: block
googleplus_post_display: block
googleplus_post_amount: 10
# Google Api Console
google_api_key: AIzaSyCqR5_JXEJlRpJJmjLwiRxNR2M5xyxEOBI
View .newsbeuter config
auto-reload yes
browser /home/seraphyn/bin/browserstart
confirm-exit yes
display-article-progress yes
notify-format "newsbeuter: finished reload, %f unread feeds (%n unread articles total)"
notify-program "notify-send"
refresh-on-startup no
reload-time 120
show-read-feeds no
show-read-articles no
View Xterm256 color names for console Vim
hi x016_Grey0 ctermfg=16 guifg=#000000
hi x017_NavyBlue ctermfg=17 guifg=#00005f
hi x018_DarkBlue ctermfg=18 guifg=#000087
hi x019_Blue3 ctermfg=19 guifg=#0000af
hi x020_Blue3 ctermfg=20 guifg=#0000d7
hi x021_Blue1 ctermfg=21 guifg=#0000ff
hi x022_DarkGreen ctermfg=22 guifg=#005f00
hi x023_DeepSkyBlue4 ctermfg=23 guifg=#005f5f
hi x024_DeepSkyBlue4 ctermfg=24 guifg=#005f87
hi x025_DeepSkyBlue4 ctermfg=25 guifg=#005faf
seraphyn / updatevirtualboxextions
Created Dec 20, 2012
Checks if the Extension Pack version matches the installed VirtualBox version and if not, delete the Extension Pack, downloads and installs the new one.
View updatevirtualboxextions
#! /bin/bash
#: Title : updateVboxExt
#: Date Created: Fri May 13 13:54:26 PDT 2011
#: Last Edit : Fri May 13 14:34:37 PDT 201
#: Author : please_try_again
#: Version : 1.0
#: Description : Install or update VirtualBox Extension pack
View speedtestnet_serverlist.xml
<?xml version="1.0" encoding="UTF-8"?>
<servers><server url="" lat="69.6828" lon="18.9428" name="Tromso" country="Norway" countrycode="NO" sponsor="Pronea AS" sponsorurl="" id="1327" gid="0" url2="" bigsamples="1" />
<server url="" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="JSC M2C" sponsorurl="" id="1521" gid="0" url2="" bigsamples="1" />
<server url="" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="ISP Teletoria" sponsorurl="" id="2342" gid="0" url2="" bigsamples="1" />
<server url="" lat="68.1500" lon="33.2833" nam
seraphyn / cfg_notion.lua
Created Nov 29, 2013
Notion Konifguration
View cfg_notion.lua
-- Ion main configuration file
-- This file only includes some settings that are rather frequently altered.
-- The rest of the settings are in cfg_ioncore.lua and individual modules'
-- configuration files (cfg_modulename.lua).
-- Set default modifiers. Alt should usually be mapped to Mod1 on
-- XFree86-based systems. The flying window keys are probably Mod3
-- or Mod4; see the output of 'xmodmap'.