Skip to content

Instantly share code, notes, and snippets.

View webdevsuperfast's full-sized avatar
🏠
Working from home

Rotsen Mark Acob webdevsuperfast

🏠
Working from home
View GitHub Profile
@webdevsuperfast
webdevsuperfast / .wezterm.lua
Created November 13, 2023 07:40
WezTerm configuration
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
@webdevsuperfast
webdevsuperfast / run.sh
Last active October 22, 2022 05:33 — forked from xanderificnl/run.sh
Install recursive mono font on Fedora
#!/bin/sh
sudo dnf install -y wget p7zip curl
[[ ! -d ~/.fonts ]] && mkdir -p ~/.fonts
wget "$(curl "https://www.recursive.design" | grep -o 'https://github.com/.*.zip' | head -n1)" -O /tmp/recursive-fonts.zip
( cd ~/.fonts ; 7za e -y -r -i\!*.ttf /tmp/recursive-fonts.zip )
@webdevsuperfast
webdevsuperfast / .gitlab-ci.yml
Created April 1, 2022 02:17 — forked from qutek/.gitlab-ci.yml
[Gitlab CI With Rsync] Auto deploy gitlab CI with rsync
# https://gitlab.com/help/ci/quick_start/README
# https://docs.gitlab.com/ee/ci/introduction/
# https://docs.gitlab.com/ee/ci/yaml/
image: dpolyakov/docker-node-latest-with-rsync:latest
# before_script:
# - apt-get update -qq
# - apt-get install -qq git
@webdevsuperfast
webdevsuperfast / Ionic Android Development on WSL.md
Created March 20, 2022 09:49 — forked from fedme/Ionic Android Development on WSL.md
Ionic Android Development on WSL (Windows Subsystem for Linux)

Ionic Android Development on WSL

Installing the required software

Execute the following commands to install Node, npm, git, Java, Ionic, Cordova and Angular CLI:

cd ~
sudo apt update
sudo apt upgrade
@webdevsuperfast
webdevsuperfast / qemu_fedora.md
Last active March 7, 2022 03:10 — forked from Jatapiaro/qemu_ubuntu.md
How to install QEMU on MacOS Catalina and install a Fedora VM

Install QEMU on OSX

QEMU requires brew in OSX, so we need to install brew first.

Installing Brew

To install brew we need to have the developer tools enabled in our system. In order to install those tools, we have two options.

  1. Download Xcode form the AppStore
  2. In your terminal run the following command: xcode-select --install
@webdevsuperfast
webdevsuperfast / failover.sh
Created December 29, 2021 04:24
MWAN3 error detection
#!/bin/sh
STATUS=$(/usr/sbin/mwan3 status)
if [ "$STATUS" != "${STATUS/error/} ]; then
/usr/sbin/mwan3 restart
fi
@webdevsuperfast
webdevsuperfast / .plugins.txt
Last active January 2, 2022 06:31
My ZSH Configuration on PopOS with Antibody & Spaceship Theme
zdharma-continuum/fast-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
zsh-users/zsh-completions
buonomo/yarn-completion
spaceship-prompt/spaceship-prompt
@webdevsuperfast
webdevsuperfast / Adguard.js
Created November 13, 2021 01:51 — forked from LeiHao0/Adguard.js
Batch add block list in Adguard Home
list = [
"https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt",
"https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts",
"https://v.firebog.net/hosts/static/w3kbl.txt",
"https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt",
"https://someonewhocares.org/hosts/zero/hosts",
"https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts",
"https://winhelp2002.mvps.org/hosts.txt",
"https://v.firebog.net/hosts/neohostsbasic.txt",
"https://raw.githubusercontent.com/RooneyMcNibNug/pihole-stuff/master/SNAFU.txt",
@webdevsuperfast
webdevsuperfast / openwrt.sh
Created November 11, 2021 07:02
OpenWRT IPTables block devices based on MAC Address
#! /bin/sh
# List of MAC Addresses to drop
mac="XX:XX:XX:XX:XX:XX AA:AA:AA:AA:AA:AA"
set -- $mac
# while [ -n "$1" ]; do
while [ $# -gt 0 ]; do
echo "iptables -I FORWARD -m mac --mac-source $1 -j DROP">>/etc/firewall.user
shift

Xiaomi 3C OpenWRT Install

Specifications:

  • CPU: MediaTek MT7628AN (575MHz)
  • Flash: 16MB
  • RAM: 64MB DDR2
  • 2.4 GHz: IEEE 802.11b/g/n with Integrated LNA and PA
  • Antennas: 4x external single band antennas
  • WAN: 1x 10/100M