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 / httpsgottorg
Created Feb 3, 2016
Ausgabe von python sslyze_cli.py --regular got-tty.org für den Aritkel https://got-tty.org/sslyze-ssl-scanner
View httpsgottorg
AVAILABLE PLUGINS
-----------------
FallbackScsvPlugin
SessionResumptionPlugin
HeartbleedPlugin
OpenSslCipherSuitesPlugin
@seraphyn
seraphyn / 000-default
Created Jan 11, 2014
000-default genutzt in der Anleitung Friendica in Debian Wheezy installieren
View 000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/friendica
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/friendica>
Options Indexes FollowSymLinks MultiViews
@seraphyn
seraphyn / browserselect
Last active Dec 31, 2015
Browserselect ist ein Script welches die ProzessID (PID) des momentan laufenden Browsers sucht und allen Programmen, welche eine Seite öffnen wollen, den laufenden Browser zuweist.
View browserselect
#!/bin/bash
# GNU GPL v3
# the order in which to execute the commands
# breaks on success
# available are the following commands:
#
# firefox_new_tab
# opera_new_tab
#
# firefox_new_win
@seraphyn
seraphyn / shrinkpdf.sh
Last active Dec 31, 2015
Shellscript um mit Hilfe von ghostscript PDFs zu verkleinern. Die DPI liegt bei 72 und sollte für Retina dann eher in Richtung 200 geändert werden. Ich habe so ein Display am Thinkpad nicht und somit ist es für mich noch obsolet. Aber die dpi sind ausreichend für "normale" Androidsmartphones und Tablets im Moment
View shrinkpdf.sh
#!/bin/sh
# Original by Alfred Klomp
gs -q -dNOPAUSE -dBATCH -dSAFER \
-sDEVICE=pdfwrite \
-dCompatibilityLevel=1.3 \
-dPDFSETTINGS=/screen \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dColorImageDownsampleType=/Bicubic \
View speedtestnet_serverlist.xml
<?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
View cfg_statusbar.lua
mod_statusbar.create{
screen=0,
pos='bl',
fullsize=false,
systray=true,
template="%date || %>load || E: %netmon_avgin/%netmon_avgout W: %iwinfo_signal %iwinfo_ssid || %exec_tlpbattery %exec_temp || %workspace_pager ||%weather_tempC C %weather_wind || %exec_sera %exec_chris %exec_google PWK: %exec_pwk WP: %exec_wp GAuth: %exec_ggl %systray_dock",
}
mod_statusbar.launch_statusd{
date={
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
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
@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
@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