Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View seraphyn's full-sized avatar
🏠
Working from home and loving' it

Christian M. Grube seraphyn

🏠
Working from home and loving' it
View GitHub Profile
@seraphyn
seraphyn / ender.js
Created December 5, 2011 08:39
Scripts on got-tty.org
/*!
* =============================================================
* Ender: open module JavaScript framework (https://ender.no.de)
* Build: ender build jeesh reqwest
* =============================================================
*/
/*!
* Ender: open module JavaScript framework (client-lib)
@seraphyn
seraphyn / falsenamekiller.py
Created January 19, 2012 17:08
Aus dem ~/bin/
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
seraphyn / youtube.rb
Created January 29, 2012 20:01 — forked from portwaypoint/youtube.rb
Jekyll youtube liquid template tag. Use with {% youtube IDOFVIDEO %} ... Found http://www.portwaypoint.co.uk/jekyll-youtube-liquid-template-tag-gist/
module Jekyll
class Youtube < Liquid::Tag
@@width = 640
@@height = 510
def initialize(name, id, tokens)
super
@id = id
end
@seraphyn
seraphyn / Rakefile
Created January 31, 2012 10:01
Octopress Rakefile-diff 1
27c27
< editor = ENV["EDITOR"] || "" # if environment variable $EDITOR is set, newly-created posts will automatically open for editing
---
>
112,114d111
< if #{editor}
< system "#{editor} #{filename}"
< end
361,392d357
< end
@seraphyn
seraphyn / _config.yml
Created February 1, 2012 13:14
Adding Google Plus Sidebar to Octopress found https://bandj.us/jo/blog/
# 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
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
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
seraphyn / updatevirtualboxextions
Created December 20, 2012 17:42
Checks if the Extension Pack version matches the installed VirtualBox version and if not, delete the Extension Pack, downloads and installs the new one.
#! /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
pkg_sit="http://download.virtualbox.org/virtualbox/"
@seraphyn
seraphyn / speedtestnet_serverlist.xml
Created September 30, 2013 17:37
Speedtest.net Severliste
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<servers><server url="http://speedtest.pronea.no/speedtest/upload.php" lat="69.6828" lon="18.9428" name="Tromso" country="Norway" countrycode="NO" sponsor="Pronea AS" sponsorurl="http://www.pronea.no/" id="1327" gid="0" url2="http://speedtest.pronea.no/speedtest/upload.php" bigsamples="1" />
<server url="http://speedtest.mmsn.ru/speedtest/upload.php" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="JSC M2C" sponsorurl="http://www.mmsn.ru" id="1521" gid="0" url2="http://speedtest.mmsn.ru/speedtest/upload.php" bigsamples="1" />
<server url="http://st1.teletoria.ru/speedtest/upload.php" lat="68.9667" lon="33.0833" name="Murmansk" country="Russian Federation" countrycode="RU" sponsor="ISP Teletoria" sponsorurl="http://www.teletoria.ru" id="2342" gid="0" url2="http://st1.teletoria.ru/speedtest/upload.php" bigsamples="1" />
<server url="http://speedtest.oltv.ru/speedtest/upload.php" lat="68.1500" lon="33.2833" nam
@seraphyn
seraphyn / cfg_notion.lua
Created November 29, 2013 11:23
Notion Konifguration
-- 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'.