Skip to content

Instantly share code, notes, and snippets.

View nayed's full-sized avatar

Nayed Saïd Ali nayed

View GitHub Profile
@nayed
nayed / npm init
Created January 30, 2019 13:54
npm init new project
git init
npx license mit > LICENSE
npx gitignore node
npx covgen YOUR_EMAIL_ADDRESS
npm init -y

Random update a column with a list of value:

UPDATE TABLE t
    SET column = elt(floor(rand()*3) + 1, 'value1', 'value2', 'value3');

Update join:

UPDATE TABLEA a 
 JOIN TABLEB b ON a.join_colA = b.join_colB 
@nayed
nayed / git config
Created May 9, 2016 08:20
git config
git config --global color.ui true
git config --global user.name "Nayed Saïd Ali"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat ~/.ssh/id_rsa.pub
https://github.com/settings/ssh
ssh -T [email protected]
@nayed
nayed / GIF-Screencast-OSX.md
Created May 4, 2016 15:22 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@nayed
nayed / Preferences.sublime-settings
Last active January 14, 2017 18:04
My sublime text settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/ayu/ayu-dark.tmTheme",
"font_options":
[
"gray_antialias"
],
"ignored_packages":
[