Raspberry Pi
Specs:
- ARM11 (ARMv6)
- to be continued
Version 1
- tbd
#!/bin/bash | |
scriptname="script_template" | |
### functions | |
function usage | |
{ | |
echo -e "usage: $scriptname MANDATORY [OPTION]\n" | |
echo -e "MANDATORY mandatory parameter:" | |
echo -e " -m, --mandatory VAL The desc of the mandatory parameter\n" |
fun! CppHeaderFileHook() | |
let l:filename = tolower(expand("%")) | |
let l:filename = substitute(l:filename, ".hh$","_HH_", "") | |
let l:filename = toupper(l:filename) | |
source ~/templates/cpp_header.template | |
execute "silent %s/FILENAME_HH_/".l:filename."/g" | |
endfun | |
autocmd BufNewFile *.hh call CppHeaderFileHook() |
#!/usr/bin/env ruby | |
# | |
# This is a wrapper to query the appropiate command/parameter | |
# completions for (t)csh. | |
# | |
# Armin Widegreen (c) 2013 | |
# | |
# A call returns a space-seperated string | |
# of the possible completions, e.g.: | |
# ParameterCompletion.getCompletionString("cmd1 diff") |
Specs:
useful tools for tracking the power consumption
Advanced power management tool for Linux.
# disable card reader until it is fixed with 3.11 | |
blacklist rts5139 |
#!/bin/bash | |
################################################################################### | |
# Copyright (c) 2009 Armin Widegreen <armin.widegreen@gmail.com> # | |
# # | |
# 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 (at your option) any later # | |
# version. # | |
# # |
I hereby claim:
To claim this, I am signing this object:
[Unit] | |
Description=Set %i interface in promiscuous mode | |
After=network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/ip link set dev %i promisc on | |
RemainAfterExit=yes | |
[Install] |
client | |
dev tun | |
# "Allow calling of built-in executables and user-defined scripts." In other | |
# words, this must be specified for the `up` script to be executed. | |
script-security 2 | |
route-nopull | |
up vpn-up.sh | |
down vpn-down.sh |