This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |