Skip to content

Instantly share code, notes, and snippets.

View ItsAdventureTime's full-sized avatar

Juan Karlo de Guzman ItsAdventureTime

View GitHub Profile
@ItsAdventureTime
ItsAdventureTime / uninstall_office_2016.sh
Created July 19, 2017 05:58 — forked from pirafrank/uninstall_office_2016.sh
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
{
"timeStamp": 1464151013091,
"version": "1.7.2",
"userSettings": {
"advancedUserEnabled": true,
"autoUpdate": true,
"cloudStorageEnabled": true,
"collapseBlocked": true,
"colorBlindFriendly": false,
"contextMenuEnabled": true,
@ItsAdventureTime
ItsAdventureTime / Google-Chrome_Extensions_OSX.md
Last active April 26, 2016 03:23
Google Chrome for OS X list of extensions.

Generated: Tue, 26 Apr 2016 03:22:54 GMT User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36

Extensions: 23

Generated: Thu, 14 Apr 2016 14:35:50 GMT User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

Extensions: 12

@ItsAdventureTime
ItsAdventureTime / letsencrypt.md
Created April 12, 2016 16:54 — forked from xrstf/letsencrypt.md
Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.

As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).

Configuration

For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:

@ItsAdventureTime
ItsAdventureTime / default
Created April 12, 2016 11:52 — forked from ghalusa/default
nginx default configuration file (ubuntu path: /etc/nginx/sites-available/default) with conversions of .htaccess environment variables and mod_rewrite logic, along with parameters supporting a fastcgi-based php setup
server {
listen 80;
root /var/www/YOUR_DIRECTORY;
index index.php index.html index.htm;
###################################################
# Change "yoururl.com" to your host name
server_name yoururl.com;
@ItsAdventureTime
ItsAdventureTime / .rtorrent.rc
Created April 11, 2016 11:31 — forked from bryanjswift/.rtorrent.rc
rtorrent configuration file with description
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 1
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
@ItsAdventureTime
ItsAdventureTime / ublock-origin_whitelist
Last active May 25, 2016 04:38
A list of host names for which uBlock₀ will be disabled.
163.172.28.198
about-scheme
agar.io
behind-the-scene
box.com
chrome-extension-scheme
chrome-scheme
digitalocean.com
docs.google.com
drive.google.com
#### Contents of the preconfiguration file (for wheezy)
### Localization
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/keymap select us
d-i keymap select us
### Network configuration
d-i netcfg/choose_interface select auto
### Mirror settings
@ItsAdventureTime
ItsAdventureTime / .rtorrent.rc
Created August 8, 2014 20:03
This an optimized version of the rTorrent configuration file.
#
#
# The Seedbox From Scratch Script
# By Notos ---> https://github.com/Notos/
#
#
######################################################################
#
# Copyright (c) 2013 Notos (https://github.com/Notos/)
#