Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#https://github.com/TrilbyWhite/interrobang
#https://github.com/TrilbyWhite/swifer
#https://bbs.archlinux.org/viewtopic.php?id=167804
#https://github.com/sschober/surf-scripts.git
timestamp=`date +%s`
#!/usr/bin/env python
import re
import sys
line_pattern=sys.argv[1]
line_to_insert = sys.argv[2]
text = open( '/dev/stdin' ).read()
match_found = False
#!/usr/bin/env python3.4
import traceback
import time
import xcffib
from xcffib.xproto import *
import xcffib.render
def find_format(screen):
for d in screen.depths:
if d.depth == depth:
#!/usr/bin/env python
# https://davidsimpson.me/labs/--allow-running-insecure-content/
# http://trac.webkit.org/browser/trunk/Source/WebCore/page/ContentSecurityPolicy.h
# WebKit2GTK+ Reference Manual: http://webkitgtk.org/reference/webkit2gtk/stable/
# http://webkitgtk.org/reference/webkit2gtk/stable/index-all.html
from gi.repository import Gtk # http://pygtk.org/pygtk2reference/class-gtkwidget.html
#!/usr/bin/env python3.3
import traceback
import time
import xcffib
from xcffib.xproto import *
import xcffib.render
def find_format(screen):
for d in screen.depths:
if d.depth == depth:
$ emerge -1 pyside
* WARNING: The FEATURES variable contains one or more values that
* should be disabled under normal circumstances: keepwork
* IMPORTANT: 13 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in reverse order:
@jakeogh
jakeogh / zfs_revert-0.1.py
Last active July 17, 2020 17:04
Revert ZFS changes by destroying uberblocks
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Script for reverting ZFS changes by destroying uberblocks
# Author: Martin Vool
# E-mail: [email protected]
# Version: 0.1
# Date: 16 November 2009
import time
#!/bin/bash
# License: The Unlicense
# This simulates a user launching yt-dlp to download playlist A:
# "https://www.youtube.com/playlist?list=PLaWNxqesaSyhjP0duSOH8C_MJROI1tmD6"
# and then later deciding to launch a second yt-dlp process to download a _different_ playlist B:
# "https://www.youtube.com/playlist?list=PLmlhzhpHN7Z2e5DPni8bWuNr9_OVR2nCX"
#
# The problem is, playlist A and B both contain ID Gwo3pEH7hUE.
#