Skip to content

Instantly share code, notes, and snippets.

@ahnbizcad
ahnbizcad / Gemfile
Last active August 29, 2015 14:08
Syntax Highlighting with AsciiDoctor & CodeRay
gem 'asciidoctor'
gem 'coderay', '~> 1.1.0'
@ahnbizcad
ahnbizcad / .gitignore
Last active August 29, 2015 14:10
Rails App Default Modifications
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
@ahnbizcad
ahnbizcad / Default (OSX).sublime-keymap
Last active October 7, 2015 22:05
SublimeText Profile
[
{ "keys": ["super+t"], "command": "new_file" },
// tab in order, not last used
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
// paste with indentation intact
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["ctrl+shift+d"], "command": "delete_trailing_spaces" }
@ahnbizcad
ahnbizcad / git config aliases file
Last active April 14, 2022 02:06
Bash Alias Shortcut Commands
#
# Git
#
[user]
email = ----FILL THIS OUT----
name = ----FILL THIS OUT----
[alias]
lg = log --oneline --graph --decorate --abbrev-commit --pretty=format:'%C(bold blue)[%cn] %C(green)(%cr) %C(yellow)%h %C(red)%d %C(reset)%s'
br = branch
co = checkout
function addOrReplaceQueryParam(url,param,value) {
var re = new RegExp("([?|&])" + param + "=.*?(&|$)","i");
var paramCount = url.split("?").length - 1;
var separator = url.indexOf('?') !== -1 ? '&' : '?',
if (url.match(re))
{
return url.replace(re, '$1' + param + "=" + value + '$2');
}
else
@ahnbizcad
ahnbizcad / virtualbox_setup.md
Last active June 11, 2017 19:30
VirtualBox spin up steps

Guide to set up a VM instance. Execute sequentially.

Obtain required programs

scope: WEB

Install VirtualBox

scope: host OS (assumes Windows 10)

@ahnbizcad
ahnbizcad / docker_setup.md
Last active June 16, 2021 00:01
Setting up docker on a VirtualBox VM
@ahnbizcad
ahnbizcad / xubuntu_setup.md
Last active June 11, 2017 19:57
Xubuntu Setup

My preferred Xubuntu fresh installation setup

Linux Settings

  • File Manager > view > show hidden files: true

Linux Software

update linux software

scope: VM instance OS

@ahnbizcad
ahnbizcad / atom_configuration_steps.md
Last active September 11, 2018 02:33
Atom Configuration Steps

Setup steps to achieve my preferred Atom configuration

Atom Settings

Have positional tab cycling

  • Go to File > keymap...
  • Paste:
  'body':