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
#!/usr/bin/env python | |
import json | |
import os | |
import random | |
import re | |
import subprocess | |
import sys | |
from typing import List, Optional | |
import requests |
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
# Please make this file available to others | |
# by sending it to <[email protected]> | |
# | |
# this config file was automatically generated | |
# using lirc-0.9.0(usb_irtoy) on Fri Jul 24 16:29:16 2015 | |
# | |
# contributed by | |
# | |
# brand: LG TV | |
# model no. of remote control: |
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
defaults write com.jetbrains.intellij AppleShowScrollBars -string Always |
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
$ git diff module/plugins/hooks/ExtractArchive.py | |
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py | |
index ddec831..8b8041f 100644 | |
--- a/module/plugins/hooks/ExtractArchive.py | |
+++ b/module/plugins/hooks/ExtractArchive.py | |
@@ -254,7 +254,7 @@ class ExtractArchive(Hook): | |
success = False | |
if not plugin.checkArchive(): | |
- plugin.extract(progress, pw) |
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
javascript:(function(e){e.setAttribute("src","http://192.168.11.234:8888/target/target-script-min.js#anonymous");document.getElementsByTagName("body")[0].appendChild(e);})(document.createElement("script"));void(0); |
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
# get the audio device | |
$ pacmd list-sources | awk '/name:.+\.monitor/' | |
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor> | |
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor> | |
$ cvlc pulse://alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor --sout '#transcode{acodec=mpga,ab=392,channels=2}:standard{access=http,dst=0.0.0.0:8080/pc.mp3}' | |
# stream is now available under 0.0.0.0:8080/pc.mp3 |
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
# run 8 wgets downloading one link at a time | |
curl http://flickrit.pboehm.org/photos/phboehm | \ | |
python -c 'import json, sys; data = json.loads(sys.stdin.read()); links = [e["url_o"] for e in data ]; print "\n".join(links)' | \ | |
xargs -n 1 -P 8 wget | |
# using jq | |
curl http://flickrit.pboehm.org/photos/phboehm | jq ".[] .url_o" | xargs -n1 -P 8 wget |
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
This includes some small benchmark results for the preformance improvements introduced in | |
django-data-migration 0.20. The migrations are from the blog-testapp which is included in | |
the repo, only updated to use real data. | |
############# FOR AUTHOR, COMMENTS | |
# WITHOUT PREFETCH | |
» time ./manage.py migrate_this_shit | |
Migrating <class 'blog.data_migration_spec.AuthorMigration'> | |
Migrating element 2961/2961 |
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
<style type="text/css" media="all"> | |
.flickr_image_container { | |
margin-bottom: 30px; | |
position: relative; | |
} | |
.flickr_image_container img { | |
position: relative; | |
left:0; |
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
*.swp |
NewerOlder