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 / funtions.php
Created July 26, 2014 09:01
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
<?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 February 27, 2015 09:54
Put your sshd on another Port and if somebody scans port 22 he will be blocked for 10 minutes
#!/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
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 June 21, 2015 15:34
Rewritten cleaner style.css for tasks version v0.6
* {
-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 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