Skip to content

Instantly share code, notes, and snippets.

View BallisticPain's full-sized avatar
🏠
Working from home

Jarvis J. Stubblefield BallisticPain

🏠
Working from home
View GitHub Profile
@BallisticPain
BallisticPain / HotelsController.php
Last active February 5, 2019 16:46
Angular 2+ Webpack, AoT, Symfony, Twig, PHP Integration - Single Page Application within Monolith
<?php
namespace AppBundle\Controller;
// use statements
class HotelsController extends FOSRestController
{
/**
* @Route("/hotels/search", name="airnav_hotels_search", methods={"GET"}, options={"expose"=true})
@BallisticPain
BallisticPain / CURRENT_IP.md
Created June 29, 2012 23:49
CURRENT_IP Environment Variable

Debian method

export CURRENT_IP=`/sbin/ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`

Archlinux method

export CURRENT_IP=/sbin/ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d' ' -f10 | awk '{ print $1}'

@BallisticPain
BallisticPain / bash.md
Created June 7, 2012 12:47 — forked from JoshuaEstes/000-Cheat-Sheets.md
Various cheat sheets

Moving the cursor

ctrl + a                 Goto BEGINNING of command line
ctrl + e                 Goto END of command line
ctrl + b                 move back one character
ctrl + f                 move forward one character
alt + f                  move cursor FORWARD one word
alt + b                  move cursor BACK one word
@BallisticPain
BallisticPain / hack.sh
Created June 5, 2012 18:31 — forked from epochblue/hack.sh
OS X Hidden Prefs Installer
#!/usr/bin/env sh
##
# This is script with useful tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2876759/hack.sh | sh
#
@BallisticPain
BallisticPain / REGIONAL_SETTINGS.MD
Created February 22, 2012 03:50
Regional Settings

Regional Settings

Windows 7

  1. Start > Control Panel
  2. Region and Language
  3. On the Format tab change the Format: drop down to English (United States)
  4. On the Location tab change the Current location: drop down to United States