Skip to content

Instantly share code, notes, and snippets.

View shibumi's full-sized avatar

Christian Rebischke shibumi

View GitHub Profile
@shibumi
shibumi / apk-signer
Last active August 29, 2015 14:00
apk-signer for executing apk-signer.jar
#!/bin/bash
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@shibumi
shibumi / dhexrc
Last active August 29, 2015 14:26
My dhex config file
#DHEXCOLORSCHEME
#VERSION 0
#possible colors are: BLACK,RED,GREEN,YELLOW,BLUE,MAGENTA,CYAN,WHITE
#possible extra flags are: UNDERLINE,REVERSE,BLINK,DIM,BOLD
BRACKETS: FG=BLACK,BG=BLACK,BOLD
HEXFIELD: FG=WHITE,BG=BLACK
INPUT: FG=BLACK,BG=WHITE
CURSOR: FG=WHITE,BG=BLACK
TEXT: FG=LIGHTCYAN,BG=BLACK,BOLD
@shibumi
shibumi / ini
Created July 29, 2015 00:13
my midnightcommander configs
[Midnight-Commander]
verbose=1
pause_after_run=1
shell_patterns=1
auto_save_setup=1
preallocate_space=0
auto_menu=0
use_internal_view=1
use_internal_edit=1
clear_before_exec=1
@shibumi
shibumi / issue
Created July 29, 2015 00:13
my /etc/issue

OM: MM:
MMMO MMM THIS IS A PRIVATE SYSTEM FOR AUTHORIZED USERS ONLY
~MM MM +MM
MMM MM MM It is a CRIMINAL OFFENSE to attempt to gain acess to
MM: MM MMD systems to which you do not have permission.
~MMM MM $MM FULL LEGAL AND UNLIMITED CIVIL ACTION WILL BE TAKEN
,MMMM MM MM AGAINST ANY AND ALL UNAUTHORIZED PERSON(S)
MMM N+ MMMM= MM All activity on these system is logged
MMM MM , MMMM MM=
@shibumi
shibumi / Xresources
Created July 29, 2015 00:16
my X-Server configs
urxvt*foreground: grey
urxvt*background: black
urxvt*scrollBar: false
urxvt*font: xft:Monospace:pixelsize=11
dmenu*font: Dejavu Sans Mono-9
!dmenu*font: Monospace-9
!urxvt*.transparent: true
!urxvt*.shading: 40
@shibumi
shibumi / config.h
Created July 29, 2015 00:24
my dwm config
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#000000";
static const char normbgcolor[] = "#000000";
static const char normfgcolor[] = "#cccccc";
static const char selbordercolor[] = "#cccccc";
static const char selbgcolor[] = "#454545";
static const char selfgcolor[] = "#cccccc";
@shibumi
shibumi / scan.sh
Last active September 8, 2015 18:45
#!/bin/bash
#
# scan.sh - simple ip list parser and whois tool
#
# Copyright (c) 2015 by Christian Rebischke
# <echo Q2hyaXMuUmViaXNjaGtlQGdtYWlsLmNvbQo= | base64 -d>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@shibumi
shibumi / PKGBUILD
Created October 7, 2015 16:32
PKGBUILD for N1 Mailclient
# Maintainer: Christian Rebischke <echo Q2hyaXMuUmViaXNjaGtlQGdtYWlsLmNvbQo= | base64 -d>
_pkgname='N1'
pkgname='n1-git'
pkgver=..0edbf51
pkgrel=1
pkgdesc="An extensible mail client built on the modern web"
arch=('any')
url="https://github.com/mbilker/N1/tree/node-v4"
license=('')
depends=('nodejs' 'npm')
# Aliases
alias gdb="gdb -q"
alias mksrcinfo="makepkg --printsrcinfo > .SRCINFO"
alias mosh="mosh --predict=experimental"
alias mpv="mpv --audio-display=no"
alias g="git"
if [ -x "$(command -v exa)" ]; then
alias l="exa"
alias ls="exa"
alias ll="exa -l --git"
prompt_git_dirty() {
if git rev-parse --git-dir > /dev/null 2>&1; then
if [ -z "$(command git status --porcelain --ignore-submodules -unormal)" ]; then
echo "green"
else
echo "yellow"
fi
else
echo "blue"
fi