Skip to content

Instantly share code, notes, and snippets.

View Gcaufy's full-sized avatar
💭
I may be slow to respond.

Gcaufy Gcaufy

💭
I may be slow to respond.
View GitHub Profile
@Gcaufy
Gcaufy / auto_switch_proxy.sh
Last active May 27, 2019 04:02
If you changed to another WIFI ssid, you can use this script to automatically switch your proxy setting
#!/bin/bash
##############
##
##
## Switch your proxy setting based on your SSID
##
## Author: Gcuafy <gcaufy@gmail.com>
## Install:
## $ alias ap='source ~/whaterveryourcodeis/auto_switch_proxy.sh'
@Gcaufy
Gcaufy / vm-resize-hard-disk.md
Created January 25, 2016 03:15 — forked from christopher-hopper/vm-resize-hard-disk.md
Resize a Hard Disk for a Virtual Machine provisioned using Vagrant from a Linux base box to run using VirutalBox.

Resize a Hard Disk for a Virtual Machine

Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.

Some assumptions

The following steps assume you've got a set-up like mine, where: