Skip to content

Instantly share code, notes, and snippets.

View calvinbui's full-sized avatar
🍀
flover

Calvin Bui calvinbui

🍀
flover
View GitHub Profile
#!/bin/bash
# Script Name: AtoMiC Transmission WebUI installer
# Author: Anand Subramanian
# Initial Release: June 21, 2014
# Publisher: http://www.htpcBeginner.com
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
#!/usr/bin/env bash
# modified by jfro from http://www.cnysupport.com/index.php/linode-dynamic-dns-ddns-update-script
# Update: changed because the old IP-service wasn't working anymore
# Uses curl to be compatible with machines that don't have wget by default
# modified by Ross Hosman for use with cloudflare.
#
# Place at:
# /usr/local/bin/cf-ddns.sh
# if you're lazy (like me): curl -L https://gist.githubusercontent.com/Mkaysi/15719ff29b1ba29b5bd0/raw/cf-ddns > /usr/local/bin/cf-ddns && nano /usr/local/bin/cf-ddns && chmod 700 /usr/local/bin/cf-ddns
# run `crontab -e` and add next line:
@calvinbui
calvinbui / .travis.yml
Last active April 12, 2016 11:48
Build file for Loadiine
language: c
sudo: false
branches:
except:
- /(untagged)/
cache:
apt: true
@calvinbui
calvinbui / ubuntu-post-install.sh
Last active June 25, 2016 04:11
Post Ubuntu Installation
#!/bin/bash
# Download from bit.ly/finish-setup
# Check for root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi

Keybase proof

I hereby claim:

  • I am calvinbui on github.
  • I am calvinbui (https://keybase.io/calvinbui) on keybase.
  • I have a public key whose fingerprint is CD3C 6C92 4DAB B3AE 7B66 6C7A 4C9B 02FB 07AF AA21

To claim this, I am signing this object:

@calvinbui
calvinbui / windows-bindings.json
Created November 13, 2017 22:42
Karabiner Elements Home and End Key except for iTerm2, VIM and Microsoft
{
"title": "Windows keys",
"rules": [{
"description": "home/end except for iterm2/vim/outlook",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "end"
},
"to": [{
###########
# General #
###########
save-position-on-quit
keep-open
#######
# OSD #
#######
title='${path}'
@calvinbui
calvinbui / MK3 Slic3r PLA Start GCode
Last active March 3, 2018 15:45
To prevent filament oozing around the printbed
M115 U3.1.1-RC4 ; tell printer latest fw version
M83 ; extruder relative mode
M140 S[first_layer_bed_temperature] ; set bed temp
M104 S170 ; set extruder temp to 170
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S170 ; wait for extruder temp
G28 W ; home all without mesh bed level
M104 S[first_layer_temperature] ; set extruder to print temp
G80 ; mesh bed leveling ie 9 points
M109 S[first_layer_temperature] ; Heat extruder to print temp and wait
@calvinbui
calvinbui / MK3 Simplify3D PLA Start Script
Last active March 3, 2018 15:46
To prevent filament ooze
M83 ; extruder relative mode
M104 S170 ; set extruder temp to 170
M140 S[bed1_temperature] ; this will take the layer 1 temperature for bed 0
M190 S[bed1_temperature] ; wait for bed temp
M109 S170 ; wait for extruder temp
G28 W ; home all without mesh bed level
M104 S[extruder0_temperature] T0 ; this will take the layer 1 temperature for extruder 0
G80 ; mesh bed leveling
M109 S[extruder0_temperature] ; Heat extruder to print temp and wait
G1 Y-3.0 F1000.0 ; go outside print area
@calvinbui
calvinbui / profile.ps1
Last active March 13, 2018 14:14
Windows Powershell Profile
#——————————————————————————
# PowerShell console profile
# Calvin Bui
# Put at C:\Users\Calvin\Documents\WindowsPowerShell\profile.ps1
# Then run as admin: Set-ExecutionPolicy -ExecutionPolicy Unrestricted