Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Mebus's full-sized avatar
😀

Mebus Mebus

😀
View GitHub Profile
/* Melbus CDCHGR Emulator
* Program that emulates the MELBUS communication from a CD-changer (CD-CHGR) in a Volvo V70 (HU-xxxx) to enable AUX-input through the 8-pin DIN-contact.
* This setup is using an Arduino Nano 5v clone
*
* The HU enables the CD-CHGR in its source-menue after a successful initialization procedure is accomplished.
* The HU will remove the CD-CHGR everytime the car starts if it wont get an response from CD-CHGR (second init-procedure).
*
* Karl Hagström 2015-11-04
* mod by S. Zeller 2016-03-14
*
@Mebus
Mebus / pdfmagic.sh
Created July 28, 2017 20:38
PDFMagic
#!/bin/bash
pdftk A=PDFsam_merge-step1-step2.pdf cat Aodd output odd.pdf
pdftk A=PDFsam_merge-step1-step2.pdf cat Aeven output even.pdf
pdfcrop --margins "100 0 0 0" --clip odd.pdf
pdfcrop --margins "0 0 100 0" --clip even.pdf
@Mebus
Mebus / gist:f42ddcbe5719483d88e00396f723f8b8
Created July 7, 2017 08:31 — forked from ev3rywh3re/gist:2587766
Linux: grep command line notes
## Search for scary PHP stuff.
grep "((eval.*(base64_decode|gzinflate))|r57|c99|sh(3(ll|11)))" ./ -roE --include=*.php*
@Mebus
Mebus / aufgabe3.m
Last active May 15, 2017 23:25
Mechatronik Aufgabe 3.1
% Aufgabe 3.1
y = transpose([5.5 1.5 -3.5 4.5 8.5]);
U = [-1.5 2.5;-0.5 0.25; 4.5 20.25; 7 49; 8 64];
theta = inv((transpose(U)*U))*transpose(U) * y
y_schlange(1:5) = 0;
@Mebus
Mebus / sshclient.go
Created May 11, 2017 17:07 — forked from josephspurrier/sshclient.go
Golang SSH Client
package main
import (
"bufio"
"io/ioutil"
"os/signal"
//"syscall"
"fmt"
"log"
"os"
@Mebus
Mebus / youtube2tv.py
Last active April 22, 2017 21:07 — forked from anonymous/-
youtube2tv.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Author: Mebus
License: MIT
Purpose: Convert files for crappy PHILIPS **SMART**TV
Requirments-Installation:
@Mebus
Mebus / -
Last active April 21, 2017 12:29 — forked from anonymous/-
sha256sum alte-picus-platte-750gb.img
2e8d52d91553b2c1414e6f9c8c34d2dff2ba86ce1906d863a5991e5afe25506d alte-picus-platte-750gb.img
@Mebus
Mebus / kwacros.py
Last active March 18, 2017 17:16 — forked from skyl/kwacros.py
Django Template macros with args and kwargs
#
# templatetags/kwacros.py - Support for macros in Django templates
#
# Based on snippet by
# Author: Michal Ludvig <michal@logix.cz>
# http://www.logix.cz/michal
#
# modified for args and kwargs by Skylar Saveland http://skyl.org
#
@Mebus
Mebus / .profile
Created January 23, 2017 21:19
.profile for using the ssh agent with git on Windows
gent_running() {
[ "$SSH_AUTH_SOCK" ] && { ssh-add -l >/dev/null 2>&1 || [ $? -eq 1 ]; }
}
env=~/.ssh/agent.env
if ! agent_running && [ -s "$env" ]; then
. "$env" >/dev/null
fi
@Mebus
Mebus / gist:1587ce7f24e6b9e8d103
Created February 12, 2016 00:36
DN42 ASCII Art
.:::::,
:::::::`
,::::::::
:::::::::.
:::::::::::
`. ; ,;, '''''',::::::::::
;@. '@ :@@@@@` ;''''''::::::::::`
;@. :@@ @@;:#@@ `''''''''.:::::::,
;@. .@@@ + #@; ''''''''';:::::::
;@. @@@@ :@+ ,''''''''''.,,,,,`