Skip to content

Instantly share code, notes, and snippets.

@ahnbizcad
ahnbizcad / atom_configuration_steps.md
Last active Sep 11, 2018
Atom Configuration Steps
View atom_configuration_steps.md

Setup steps to achieve my preferred Atom configuration

Atom Settings

Have positional tab cycling

  • Go to File > keymap...
  • Paste:
  'body':
View xubuntu_setup.md

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 / docker_setup.md
Last active Jun 16, 2021
Setting up docker on a VirtualBox VM
View docker_setup.md
@ahnbizcad
ahnbizcad / virtualbox_setup.md
Last active Jun 11, 2017
VirtualBox spin up steps
View virtualbox_setup.md

Guide to set up a VM instance. Execute sequentially.

Obtain required programs

scope: WEB

Install VirtualBox

scope: host OS (assumes Windows 10)

View js query param replacer
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 / .bash_aliases
Last active Sep 6, 2015
Bash Alias Shortcut Commands
View .bash_aliases
#
# Git
#
alias gi='git init'
alias gcl='git clone'
alias gf='git fetch'
alias gp='git push'
View Default (OSX).sublime-keymap
[
{ "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 / .gitignore
Last active Aug 29, 2015
Rails App Default Modifications
View .gitignore
# 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 / Gemfile
Last active Aug 29, 2015
Syntax Highlighting with AsciiDoctor & CodeRay
View Gemfile
gem 'asciidoctor'
gem 'coderay', '~> 1.1.0'