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
import os | |
import sys | |
import time | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import sessionmaker, relationship | |
from sqlalchemy import create_engine, Column, Integer, Unicode, ForeignKey | |
COUNT = 100 |
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
#!/bin/bash | |
# Copy this as .git/hooks/pre-push | |
# Customize PROTECTED_BRANCHES | |
# Make it executable | |
set -e | |
PROTECTED_BRANCHES="master release" | |
confirm() { | |
local local_branch |
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 python3 | |
""" | |
Cat log-rotated log files passed as arguments in the right order, unpacking | |
them with zcat, bzcat or xzcat if necessary. | |
""" | |
import argparse | |
import os | |
import subprocess | |
import sys |
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 python3 | |
""" | |
Change the installation prefix of a Qt install | |
""" | |
import argparse | |
import os | |
import sys | |
from pathlib import Path |
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 python3 | |
""" | |
Scrape packages.ubuntu.com to list packages containing a given file. | |
""" | |
import argparse | |
import subprocess | |
import sys | |
import urllib.request |
OlderNewer