Skip to content

Instantly share code, notes, and snippets.

David dcyou

Block or report user

Report or block dcyou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View meteor.sh
#!/bin/bash
sudo apt-get update
sudo apt-get install python-software-properties
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee -a /etc/apt/sources.list.d/10gen.list
sudo apt-get update
sudo apt-get install -y git mongodb-10gen curl
cd /usr/local
wget http://nodejs.org/dist/v0.8.23/node-v0.8.23-linux-x86.tar.gz
sudo tar -xvzf node-v0.8.23-linux-x86.tar.gz --strip=1
@dcyou
dcyou / gist:fad3c4c4e21c3561e985
Created Dec 2, 2015 — forked from scr1p7ed/gist:ee0d96c3795e59244063
Node.JS ( & pm2 ) Process Memory Limit
View gist:fad3c4c4e21c3561e985
# Plain Ol' Node
node --max-old-space-size=1024 app.js # increase to 1gb
node --max-old-space-size=2048 app.js # increase to 2gb
node --max-old-space-size=3072 app.js # increase to 3gb
node --max-old-space-size=4096 app.js # increase to 4gb
node --max-old-space-size=5120 app.js # increase to 5gb
node --max-old-space-size=6144 app.js # increase to 6gb
# For pm2
pm2 start app.js --node-args="--max-old-space-size=1024" # increase to 1gb
View mongo-dump-csv.sh
OIFS=$IFS;
IFS=",";
# fill in your details here
dbname=DBNAME
user=USERNAME
pass=PASSWORD
host=HOSTNAME:PORT
# first get all collections in the database
@dcyou
dcyou / git-setup.sh
Created Apr 29, 2016 — forked from patik/git-setup.sh
Git and Node with Zscaler proxy
View git-setup.sh
#!/bin/sh
# Git proxy settings
echo "Configuring Git..."
git config --global http.proxy http://gateway.zscaler.net:80/
git config --system http.proxy http://gateway.zscaler.net:80/
git config --global http.sslVerify false
git config --system http.sslVerify false
git config --global --unset http.sslcainfo
git config --system --unset http.sslcainfo
@dcyou
dcyou / gist:06a4f6e0a770887fbd01fa8276b945c0
Created Mar 23, 2017 — forked from dmitshur/gist:6927554
How to `go get` private repos using SSH key auth instead of password auth.
View gist:06a4f6e0a770887fbd01fa8276b945c0
$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
	insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
View gist:6c1ee3d704e50e1f424aa308bdf583c3
getSelectedRecord: function() {
var grid = this.getGrid(),
records = grid.getSelectionModel().getSelection(),
record;
if(records.length) {
// get first record from selection
record = records[0];
// find selection record in store
@dcyou
dcyou / npm-using-https-for-git.sh
Created Oct 11, 2017 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use https:// instead of git://
View npm-using-https-for-git.sh
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
View install-gcc-4.9.3.sh
#!/bin/bash
# this script installs GCC 4.9.3
# to use it navigate to your home directory and type:
# sh install-gcc-4.9.3.sh
# download and install gcc 4.9.3
wget https://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.gz
tar xzf gcc-4.9.3.tar.gz
cd gcc-4.9.3
@dcyou
dcyou / Pi.md
Last active Feb 5, 2019 — forked from jgamblin/Pi.txt
PoisonTap Install Commands
View Pi.md

Server:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
View b-a-ba.md

Veille technologique

Quelle est la version actuelle de NodeJS ?

https://nodejs.org/en/about/releases/

Quelle est la version actuelle de PHP ?

You can’t perform that action at this time.