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
--- | |
Language: Cpp | |
# BasedOnStyle: Google | |
AccessModifierOffset: -1 | |
AlignAfterOpenBracket: Align | |
AlignArrayOfStructures: None | |
AlignConsecutiveMacros: None | |
AlignConsecutiveAssignments: None | |
AlignConsecutiveBitFields: None | |
AlignConsecutiveDeclarations: None |
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
#!/usr/bin/env python3 | |
# Benchmark random id -> directory tree mappings | |
import uuid | |
import pathlib | |
import re | |
import random | |
import click | |
import multiprocessing | |
import time |
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
#!/usr/bin/env python | |
import requests | |
import sys | |
req = requests.get("https://www.eventphone.de/guru2/phonebook?event=Chaos+Communication+Camp+2015&s={}&installedonly=0&format=json".format(sys.argv[1]), verify=False) | |
if req.ok: | |
print req.json()[0]["name"] |
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
input { | |
gelf { | |
port => 12222 | |
type => gelf | |
codec => json { } | |
} | |
} | |
filter { | |
if [type] == "gelf" { |
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 re | |
import requests | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.image import MIMEImage | |
URL_REGEX = re.compile(r"""((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|(([^\s()<>]+|(([^\s()<>]+)))*))+(?:(([^\s()<>]+|(([^\s()<>]+)))*)|[^\s`!()[]{};:'".,<>?«»“”‘’]))""", re.DOTALL) | |
def fetch_img(url): | |
result = None |
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
{:user {:plugins [[lein-ancient "0.5.5"] | |
[lein-ritz "0.7.0"]] | |
:repl-options {:nrepl-middleware [io.aviso.nrepl/pretty-middleware | |
cider.nrepl.middleware.inspect/wrap-inspect | |
cider.nrepl.middleware.classpath/wrap-classpath | |
cider.nrepl.middleware.complete/wrap-complete | |
cider.nrepl.middleware.info/wrap-info | |
cider.nrepl.middleware.inspect/wrap-inspect | |
cider.nrepl.middleware.macroexpand/wrap-macroexpand |
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
*.xml diff=xml | |
*.png diff=exif | |
*.xml2 diff=xml |
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/bash | |
URL="http://doxieflashair.local" | |
DIRS="/DCIM/100DOXIE" | |
list () { | |
curl -s "${URL}/command.cgi?op=100&DIR=${1}" \ | |
| awk 'BEGIN { FS=","; OFS="/" } /.+,(.+,){3}/ { print $1,$2 }' | |
} |
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
{:user {:plugins [[lein-ancient "0.5.4"] | |
[lein-ritz "0.7.0"]] | |
:repl-options {:nrepl-middleware [io.aviso.nrepl/pretty-middleware | |
inspector.middleware/wrap-inspect | |
ritz.nrepl.middleware.javadoc/wrap-javadoc | |
ritz.nrepl.middleware.apropos/wrap-apropos]} | |
:dependencies [[spyscope "0.1.4"] | |
[org.clojure/tools.namespace "0.2.4"] |
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/bash | |
xbmc_play_url $(youtube-dl -g $(youtube_search.py fireplace hd | sort -R | cut -f1 -d " " | head -1)) |
NewerOlder