Skip to content

Instantly share code, notes, and snippets.

Mark Blakeney bulletmark

  • Brisbane Australia
Block or report user

Report or block bulletmark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bulletmark
bulletmark / tmp.py
Created Oct 23, 2019
Example python code
View tmp.py
def a_or_an(value):
return 'an' if value[0].lower() in 'aeiou' else 'a'
@bulletmark
bulletmark / PKGBUILD
Created Apr 16, 2019
PKGBUILD for borg-bin
View PKGBUILD
# Maintainer: mark.blakeney at bullet-systems dot net
pkgname=borg-bin
pkgver=1.1.9
pkgrel=1
pkgdesc="Borg backup - prebuilt standalone binary"
url="https://borgbackup.readthedocs.io/en/stable/installation.html#standalone-binary"
license=("GPL")
arch=("x86_64" "i686" "armv6h" "armv7h" "armv8h")
provides=("borg" "borgbackup")
conflicts=("borg" "borgbackup")
@bulletmark
bulletmark / PKGBUILD
Created Aug 13, 2018
PKGBUILD for visual-studio-code-bin to patch in private copy of glibc
View PKGBUILD
# Maintainer: D. Can Celasun <can[at]dcc[dot]im>
# Temporary modified by M.Blakeney to patch in private glibc 14-Aug-2018.
pkgname=visual-studio-code-bin
_pkgname=visual-studio-code
pkgver=1.26.0
pkgrel=2
pkgdesc="Visual Studio Code: Editor for building and debugging modern web and cloud applications (official binary version)"
arch=('x86_64' 'i686')
url="https://code.visualstudio.com/"
@bulletmark
bulletmark / sumbench
Created Jul 4, 2018
Program to benchmark set of checksum commands
View sumbench
#!/usr/bin/python3
'Program to benchmark set of checksum commands.'
# Author: M.Blakeney, Jul 2018.
import os, argparse, time, tempfile, subprocess, statistics
import collections, platform
# Default set of commands to execute
CMDS = 'md5sum,sha1sum,sha256sum'
@bulletmark
bulletmark / sumbench.sh
Created Jul 4, 2018
Script to run given first argument command across given machines
View sumbench.sh
!/bin/bash
# Run given first argument command across given machines
# M.Blakeney, Jul 2018.
script=$1
shift
hosts=$*
bscript=$(basename $script)
for h in $hosts; do
rsync -a $script $h:/tmp/
@bulletmark
bulletmark / gs-extract.sh
Last active May 15, 2019
Bash script to extract GNOME shell javascript files
View gs-extract.sh
#!/bin/bash
if [[ $# -ne 1 ]]; then
echo "usage $0 dir" >&2
exit 1
fi
dir="$1"
if [[ -e $dir ]]; then
echo "Error: $dir already exists" >&2
@bulletmark
bulletmark / PKGBUILD
Last active Jan 22, 2017
Arch PKGBUILD for skypeforlinux-bin
View PKGBUILD
# Maintainer: Jameson Pugh <imntreal@gmail.com>.
# Contributor: mark.blakeney at bullet-systems dot net
pkgname=skypeforlinux-bin
pkgver=1.16.0.1
pkgrel=1
pkgdesc="Skype for Linux WebRTC Alpha"
arch=('x86_64')
url="http://www.skype.com"
license=('custom')
View PKGBUILD
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Marcin Karpezo <sirmacik at gmail dot com>
# Contributor: Andreas Hauser <andy-aur@splashground.de>
pkgname=dblatex
pkgver=0.3.9
pkgrel=1.1
pkgdesc='DocBook (XML and SGML) to DVI, PDF, PostScript converter using latex.'
arch=('any')
url='http://dblatex.sourceforge.net/'
View linux-xps13.sh
ABSROOT=. abs core/linux
cd core/linux
# Edit config.x86_64 to add CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
# Edit PKGBUILD change pkgbase to linux-xps13
# Edit (optional): Add MAKEFLAGS="-j$(nproc)" in build function in PKGBUILD to speed up next makepkg
makepkg -s --skipchecksums (takes about 42 mins plus kernel source download time)
sudo pacman -U kernel-headers_package.tar.xz
sudo pacman -U kernel_package.tar.xz
# Then sudo edit your bootloader config to add boot entries for this kernel. e.g. in /boot/loader/ for systemd-boot.
# Also make sure you do at least two power-off reboots to ensure HDA audio is enabled.
@bulletmark
bulletmark / gist:ca9b6f96f1b1b0042642
Last active Aug 29, 2015
Patch to Arch abs to add -r/--root option
View gist:ca9b6f96f1b1b0042642
--- /usr/bin/abs 2014-07-01 02:26:01.047766500 +1000
+++ /home/mark/bin/abs 2015-07-11 10:08:28.927699080 +1000
@@ -69,6 +69,8 @@
##
[ -f ~/.abs.conf ] && source ~/.abs.conf
+ABSROOT_DEFAULT="$ABSROOT"
+
##
# Helper functions
You can’t perform that action at this time.