Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Christian M. Grube seraphyn

🏠
Working from home
View GitHub Profile
@seraphyn
seraphyn / funtions.php
Created Jul 26, 2014
Lösung für RichSnippets in dem Theme Twenty Thirteen von Wordpress. Gehört zu dem Kommentar von Janet ( http://got-tty.org/archives/rich-snippets-in-wordpress-und-google.html#comment-6102) des Beitrages http://got-tty.org/archives/rich-snippets-in-wordpress-und-google.html
View funtions.php
<?php
//mod content
function hatom_mod_post_content ($content) {
if ( in_the_loop() && !is_page() ) {
$content = '’.$content.”;
}
return $content;
}
add_filter( ‘the_content’, ‘hatom_mod_post_content’);
@seraphyn
seraphyn / sshantiscan_honeypot.sh
Created Feb 27, 2015
Put your sshd on another Port and if somebody scans port 22 he will be blocked for 10 minutes
View sshantiscan_honeypot.sh
#!/bin/sh
# Put SSHd on another Port
# If someone scans your typical sshport 22 he will be blocked for 10 Minutes
HP_IPT='/sbin/iptables'
HP_Port=22
HP_Time=600
$HP_IPT -N honeypot
$HP_IPT -A INPUT ! -s 127.0.0.1 -j honeypot
View .screenrc
startup_message off
deflogin on
vbell on
vbell_msg " Wuff ---- Wuff!! "
defscrollback 1024
bind ^k
bind ^\
bind \\ quit
bind K kill
bind I login on
@seraphyn
seraphyn / style.css
Created Jun 21, 2015
Rewritten cleaner style.css for tasks version v0.6
View style.css
* {
-moz-user-select: -moz-none;
margin: 0;
padding: 0;
text-decoration: none;
}
#content {
overflow: hidden;
color: #423E3E;
background: repeat scroll 0 0 #f3f3f3;
@seraphyn
seraphyn / ender.js
Created Dec 5, 2011
Scripts on got-tty.org
View ender.js
/*!
* =============================================================
* Ender: open module JavaScript framework (https://ender.no.de)
* Build: ender build jeesh reqwest
* =============================================================
*/
/*!
* Ender: open module JavaScript framework (client-lib)
View falsenamekiller.py
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 Jan 29, 2012 — 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/
View youtube.rb
module Jekyll
class Youtube < Liquid::Tag
@@width = 640
@@height = 510
def initialize(name, id, tokens)
super
@id = id
end
@seraphyn
seraphyn / Rakefile
Created Jan 31, 2012
Octopress Rakefile-diff 1
View Rakefile
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 Feb 1, 2012
Adding Google Plus Sidebar to Octopress found https://bandj.us/jo/blog/
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