-
install container
-
sudo apt install fish tmux
-
sudo chsh <username>
/usr/bin/fish
-
curl -L https://get.oh-my.fish | fish
omf install bobthefish
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
/** | |
* Deep diff between two object, using lodash | |
* @param {Object} object Object compared | |
* @param {Object} base Object to compare with | |
* @return {Object} Return a new object who represent the diff | |
*/ | |
function difference(object, base) { | |
function changes(object, base) { | |
return _.transform(object, function(result, value, key) { | |
if (!_.isEqual(value, base[key])) { |
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
/* global EXIF */ | |
'use strict'; | |
// Require library: https://github.com/jseidelin/exif-js | |
// Require Jquery (If not have jquery you must handle DOM by native js code) | |
/** | |
@description this directive auto rotate image by css base on image orientation value | |
Check the example of image orientation here: | |
https://github.com/recurser/exif-orientation-examples | |
@example |
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
Debug SHA1 (root of project) | |
keytool -J-Duser.language=en -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android | |
Release SHA1 (/android/app/) | |
keytool -J-Duser.language=en -list -v -keystore mystore.keystore |
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
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
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
#!/bin/bash | |
sudo port -v install dnsmasq | |
sudo port -v load dnsmasq | |
sudo mkdir /etc/resolver | |
echo -n "nameserver 127.0.0.1" | sudo tee /etc/resolver/dev | |
echo "address=/dev/127.0.0.1" | sudo tee -a /opt/local/etc/dnsmasq.conf | |
echo "address=/test/127.0.0.1" | sudo tee -a /opt/local/etc/dnsmasq.conf | |
sudo kill -9 $(pgrep dnsmasq) | |
sleep 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
1. Somewhere on your machine clone the project. | |
``` | |
> git clone https://github.com/facebook/react-devtools.git | |
> cd react-devtools | |
``` | |
2. Switch to the v3 branch | |
``` | |
> git checkout v3 | |
``` |
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
var express = require('express'); | |
var redis = require('redis'); | |
var db = redis.createClient(); | |
var app = express(); | |
// track users online (replace UA string with user id) | |
app.use(function(req, res, next){ | |
var ua = req.headers['user-agent']; |