Skip to content

Instantly share code, notes, and snippets.

; https://portableapps.com/apps/utilities/gridy-portable
;---------------------------------------------------------------------
; Gridy Configuration File
;
; Please do not modify this file manually unless you know what you are
; doing.
; Use the system tray menu to configure Gridy - most of the settings
; are accessible through that menu.
;---------------------------------------------------------------------
@fuhoi
fuhoi / mantra.md
Last active March 27, 2019 08:11

Mantras

Some mantras picked up over time.

  • One should double-check one's measurements for accuracy before cutting a piece of wood; otherwise it may be necessary to cut again, wasting time and material.
  • Plan and prepare in a careful, thorough manner before taking action.
@fuhoi
fuhoi / .bashrc
Last active March 16, 2019 03:50
Git Bash for Windows
# reload: `. ~/.bashrc`
# history
HISTSIZE=10000
HISTFILESIZE=10000
# 'history -a' - append to the history file immediately
# 'history -c' - clear the current history in this session
# 'history -r' - read history into this session
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
@fuhoi
fuhoi / readme.md
Last active March 21, 2019 01:59
Links
@fuhoi
fuhoi / boxstarter.ps1
Last active March 24, 2019 18:07 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
#
# Learn more: http://boxstarter.org/Learn/WebLauncher
#---- TEMPORARY ---
package com.tom.utils;
import android.os.Environment;
import android.os.StatFs;
/**
* Created by Tom on 7/15/13.
* Some helper methods for FS queries.
*/
public class DiskUtils {
@fuhoi
fuhoi / Vagrantfile
Created December 7, 2015 22:49 — forked from joefitzgerald/Vagrantfile
Windows Vagrantfile - Installs .NET 4.5, VS 2012, VS 2012 Update 3, then a bunch of utilities, then syspreps the machine. Get https://github.com/joefitzgerald/packer-windows for the base box and add it with the name "windows2008r2".
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "vagrant-windows"
config.vm.box = "windows2008r2"
# You should be using the vagrant-windows Vagrant Plugin!
# Admin user name and password
config.winrm.username = "Administrator"
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
Get-ChildItem -Recurse . | where { $_.PSISContainer -and @( $_ | Get-ChildItem ).Count -eq 0 } | Remove-Item -force
/*
* Copyright 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software