I hereby claim:
- I am meeuw on github.
- I am meeuw (https://keybase.io/meeuw) on keybase.
- I have a public key ASBA3q6Zdq0N41JEBYmL6pdnTlAB67TE81jXXWMFbY9OdAo
To claim this, I am signing this object:
convert image.tif -profile /usr/share/color/icc/colord/sRGB.icc test.png |
import subprocess | |
import tempfile | |
import select | |
import os | |
import sys | |
import copy | |
import datetime | |
src = sys.argv[1] | |
dst = sys.argv[1]+"-backup" |
nnoremap <leader>p <Esc>:w! /home/user/vimproxy/pipe<CR> |
I hereby claim:
To claim this, I am signing this object:
#!/home/meeuw/venv/dns/bin/python | |
import dns.resolver | |
import sys | |
import tld | |
if (len(sys.argv) > 2): | |
typ = sys.argv[2] | |
else: | |
typ = 'A' |
import requests_unixsocket | |
import os | |
import sys | |
import re | |
import subprocess | |
session = requests_unixsocket.Session() | |
r = session.get('http+unix://%2Fvar%2Frun%2Fdocker.sock/containers/json') | |
for c in r.json(): | |
if c["Names"][0].startswith('/local.'): |
function writeproperty(name) | |
value = mp.get_property(name) | |
if value ~= nil then | |
file:write(string.gsub(value, "\n", "\\n")) | |
end | |
file:write("\n") | |
end | |
timer = mp.add_periodic_timer(1, function() | |
os.remove("/dev/shm/mpv-status") | |
file = io.open(string.format("/dev/shm/mpv-status", math.random(0, 100)), "w") |
#!/usr/bin/env python3 | |
import sys | |
print('''%if 0%{?python3_pkgversion} | |
%global python3_pkgversion 34 | |
%endif | |
''') | |
with open(sys.argv[1]) as f: | |
skip_until_startswith = None | |
for line in f: | |
if line == '%py2_install\n' or line == '%py2_build\n' or 'py.test-%{python2_version}' in line or '%{__python2}' in line: |
pactl list short sink-inputs | |
pactl move-sink-input 0 0 |
dbx = dropbox.Dropbox("secrethere") | |
destfile = '/path/to/file' | |
dbx.files_delete(destfile) | |
CHUNK_SIZE = 4 * 1024 * 1024 | |
cursor = None | |
offset = 0 | |
with open('/tmp/uploadthis') as f: | |
while 1: | |
buf = f.read(CHUNK_SIZE) |