Skip to content

Instantly share code, notes, and snippets.

@walduino
walduino / ffchromeCA.yaml
Created January 3, 2020 14:57
Ansible to add cert to CA and make firefox and chrome use the system CA store under linux
---
- name: certauth.yml | Make sure the folder exists (Debian, Ubuntu)
file:
path: /usr/local/share/ca-certificates
state: directory
- name: certauth.yml | Download root CA
get_url:
url: "{{ install_ip }}/xxx.crt"
dest: "/usr/local/share/ca-certificates/xxx.crt"
@walduino
walduino / wifi_clients.sh
Last active January 7, 2020 10:54
Script to query multiple openwrt access points and check connected clients
#!/bin/bash
# /etc/config/show_wifi_clients.sh
# Shows MAC, IP address and any hostname info for all connected wifi devices
# written for openwrt 12.09 Attitude Adjustment
routers="archer swordsman"
dhcp_host="swordsman"
date +%F_%T
dhcpleases=`ssh root@$dhcp_host cat /tmp/dhcp.leases`
@walduino
walduino / Odroid C1 NTP Stratum 0 PPS GPS Clock
Last active November 10, 2016 17:53
working setup on an odroid c1 for PPS gps setup
sudo -s
apt-get install device-tree-compiler pps-tools gpsd ntp
fdtput -c /media/boot/meson8b_odroidc.dtb /pps
fdtput -t s /media/boot/meson8b_odroidc.dtb /pps compatible "pps-gpio"
fdtput -t s /media/boot/meson8b_odroidc.dtb /pps gpios "GPIOY_3"
GPS PPS pin attached to GPIOY_3
http://odroid.com/dokuwiki/doku.php?id=en:c1_gpio_pps
test commands
/* http://www.brokestream.com/udp_redirect.html
Build: gcc -o udp_redirect udp_redirect.c
udp_redirect.c
Version 2008-11-09
Copyright (C) 2007 Ivan Tikhonov
This software is provided 'as-is', without any express or implied
#!/bin/bash
echo "Paste transport stream URL (ending in ts) followed by [ENTER]:"
echo "EXAMPLE: http://vod.streamcloud.be/vier_vod/mp4:_definst_/terugnaareigenland/s1/160224_onlineclip1.mp4/media_w378815682_0.ts"
read url
url_pt=$(echo $url | sed -e 's/[^_]*$//g')
for i in `seq 1 9999`; do
echo $url_pt$i".ts"
wget $url_pt$i".ts"
@walduino
walduino / gist:5726262985c3d8552694
Created December 17, 2015 19:55
kedei rpi lcd screen portrait
xinput --set-prop 'KeDei.taobao.com' "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
pi@raspberrypi ~ $ cat /usr/share/X11/xorg.conf.d/99-fbturbo.conf
Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"
Option "Rotate" "CCW"
Option "SwapbuffersWait" "true"
EndSection