Skip to content

Instantly share code, notes, and snippets.

Beep boop son, beep boop!

Nguyen Quang Minh minhng99

Beep boop son, beep boop!
View GitHub Profile
GustaveTsopmo / Download vios_l2-adventerprisek9-m.03.2017.qcow2
Last active Sep 15, 2020
To download vios_l2-adventerprisek9-m.03.2017.qcow2, use the link bilow.
View Download vios_l2-adventerprisek9-m.03.2017.qcow2!AlN1V2_cNJ1Un1C10Ix36trEuQba?e=II3EG8
lifehome /
Last active Jan 28, 2021 — forked from benkulbertis/
Cloudflare API v4 Dynamic DNS Update in Bash

Cloudflare DDNS bash client with systemd

This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.

Look out!

A newer version is available!

This gist will no longer update, instead please go to for more updated versions.

How to use?

  1. Put the cfupdater files to /usr/local/bin
  • If you are using IPv4 for A record, append -v4 to cfupdater in the following systemd service unit.
antonioaguilar /
Last active May 7, 2020 — forked from fabianmu/gist:3467a28e274f03fd9dfe20b2a6f7feca
Install Virtualbox 5.2 on Scaleway (works with Scaleway kernel 4.4.127-mainline-rev1 Ubuntu Xenial - June 2018)
alias wget='wget -q --no-check-certificate'
# so that we can install virtualbox via apt-get
for x in xenial xenial-security xenial-updates; do
egrep -qe "deb-src.* $x " /etc/apt/sources.list || echo "deb-src ${x} main universe" | tee -a /etc/apt/sources.list
echo "deb xenial contrib" | tee -a /etc/apt/sources.list.d/virtualbox.list
wget -O- | apt-key add -
apt-get update
vitali2y /
Created Aug 2, 2017
How to recover the firmware on Totolink A850R router thru RealTek bootloader
braian87b /
Last active Sep 22, 2020
Setting an OpenWrt / LEDE Based Router as OpenVPN Client

These instructions should work for Streisand as well for others VPN providers (Streisand is a Software that automatically configures a VPS online server with OpenVPN and other VPN/Proxy Softwares in order to have a private VPN Server)

These instructions are for getting an OpenWrt Based Router working as OpenVPN Client (should work for LEDE, Gargoyle and another distributions). Computers connected to Lan Ports of the OpenWrt Router will navigate through the Internet connection of the OpenVPN Server (in this case the Streisand one previously set up) you need a working Router with OpenWrt based firmware flashed on it (LEDE or could also work) steps works well on Chaos Calmer 15.05 or 15.05.1.

  1. You need to telnet (OpenWrt Router) and set up a password using passwd You can skip this if you already have a password and can connect using ssh.
m1tk4 /
Last active Jan 10, 2019
Creating a TTY on Centos6 with Automatic Login

Automatic Login TTY on Centos 6

  1. Copy /etc/init/tty.conf to /etc/init/tty-autologin.conf and edit the new file as follows ("myuser" is the user we want to end up logged in automatically on TTY1):
# tty - getty
# This service maintains a getty on the specified device.
# Do not edit this file directly. If you want to change the behaviour,
# please create a file tty.override and put your changes there.
elerch /
Last active Feb 15, 2021
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support

Our goal here is to have one USB stick to rule them all. Objectives:

  • We want a full system - not a live CD
  • We want to boot this system on a Macbook Pro (requires UEFI)
  • We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
  • We want the system "functional"

The last bullet is subject to interpretation, but I'm defining functional as:

  • X Windows works (with LXDE)
View btrfs-undelete
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
benkulbertis /
Last active Feb 20, 2021
Cloudflare API v4 Dynamic DNS Update in Bash
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
ip=$(curl -s
colby /
Last active Dec 17, 2017
A bash script for getting the laptop battery percentage for tmux.
# To include the line below into your .tmux.conf to see battery % or charging icon.
# set -g status-right "#(/Users/colbyolson/src/scripts/ #H %H:%M"
status=$(pmset -g batt)