Skip to content

Instantly share code, notes, and snippets.

Avatar
😸

Manawyrm Manawyrm

😸
View GitHub Profile
@Manawyrm
Manawyrm / rigolshot.php
Created January 5, 2020 17:00
Take screenshots from a Rigol DS1054z scope in PHP and upload them to a server as a .png file
View rigolshot.php
#!/usr/bin/php
<?php
$fp = fsockopen("ds1054z.tbhome.de", 5555, $errno, $errstr, 10);
$data = "";
if (!$fp)
{
die("TCP error: $errstr ($errno)\n");
}
else
@Manawyrm
Manawyrm / lircd.conf
Created July 3, 2016 14:10
Samsung UE32F5070 lircd.conf
View lircd.conf
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Sun Jul 3 13:51:42 2016
#
# contributed by
#
# brand: /etc/lirc/lircd.conf
View ComputerCraftGrubPlayer.lua
music = "1047 48 1397 48 1047 48 698 48 1047 48 1397 48 1047 96 1047 48 1397 48 1047 48 1397 48 1760 72 1568 24 1397 24 1319 24 1175 24 1109 24 1047 48 1397 48 1047 48 698 48 1047 48 1397 48 1047 96 1397 72 1175 24 1047 48 932 48 880 48 784 48 698 48 1245 48 1661 48 1245 48 831 48 1245 48 1661 48 1245 96 1245 48 1661 48 1245 48 1661 48 2093 72 1865 24 1661 24 1568 24 1397 24 1319 24 1245 48 1661 48 1245 48 831 48 1245 48 1661 48 1245 96 1661 72 1397 24 1245 48 1109 48 1047 48 932 48 831 72 1245 48 1661 48"
function mysplit(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
View removeKeyring.patch
--- lookitconfigold.py 2015-01-25 01:24:19.166041508 +0100
+++ lookitconfig.py 2015-01-25 01:28:41.943277307 +0100
@@ -1,6 +1,5 @@
from ConfigParser import RawConfigParser, NoSectionError, NoOptionError
import gconf
-import keyring
import os
import subprocess
@@ -44,7 +43,8 @@
View gist:11348971
router id 172.23.235.1;
log syslog all;
define my_as = 76190;
protocol kernel {
persist no;
scan time 5;
learn yes;
@Manawyrm
Manawyrm / keybase.md
Created April 27, 2014 13:09
Keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am manawyrm on github.
  • I am manawyrm (https://keybase.io/manawyrm) on keybase.
  • I have a public key whose fingerprint is 3A69 E9AF 3FA9 3BCF FE50 9694 494E 2F56 C304 60E1

To claim this, I am signing this object:

@Manawyrm
Manawyrm / slt3open.reg
Created August 15, 2013 09:30
Adds "Mit Sublime Text 3 öffnen" into the Windows File Context Menus
View slt3open.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Mit Sublime Text 3 öffnen]
[HKEY_CLASSES_ROOT\*\shell\Mit Sublime Text 3 öffnen\command]
@="C:\\Program Files\\Sublime Text 3\\sublime_text.exe %1"
@Manawyrm
Manawyrm / time_until_s4.pl
Created July 26, 2013 02:57
time until s4
View time_until_s4.pl
#!/usr/bin/perl
my $secleft = 1385319600 - `date +%s`;
my $days = int($secleft / 86400);
$secleft -= ($days * 86400);
my $hours = int($secleft / 3600);
$secleft -= ($hours * 3600);
my $minutes = int($secleft / 60);
my $seconds = $secleft % 60;
@Manawyrm
Manawyrm / .bashrc
Last active December 20, 2015 00:59
randomfood @Mezgrman
View .bashrc
curl --silent http://www.mezgrman.de/apps/randomfood | grep value= |cut -c 45- | awk -F " http" '{print $1}'
for increased destruction use:
curl --silent http://www.mezgrman.de/apps/randomfood | grep value= |cut -c 45- | awk -F " http" '{print $1}' | php -R 'echo html_entity_decode($argn)."\n";'
@Manawyrm
Manawyrm / ts3
Created July 4, 2013 19:36
Secure startscript for teamspeak 3 under debian squeeze with user abstraction
View ts3
#! /bin/sh
# /etc/init.d/ts3
#
# TeamSpeak 3 Startscript
# Written 2011 by Tobias Mädel (t.maedel@alfeld.de)
#
case "$1" in
start)
sudo -u teamspeak /home/teamspeak/ts3/ts3server_startscript.sh start
;;