Skip to content

Instantly share code, notes, and snippets.

View abeyt's full-sized avatar
🌴
On vacation

abeyt

🌴
On vacation
View GitHub Profile
@abeyt
abeyt / AC650M_RTL8821CU_WiFi.txt
Created January 27, 2021 12:56
Install Mercury USB WiFi AC650M driver on Raspberry Pi
#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
@abeyt
abeyt / git-cache-meta.sh
Created September 27, 2017 11:02 — forked from andris9/git-cache-meta.sh
git-cache-meta
#!/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
@abeyt
abeyt / jinja_variables_types.yml
Last active September 21, 2017 10:11 — forked from spiette/jinja_variables_types.yml
Test the variables types in jinja2 templates, used here with ansible
---
#https://www.webforefront.com/django/usebuiltinjinjafilters.html
- hosts: all
gather_facts: no
vars:
string: "string"
list:
- item1
- item2
dict:
@abeyt
abeyt / soundwire_install.txt
Last active May 3, 2017 20:29
Sound wire install
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
@abeyt
abeyt / ANEWISH_AC600_WiFi.txt
Created May 1, 2017 12:33
Fedora 25 ANEWISH WiFi AC600 DKMS instructions for driver installation
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
@abeyt
abeyt / prepare tmpfs bricks
Created January 22, 2016 17:24 — forked from enakai00/prepare tmpfs bricks
Prepare Fedora GlusterFS nodes with tmpfs brick
#!/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
#!/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
@abeyt
abeyt / gist:7a7a7be652581f776f49
Last active September 9, 2015 15:28 — forked from chrisgilbert/gist:58f57c82f74162ed5c0f
Run Ansible or Ansible-Playbook from Rundeck
#!/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
@abeyt
abeyt / enable_serial_console.sh
Last active September 19, 2022 16:57 — forked from stefanozanella/enable_serial_console.sh
Enable serial console output in CentOS 7
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"
#!/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