Skip to content

Instantly share code, notes, and snippets.

@plieningerweb
plieningerweb / usb-modeswitch-huawei-e303-debian-jessie-lite-raspberry.md
Last active November 19, 2022 19:31
Debug USB-Modeswitch (Raspberry with debian jessi lite) and Huawei E303

test if modeswitch works

$ sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M "55534243123456780000000000000a11062000000000000100000000000000"

if yes than usually you would do this (but for me it did not work)

#edit config file
/etc/usb_modeswitch.conf
@plieningerweb
plieningerweb / Git push deployment in 7 easy steps.md
Last active March 18, 2016 12:12 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@plieningerweb
plieningerweb / gist:92a5b3af7353f1c8df0a
Created March 20, 2016 12:33 — forked from woolfg/gist:50b1ee17c8e4aa4c8a92
d3.js german locale - create time scale axis with german locale
var germanFormatters = d3.locale({
"decimal": ",",
"thousands": ".",
"grouping": [3],
"currency": ["€", ""],
"dateTime": "%a %b %e %X %Y",
"date": "%d.%m.%Y",
"time": "%H:%M:%S",
"periods": ["AM", "PM"],
"days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
@plieningerweb
plieningerweb / Readme.md
Last active June 2, 2016 14:27
Docker Swarm Network Overlay DNS Resolv not working (Docker 1.11.1)

Docker Swarm Network Overlay DNS Resolv not working (Docker 1.11.1)

I was running a docker swarm network overlay. It was using the company internal dns to resolv (10.0.0.1)

I created the network using:

docker -H :4000 network create test

 docker -H :4000 network inspect test 
@plieningerweb
plieningerweb / gist:39e47584337a516f56da105365a2e4c6
Created June 16, 2016 14:15
Restart python script itsself (run again).md
@plieningerweb
plieningerweb / README.md
Last active October 21, 2020 17:11
Fix ignored mode of tmpfs mount on /tmp
@plieningerweb
plieningerweb / README.md
Last active November 25, 2016 10:51
Write to UART / Serial Console in Carambola2 from ssh

Carambola2 - UART / Serial

Connect serial to a usb port and open it

Connect to Wifi and use ssh to connect over wifi:

ssh root@192.168.17.1 (password root)
@plieningerweb
plieningerweb / Autossh-sytemd.md
Created November 29, 2016 15:50
Autossh Systemd

copy into /etc/systemd/system/autossh-ssh.service

[Unit]
Description=Reverse tunnel for ssh
After=network.target

[Service]
User=pi
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -oExitOnForwardFailure=yes -oStrictHostKeyChecking=no -oServerAliveInterval=30 -oServerAliveCountMax=2 -R {{autossh_reverse_remote_port}}:localhost:22 -N {{autossh_remote_host}}
@plieningerweb
plieningerweb / Readme.md
Created January 27, 2017 15:02
Ubuntu Linux - Intel fifo irq - black screen flickering

Ubuntu Linux - Intel fifo irq - black screen flickering

The issue: In Ubuntu 16.04 the laptop screen and also on external screen will get black for several seconds, until it is on again. This black screen flickering happens about once a minute and is really annoying.

Checking dmesg or /var/log/messages, the following error can be found:

[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *error* cpu pipe a fifo underrun

or 
@plieningerweb
plieningerweb / README.md
Created February 1, 2017 15:16
USB OTG Ethernet Redmi3

USB Ethernet adapter on Redmi 3

Tested Ethernet Adapter:

main@main:~$ lsusb
Bus 002 Device 053: ID 0b95:772b ASIX Electronics Corp. AX88772B

It is not recognized in Redmi 3