Skip to content

Instantly share code, notes, and snippets.

Jarvis Stubblefield BallisticPain

View GitHub Profile
BallisticPain / HotelsController.php
Last active Feb 5, 2019
Angular 2+ Webpack, AoT, Symfony, Twig, PHP Integration - Single Page Application within Monolith
View HotelsController.php
namespace AppBundle\Controller;
// use statements
class HotelsController extends FOSRestController
* @Route("/hotels/search", name="airnav_hotels_search", methods={"GET"}, options={"expose"=true})
BallisticPain /
Created Jun 29, 2012
CURRENT_IP Environment Variable

Debian method

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

Archlinux method

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

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 /
Created Jun 5, 2012 — forked from epochblue/
OS X Hidden Prefs Installer
#!/usr/bin/env sh
# This is script with useful tips taken from:
# install it:
# curl -sL | sh

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
You can’t perform that action at this time.