Skip to content

Instantly share code, notes, and snippets.

Jarvis Stubblefield BallisticPain

View GitHub Profile
@BallisticPain
BallisticPain / HotelsController.php
Last active Feb 5, 2019
Angular 2+ Webpack, AoT, Symfony, Twig, PHP Integration - Single Page Application within Monolith
View HotelsController.php
<?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 Jun 29, 2012
CURRENT_IP Environment Variable
View CURRENT_IP.md

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}'`
View bash.md

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 Jun 5, 2012 — forked from epochblue/hack.sh
OS X Hidden Prefs Installer
View hack.sh
#!/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
#
View REGIONAL_SETTINGS.MD

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.