Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Beep boop son, beep boop!

Nguyen Quang Minh minhng99

🤖
Beep boop son, beep boop!
View GitHub Profile
@GustaveTsopmo
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
https://1drv.ms/u/s!AlN1V2_cNJ1Un1C10Ix36trEuQba?e=II3EG8
@lifehome
lifehome / README.md
Last active Jan 28, 2021 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View README.md

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 https://github.com/lifehome/systemd-cfddns 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
antonioaguilar / scaleway-virtualbox-install.sh
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)
View scaleway-virtualbox-install.sh
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 http://archive.ubuntu.com/ubuntu ${x} main universe" | tee -a /etc/apt/sources.list
done
echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" | tee -a /etc/apt/sources.list.d/virtualbox.list
wget https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -
apt-get update
@vitali2y
vitali2y / recover_totolink_a850r_thru_realtek_bootloader.md
Created Aug 2, 2017
How to recover the firmware on Totolink A850R router thru RealTek bootloader
View recover_totolink_a850r_thru_realtek_bootloader.md
@braian87b
braian87b / openwrt-lede-openvpn-client.md
Last active Sep 22, 2020
Setting an OpenWrt / LEDE Based Router as OpenVPN Client
View openwrt-lede-openvpn-client.md

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 eko.one.pl could also work) steps works well on Chaos Calmer 15.05 or 15.05.1.

  1. You need to telnet 192.168.1.1 (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
m1tk4 / autologin-tty-centos6.md
Last active Jan 10, 2019
Creating a TTY on Centos6 with Automatic Login
View autologin-tty-centos6.md

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
elerch / arch-usb-uefi.md
Last active Feb 15, 2021
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support
View arch-usb-uefi.md

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
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <info@syntax-k.de>
# 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
echo
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active Feb 20, 2021
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@colby
colby / battery.sh
Last active Dec 17, 2017
A bash script for getting the laptop battery percentage for tmux.
View battery.sh
#!/bin/bash
#
# To include the line below into your .tmux.conf to see battery % or charging icon.
# set -g status-right "#(/Users/colbyolson/src/scripts/battery.sh) #H %H:%M"
ok_color="colour236"
warn_percent="20"
warn_color="colour208"
status=$(pmset -g batt)