Skip to content

Instantly share code, notes, and snippets.

View entimm's full-sized avatar
🤒
Out sick

entimm entimm

🤒
Out sick
View GitHub Profile
@entimm
entimm / git-branches-by-commit-date.sh
Created January 12, 2022 06:49 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@entimm
entimm / getDirContents.php
Created March 9, 2019 05:20
getDirContents
<?php
function getDirContents($dir, &$results = array()){
$files = scandir($dir);
foreach($files as $key => $value){
$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
if(!is_dir($path)) {
$results[] = $path;
} else if($value != "." && $value != "..") {
getDirContents($path, $results);
@entimm
entimm / LICENCE SUBLIME TEXT
Created March 3, 2019 04:04
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@entimm
entimm / sublimetext.txt
Created September 26, 2018 08:49
Sublime Text Licence Key Build 3176
----- BEGIN LICENSE -----
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4
969624E7 DC9CD4D5 717FB40C 1B9738CF
20B3C4F1 E917B5B3 87C38D9C ACCE7DD8
@echo off
SET st3Path=D:\Program Files\Sublime Text 3\sublime_text.exe
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text"
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
@entimm
entimm / temp.md
Last active August 15, 2018 03:50
Welcome file

clientId: 1088536419 clientSecret : NmVkMmQ0ZDk4MWVlZmIzMDgzM2JkMz

array(13) { [0]=> string(6) "中国" [1]=> string(6) "广东" [2]=>

Synchronize settings, keymaps, user styles, init script, snippets and installed packages across Atom instances.