Skip to content

Instantly share code, notes, and snippets.

View rusllonrails's full-sized avatar
💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️

rusllonrails rusllonrails

💭
👨‍💻 💻 🖱️ 🍻 🏋️‍♂️
  • Tbilisi, Georgia
View GitHub Profile
@rusllonrails
rusllonrails / git bisest
Created October 30, 2015 15:17
git bisest
http://webchick.net/node/99
@rusllonrails
rusllonrails / NGINX SSL CERTS INSTALL GUIDE
Created October 29, 2015 15:05
NGINX SSL CERTS INSTALL GUIDE
https://support.comodo.com/index.php?/Default/Knowledgebase/Article/View/789/0/certificate-installation-nginx
@rusllonrails
rusllonrails / Pingdom analogs
Last active November 1, 2015 12:32
Pingdom analogs
https://www.site24x7.com/site24x7-pricing.html
https://my.pingdom.com/login
https://www.statuscake.com/
@rusllonrails
rusllonrails / Need to review
Created October 13, 2015 13:27
Need to review
https://webflow.com/
https://medium.com/@slackhq/11-useful-tips-for-getting-the-most-of-slack-5dfb3d1af77?mc_cid=c95a03a2f4&mc_eid=27bc5f3b18
@rusllonrails
rusllonrails / Ubuntu check directory or file size
Created October 6, 2015 10:37
Ubuntu check directory or file size
du -hs /path/to/directory
@rusllonrails
rusllonrails / T shirt estimates
Created October 5, 2015 16:38
T shirt estimates
XS - < 30 minutes
S - < 1 hour
M - < 3 hours
L - < 1 day
XL - < less than 2 days
XXL - more than 2 days
@rusllonrails
rusllonrails / Ubuntu Grep with lines before and after matched value
Last active August 29, 2015 14:27
Ubuntu Grep with lines before and after matched value
A - after
B - before
C - same number of lines before and after
git blame Gemfile | grep -B10 -A10 Vasili
git blame Gemfile | grep -C10 Vasili
@rusllonrails
rusllonrails / pgScript samples
Last active August 29, 2015 14:27
pgScript sample
http://pgscript.projects.pgfoundry.org/SCRIPT.html
http://www.joeconway.com/presentations/function_basics.pdf
https://github.com/EvilPeanut/DGui/blob/master/pango/PgScript.d
http://www.postgresonline.com/journal/archives/58-Quick-Guide-to-writing-PLPGSQL-Functions-Part-1.html
# CHECK conditions
CREATE OR REPLACE FUNCTION test1(in_array jsonb)
RETURNS text[] AS $$
DECLARE
@rusllonrails
rusllonrails / POSTGRESQL | JSONB LOOP ARRAYS EXAMPLE 2
Created August 9, 2015 14:28
POSTGRESQL | JSONB LOOP ARRAYS EXAMPLE 2
CREATE OR REPLACE FUNCTION test1(in_array jsonb)
RETURNS text[] AS $$
DECLARE
js jsonb := in_array;
i jsonb;
result_ids TEXT[];
uuid text;
state text;
version text;
@rusllonrails
rusllonrails / POSTGRESQL | LOOP JSONB ARRAY
Created August 9, 2015 14:00
POSTGRESQL | LOOP JSONB ARRAY
CREATE OR REPLACE FUNCTION test1(in_array jsonb)
RETURNS jsonb AS $$
DECLARE
js jsonb := in_array;
i jsonb;
BEGIN
raise notice ' ';
raise notice 'js: %', js;
raise notice ' ';