Skip to content

Instantly share code, notes, and snippets.

Ich muss einfach mal sagen: Mobiles Internet von bestimmten Anbietern in Deutschland ist ein leidensvoller Tanz.
Das fängt schon beim Stick an, der sich erstmal als Datenträger meldet.
An sich ist das eine grandiose Idee.. aber: Die Software, die besagtes Speichermedium anbietet, scheint unter Mac OSX nur ein erklärtes Ziel zu haben: Mitsamt nettem Stack-Trace abzustürzen - nach erquicklich langer Denkpause beim Start.
Software für Linux fehlt vollständig. Sehr gut.
Hat man dann die funktionsfähige Version der Software, mit der man schliesslich ins Internet gelangen könnte, aus selbigem heruntergeladen (welch herrliche Ironie!), so grüsst der mobile Sozius mit einem hübschen Fenster.
Oftmals steht dort dann die liebevoll dahinphilosophierte Poesie "Gerät nicht erkannt oder nicht vorhanden", obgleich der Stick am USB Port prangt und mit bunten Lichtern Einsatzwillen suggeriert.
Ein Abziehen und Wiederanstecken scheint dem besagten Partner im Kampfe um einen Platz an der digitalen Informationssonne so schnöd
@AVGP
AVGP / create_machine.sh
Created April 18, 2013 07:37
Script to create a user-mode linux machine using interactive questions
#!/bin/sh
### functions
f() { echo "Failed."; exit; }
setup_net()
{
echo "Configuring network"
while :; do
@AVGP
AVGP / create_machine_switched.sh
Created April 18, 2013 11:30
Create UML machine with uml_switch networking
#!/bin/sh
### functions
f() { echo "Failed."; exit; }
setup_net()
{
echo "Configuring network"
while :; do
<b>Fatal error</b>: Cannot redeclare get_user_metavalues() (previously declared in \\192.168.0.100\LOCALUSER\maffia\wp-includes\user.php:1072) in <b>\\192.168.0.100\LOCALUSER\maffia\wp-includes\deprecated.php</b> on line <b>2664</b><br />
@AVGP
AVGP / parse_location_history.rb
Created December 14, 2013 22:19
Get some insights from the location history Google saves from your phone or tablet
require 'json'
data = JSON.parse(File.read("location_history.json"))
num_locations = data["locations"].length
accuracy_sum = 0
activities = {}
total_activities = 0
puts "Number of locations: #{num_locations}"
@AVGP
AVGP / mkleeenux.bash
Created January 6, 2014 07:05
Creating a debian image for the EEE pc
#!/bin/bash
mkdir leeenux
cd leeenux
lb config --packages "openssh-client acpid acpi cpufrequtils pm-utils eeepc-acpi-scripts git-core vim gcc g++ libstdc++6 wpasupplicant xserver-xorg xserver-xorg-input-synaptics xserver-xorg-video-intel xserver-xorg-video-fbdev libgl1-mesa-dri pciutils firmware-iwlwifi firmware-atheros linux-sound-base alsa-base alsa-utils xfce4 xfce4-terminal xfce4-mixer xinit wireless-tools dhcpcd locate x11-xserver-utils gajim chromium-browser openoffice.org luvcview vlc okular xtightvncviewer netbeans-ide" --hostname moon --binary-images usb-hdd --bootappend-live "acpi_osi=Linux nomodeset locales=de_DE.UTF-8 keyboard-layouts=de" --apt-recommends false --binary-indices false --language de --distribution squeeze --archive-areas "main contrib non-free"
echo "deb http://ftp.debian.org/debian/ squeeze main contrib non-free" >> config/chroot_sources/full.chroot
echo "deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free" >> config/chroot_sources/full.chroot
mkdir -p config/chr
### Keybase proof
I hereby claim:
* I am avgp on github.
* I am g33konaut (https://keybase.io/g33konaut) on keybase.
* I have a public key whose fingerprint is C6C5 0090 A5BD DA3A BA52 26DA 78C5 C26F 75B1 EB5E
To claim this, I am signing this object:
@AVGP
AVGP / designer.html
Created August 27, 2014 16:21
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@AVGP
AVGP / apotd.go
Created September 25, 2014 08:29
Agile Principle of the day - simple HTTP quote service
package main
import(
"fmt"
"math/rand"
"time"
"net/http"
)
func main() {
@AVGP
AVGP / ar_heading.js
Created November 20, 2014 14:27
Handy function to get the difference between target heading and current heading
function getAngle(currentHeading, target) {
if(currentHeading > 180) {
target += 360;
}
return Math.abs(currentHeading - target);
}