I hereby claim:
- I am rshipp on github.
- I am rshipp (https://keybase.io/rshipp) on keybase.
- I have a public key whose fingerprint is C1E4 46BF AC0D 6882 8EDD 98D1 9985 DAD9 D417 608D
To claim this, I am signing this object:
#!/bin/bash | |
# interactive betty shell | |
BETTYSH_PS1=${BETTYSH_PS1:-betty$ } | |
install_betty() { | |
echo "==> Installing betty..." | |
git clone https://github.com/pickhardt/betty ~/.betty || return $? | |
echo "==> Done." | |
} |
I hereby claim:
To claim this, I am signing this object:
#ifndef NOYAMA_H | |
#define NOYAMA_H | |
#include <sys/prctl.h> | |
prctl( PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0 ); | |
#endif |
import os | |
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.sqlite3', | |
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | |
} | |
} |
#!/usr/bin/env python3 | |
import html5lib | |
data = html5lib.parse(open("test.html", "r").read()) | |
def start_tag(node): | |
return '<' + node.tag.split('}')[1:][0] + \ | |
''.join([' {}="{}"'.format(item[0], item[1]) | |
for item in node.items()]) + '>' |
With pkgvars.py
in your PATH
, and a PKGBUILD
in your current directory,
run bash pkgvars.sh
. The output is formatted JSON.
A patch for Pacman (makepkg) and an updated Pacman PKGBUILD
are included,
along with an example working split PKGBUILD
and an example PKGBUILD with a custom array,
to show how custom arrays are not handled by this script.
oldsums=$(sed -n '/^.*sums=(.*/,/.*)/p' PKGBUILD); newsums=$(makepkg -g); sed -i "/^.*sums=(.*/,/.*)$/y/${oldsums/$'\n'/\\n}/${newsums/$'\n'/\\n}/" PKGBUILD |
# IP List to Address Group | |
# Convert a file with one IP on each line into a script that can be | |
# copy-pasted into a SonicWall shell to create a new address group. | |
# Use it like `./iplist2addressgroup.sh iplist.txt > script.txt`. | |
# I used it to bulk-blasklist some public IPs. | |
# See https://www.fuzeqna.com/sonicwallkb/ext/kbdetail.aspx?kbid=10896 | |
# Config | |
objname='blacklistedip' | |
groupname='Blacklist' |
#!/bin/bash | |
# build your own Pi MusicBox. | |
# reeeeeeaaallly alpha. | |
#Install the packages you need to continue: | |
apt-get update && apt-get --yes install sudo wget unzip mc | |
#Next, issue this command to update the distribution. | |
#This is good because newer versions have fixes for audio and usb-issues: |
#!/usr/bin/python | |
# | |
# pylintcodediff --- Locate pylint errors corresponding to changed lines | |
# | |
# Copyright (C) 2014 Red Hat, Inc. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU Lesser General Public License as published | |
# by the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. |