Skip to content

Instantly share code, notes, and snippets.

View maggocnx's full-sized avatar

Marco Grieb maggocnx

  • Gronic Systems
  • Birstein, Germany
View GitHub Profile
@rob-watts
rob-watts / pb.sh
Created September 5, 2017 22:55
PushBullet Shell Script
#!/bin/sh
function usage {
programName=$0
echo "description: A simple shell script to send PushBullet notices"
echo "usage: $programName [-t \"type\"] [-s \"subject\"] [-m \"messagel\"]"
echo " -t The type (note, file or link) this script only supports 'note'"
echo " -s The subject"
echo " -m The message"
exit 1
@brenns10
brenns10 / Makefile
Last active August 3, 2023 19:51
Linux Character Device Example
obj-m += chardev.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
@zaki50
zaki50 / AndroidManifest.xml
Last active January 21, 2018 21:32
ためしに PrintService を作ってみた
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.zakky.myprintservice"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
@wadey
wadey / iterm2.zsh
Last active July 21, 2024 06:00
Change iTerm2 tab color when using SSH
# Usage:
# source iterm2.zsh
# iTerm2 tab color commands
# https://iterm2.com/documentation-escape-codes.html
if [[ -n "$ITERM_SESSION_ID" ]]; then
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"