This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Error: xmlrpc.client.ResponseError: ResponseError("unknown tag 'uint'") | |
from xmlrpc import client | |
# fix: xmlrpc doesn't know the XML-RPC type 'uint' | |
client.Unmarshaller.dispatch['uint'] = client.Unmarshaller.end_int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import couchdb | |
user = '' | |
password = '' | |
db_name = '' | |
view = 'debug/all_events' | |
conn_string = couchdb.Server( | |
'http://%s:%s@localhost:5984/' % (user, password) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# checkout the branch | |
git checkout dev_branch | |
# reset to master | |
git reset --hard master | |
# push it baby | |
git push --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"anytime" : [ | |
"Du bist toll!", | |
"Wer das Ziel nicht kennt, wird den Weg nicht finden!", | |
"Der Lösung ist das Problem egal!", | |
"Mach die beste Version aus Dir!" | |
], | |
"morning" : [ | |
"Los, Arsch hoch!", | |
"Guten Morgen, Du siehst toll aus :)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from here: https://www.vultr.com/docs/enable-ssh-login-notification-on-linux | |
# vim /etc/ssh/sshrc | |
IP="$(echo $SSH_CONNECTION | cut -d " " -f 1)" | |
HOSTNAME=$(hostname) | |
NOW=$(date +"%e %b %Y, %a %r") | |
echo 'Someone from '$IP' logged into '$HOSTNAME' on '$NOW'.' | mail -s 'SSH Login Notification' <YOUR_EMAIL_ADDRESS> | |
# service sshd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# E: Unable to parse package file /var/lib/apt/lists/repos.azulsystems.com_debian_dists_stable_main_binary-armhf_Packages (1) | |
# W: You may want to run apt-get update to correct these problems | |
# E: The package cache file is corrupted | |
sudo rm /var/lib/apt/lists/* -vf | |
sudo apt update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# decativate debug logging PN532 | |
logging.getLogger('Adafruit_PN532.PN532').setLevel(logging.INFO) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" set number | |
" set list | |
" set listchars=tab:>- | |
set autoindent | |
set pastetoggle=<F10> | |
set nowrap | |
set background=dark | |
set hlsearch | |
syntax on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// News Element | |
// won't work (these fields are visible after BE reload (is_event)) | |
//TCAdefaults.tx_news_domain_model_news.full_day = 1 | |
//TCAdefaults.tx_news_domain_model_news.organizer_simple = Bernd die Socke | |
// works fine | |
TCAdefaults.tx_news_domain_model_news.title = Hier Text eingeben | |
TCAdefaults.tx_news_domain_model_news.author = Bernd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Löschen von Dateien, die fehlen | |
svn st | grep "! " | cut -c9- | xargs -I {} svn del {} | |
# hinzufügen von unbekannten Dateien | |
svn st | grep "? " | cut -c9- | xargs -I {} svn add {} |
NewerOlder