This file contains 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://124.244.86.40:8080/wordpress/2020/12/13/%E5%9C%A8-raspberry-pi-%E5%AE%89%E8%A3%9D-mercury-usb-wifi-ac650m-%E9%A9%85%E5%8B%95/ (jan2021) | |
mkdir -p ~/build | |
cd ~/build | |
git clone https://github.com/brektrou/rtl8821CU.git | |
sudo apt-get install dkms bc vim -y | |
sudo apt update -y | |
sudo apt upgrade --fix-missing -y && reboot |
This file contains 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/sh -e | |
#git-cache-meta -- simple file meta data caching and applying. | |
#Simpler than etckeeper, metastore, setgitperms, etc. | |
#from http://www.kerneltrap.org/mailarchive/git/2009/1/9/4654694 | |
#modified by n1k | |
# - save all files metadata not only from other users | |
# - save numeric uid and gid | |
# 2012-03-05 - added filetime, andris9 |
This file contains 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
--- | |
#https://www.webforefront.com/django/usebuiltinjinjafilters.html | |
- hosts: all | |
gather_facts: no | |
vars: | |
string: "string" | |
list: | |
- item1 | |
- item2 | |
dict: |
This file contains 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
wget http://georgielabs.altervista.org/SoundWire_Server_linux64.tar.gz | |
dnf install pavucontrol portaudio -y | |
pulse audio -- recording -- monitor of built in audio stream | |
./SoundWireServer |
This file contains 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
lsusb | |
Bus 001 Device 008: ID 0bda:0811 Realtek Semiconductor Corp. | |
#https://www.amazon.co.uk/ANEWISH-433Mbps-Wireless-Supports-10-4-10-11-4/dp/B01G77I46G | |
#ANEWISH Wifi Dongle AC Dual Band 5GHz 433Mbps Wireless USB Wifi Adapter for PC / Desktop / Laptop / Tablet, Supports Windows 10/8/7/Vista/XP/2000, Mac Os X 10.4-10.11.4 and 10.12.1 | |
Bus 001 Device 008: ID 0bda:0811 Realtek Semiconductor Corp. | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 |
This file contains 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 -x | |
setenforce 0 | |
curl http://download.gluster.org/pub/gluster/glusterfs/LATEST/Fedora/glusterfs-fedora.repo > /etc/yum.repos.d/gluster.repo | |
yum -y install glusterfs-server glusterfs-geo-replication | |
chkconfig glusterd on | |
service glusterd start | |
chkconfig iptables off | |
service iptables stop | |
mkdir -p /bricks/tmpfs | |
umount /bricks/tmpfs |
This file contains 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 | |
#### | |
#Script installs libraries needed after java has been installed on | |
# fedora 22/23 | |
#### | |
dnf install opencv wmctrl tesseract xdotool redhat-lsb-core -y |
This file contains 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 | |
# Interpret whether the input needs to go to ansible, or ansible-playbook and run appropriately | |
# First update the git repos for each project | |
/usr/bin/update-git-repos | |
export ANSIBLE_FORCE_COLOR=1 | |
export ANSIBLE_RETRY_FILES_ENABLED=False |
This file contains 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
echo "ttyS0" >> /etc/securetty | |
vi /etc/default/grub | |
# Add console=ttyS0 to the end of kernel line(s) "GRUB_CMDLINE_LINUX" | |
grub2-mkconfig -o /boot/grub2/grub.cfg | |
reboot | |
#vi /etc/sysconfig/init | |
# Edit ACTIVE_CONSOLES to look like: | |
#ACTIVE_CONSOLES="/dev/tty[1-6] /dev/ttyS0" |
This file contains 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 | |
# Configure the instance to run as a Port Address Translator (PAT) to provide | |
# Internet connectivity to private instances. | |
function log { logger -t "vpc" -- $1; } | |
function die { | |
[ -n "$1" ] && log "$1" | |
log "Configuration of PAT failed!" | |
exit 1 |
NewerOlder