This file contains 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
// Simple script to rotate | |
// | |
// Surf on | |
// https://www.instagram.com/gospelchurch_cologne/live/ | |
// | |
// open Browser-Console (CTRL+Shift+K firefox or CTRL+Shift+J chrome | |
// Copy and Paste: Rotate 270deg (LEFT ROTATE) | |
var v = document.getElementsByTagName("video") |
This file contains 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
lola -- alias for 'log --oneline --graph --decorate --all' | |
lol -- alias for 'log --oneline --graph --decorate' | |
todos -- alias for 'grep -EI "TODO|FIXME"' |
This file contains 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 flask) | |
(setv app (flask.Flask "Hello World")) | |
; flask would start like this | |
; | |
; app = flask.Flask("Hello World") | |
; | |
; @app.route("/noprefix") | |
; def noprefix_route(): |
This file contains 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
/* Place this file in ~/.config/gtk-3.0/gtk.css | |
** | |
** Thanks to Robert Lu and Benjamin Leinweber. | |
** | |
** Source: https://unix.stackexchange.com/questions/257163/reduce-title-bar-height-in-gnome-3-gtk-3 | |
** | |
*/ | |
/* shrink headerbars (don't forget semicolons after each property) */ | |
headerbar { |
This file contains 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
# create virtualenv if it doesn't exists | |
if [ ! -d ".venv" ] | |
virtualenv -p python3 .venv | |
cp /usr/local/lib/python3.5/dist-packages/cv* .venv/lib/python3.5/site-packages/ | |
fi | |
source .venv/bin/activate | |
pip install -r requirements.txt | |
python -m manuf --update |
This file contains 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
#include <iostream> | |
#include <string> | |
#include <curl/curl.h> | |
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp | |
{ | |
((std::string*)userp)->append((char*)contents, size * nmemb); | |
return size * nmemb; | |
} |
This file contains 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
# pip3 install requests | |
import requests | |
import sys | |
import re | |
url = 'https://guard-tec.de/' | |
r = requests.get(url) | |
if not r.ok: |
This file contains 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 sys | |
import time | |
while True: | |
if len(sys.argv) >= 2: | |
print(sys.argv[1]) | |
else: | |
print("no text") | |
time.sleep(1) |
This file contains 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
#!/bin/env python3 | |
import http.server | |
class AddisHandler(http.server.BaseHTTPRequestHandler): | |
def do_HEAD(s): | |
s.send_response(200) | |
s.send_header("Content-Type", "text/html") | |
s.end_headers() |
NewerOlder