Skip to content

Instantly share code, notes, and snippets.

Siôn le Roux sinisterstuf

Block or report user

Report or block sinisterstuf

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
@sinisterstuf
sinisterstuf / bump-tag.go
Created Jul 27, 2016
Version bump git tag in Go
View bump-tag.go
package main
import (
"fmt"
"log"
"os"
"github.com/Symantec/Dominator/lib/verstr" // sorts semvers
"github.com/libgit2/git2go" // git access to read/write tags
"github.com/olivoil/bump" // semantically bump tag number
@sinisterstuf
sinisterstuf / sumAll.js
Last active Feb 14, 2016
Short, mathematical solution to Sum All Numbers in Range problem
View sumAll.js
function sumAll(x) {return (x[1] + x[0]) * (Math.abs(x[1] - x[0]) + 1) / 2;}
@sinisterstuf
sinisterstuf / sumAll.js
Last active Jan 31, 2016
Functional solution to Free Code Camp's "Sum All Numbers in a Range" challenge
View sumAll.js
function sumAll(x) {
return Array.from(
{length: Math.max(...x) - Math.min(...x) + 1},
(v,k) => k + Math.min(...x)
).reduce((s, c) => s + c)
}
View walk-and-attack.ahk
R::
wasWalking := GetKeyState("w")
if wasWalking
Send {w up}
Sleep 150
Send {w down}
Sleep 20
Send {v down}
@sinisterstuf
sinisterstuf / privacy.md
Last active Aug 29, 2015
Guess the Animal Privacy Policy
View privacy.md

Privacy Policy

The "Guess the Animal" game does not require, store or use your personal information in any way, it is just a small game and the only information it stores is data for questions you teach it for guessing animals.

@sinisterstuf
sinisterstuf / PKGBUILD
Created Apr 16, 2015
PKGBUILD for the jSSC package in AUR.
View PKGBUILD
# Maintainer: Siôn Le Roux <sinisterstuf@gmail.com>
# Meta
pkgname=jssc
pkgver=2.8.0
pkgrel=1
pkgdesc="Java Simple Serial Connector; for working with serial ports from Java"
url="https://github.com/scream3r/java-simple-serial-connector"
depends=('java-runtime')
arch=(any)
View vim74.patch
diff -ru a/vim/Makefile.am b/vim/Makefile.am
--- a/vim/Makefile.am 2015-03-11 14:20:36.865385641 +0100
+++ b/vim/Makefile.am 2015-03-11 14:21:22.580834879 +0100
@@ -1,6 +1,6 @@
PLUGIN_FILES = zeitgeist.vim
-vimplugindir = $(datadir)/vim/vim72/plugin
+vimplugindir = $(datadir)/vim/vim74/plugin
dist_vimplugin_DATA = $(PLUGIN_FILES)
@sinisterstuf
sinisterstuf / GeoBookmark.log
Created May 14, 2014
Log of GeoBookmark crash on Android version 8
View GeoBookmark.log
05-14 14:27:39.995: D/dalvikvm(251): GC_EXPLICIT freed 916 objects / 64704 bytes in 109ms
05-14 14:28:15.884: D/AndroidRuntime(251): Shutting down VM
05-14 14:28:15.884: W/dalvikvm(251): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
05-14 14:28:15.904: E/AndroidRuntime(251): FATAL EXCEPTION: main
05-14 14:28:15.904: E/AndroidRuntime(251): java.lang.IllegalArgumentException: contentIntent required: pkg=de.onyxbits.geobookmark id=0 notification=Notification(vibrate=null,sound=null,defaults=0x0)
05-14 14:28:15.904: E/AndroidRuntime(251): at android.os.Parcel.readException(Parcel.java:1251)
05-14 14:28:15.904: E/AndroidRuntime(251): at android.os.Parcel.readException(Parcel.java:1235)
05-14 14:28:15.904: E/AndroidRuntime(251): at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:274)
05-14 14:28:15.904: E/AndroidRuntime(251): at android.app.NotificationManager.notify(NotificationManager.java:110)
05-14 14:28:15.904: E/AndroidRuntime(251):
@sinisterstuf
sinisterstuf / steam-key-popup.sh
Created Jun 17, 2013
A bash script which displays a pop-up showing a Steam activation key piped to it by a MUA.
View steam-key-popup.sh
#/bin/bash
# Displays a pop-up showing a Steam activation key piped to it by a MUA.
# In the e-mail the steam key is wrapped in <h2> tags
# Author: Siôn Le Roux <sinisterstuf@gmail.com>
# read e-mail from pipe
while read -r line; do
# find <h2>
buffer=$(echo $line | grep 'h2')
@sinisterstuf
sinisterstuf / .SRCINFO
Last active Sep 26, 2017
PKGBUILD for the tomboy-notepreview package in AUR.
View .SRCINFO
pkgbase = tomboy-notepreview
pkgdesc = A Tomboy plugin to show a tooltip containing a preview when you hold the mouse over a link in a note.
pkgver = 0.10
pkgrel = 1
url = http://www.robpvn.net/notepreview/
arch = any
license = LGPL
depends = tomboy
source = https://github.com/downloads/robpvn/Tomboy-Note-Preview-Addin/tomboy_notepreviewaddin.zip
md5sums = 40633eee15cd50794f44f3afb1559e6f
You can’t perform that action at this time.