This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When performing a regex find-and-replace in Sublime Text 2, the following modifiers may be used to change the case of a backreference during the replacement step: | |
\l : first character to lower case | |
\u : first character to upper case | |
\L : start of lower case conversion | |
\U : start of upper case conversion | |
\E : end lower/upper case conversion | |
(Conversion only applies to alpha-characters) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["f4"], "command": "import_namespace" }, | |
{ "keys": ["f5"], "command": "find_use" }, | |
{ "keys": ["f6"], "command": "expand_fqcn" }, | |
{ "keys": ["f7"], "command": "insert_php_constructor_property" }, | |
{ "keys": ["shift+f12"], "command": "goto_definition_scope" }, | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
CHOICE /C:NXCO /N /T:5 /D:C /M:"Output [N]ested, E[x]panded, [C]ompact or C[o]mpressed?" | |
SET ZONE=%ERRORLEVEL% | |
CLS | |
IF %ZONE% EQU 1 GOTO :Nested | |
IF %ZONE% EQU 2 GOTO :Expanded | |
IF %ZONE% EQU 3 GOTO :Compact | |
IF %ZONE% EQU 4 GOTO :Compressed | |
:Nested |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ECHO OFF | |
CLS | |
SET /P D=Choose the folder (ex.: g:\my folder): | |
ECHO. | |
DIR "%D%" /A:D-H-S /B /O:N > %USERPROFILE%\Desktop\Folders.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/ericboehs/dotfiles/tree/master/shell/aliases | |
alias yolo='git commit -am "DEAL WITH IT" && git push -f origin master' | |
alias sedit="gksudo gedit" | |
alias clean-boot="apt-get remove `dpkg --list 'linux-image*' |grep ^ii | awk '{print $2}'\ | grep -v \`uname -r\``" |
Better log
Usage: git lg
(see log) or git lg -p
(see changed lines)
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Undo last commit (not pushed)
Usage: git undo
git config --global alias.undo "reset --soft HEAD~1"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class Util | |
{ | |
/** | |
* Validates the given Link is broken or not | |
* | |
* Prerequisite | |
* - cUrl | |
* | |
* Conditions: | |
* - Valid if HTTP Status in (200,301, 302, 303, 307) |
- Awesome - A curated list of awesome lists.
- Tech interview cheatsheet - Tech interview cheatsheet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bitmask | |
{ | |
private $bitmask; | |
public function __construct($bitmask = 0) | |
{ | |
$this->bitmask = $bitmask; | |
} | |
public function set($bit, $value) |
OlderNewer