Skip to content

Instantly share code, notes, and snippets.

:octocat:
Loading status...

Vlad Tsepelev yetithefoot

:octocat:
Loading status...
View GitHub Profile
View table.md
Do need DAM if... Do NOT need DAM if...
Have 1000+ assets Have less tahn 1000+ assets
Collaborate with team on your assets Work alone
Have licensed assets Have short asset lifecycle
Search assets across your library Do not develop assets
@yetithefoot
yetithefoot / install-docker.md
Created Mar 25, 2019 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
View install-docker.md
@yetithefoot
yetithefoot / bw-gradient-generator-with-height-and-lines-number.markdown
Created Apr 11, 2018
BW gradient generator (with height and lines number)
View bw-gradient-generator-with-height-and-lines-number.markdown
@yetithefoot
yetithefoot / average-github-title.sh
Created Nov 25, 2016
Shows average issue title length for repo
View average-github-title.sh
#!/bin/bash
curl "https://api.github.com/repos/d3/d3/issues?per_page=1000" | jq '.[] | .title' | awk '{ print length($0); }' | jq -s 'add/length'
@yetithefoot
yetithefoot / add.js
Last active Sep 19, 2016
Junior Front-end Developer | Add function
View add.js
function add(){
// write your one-line implementation here
}
// should prints 7
console.log(add(2,5));
// should prints 7
console.log(add(2)(5));
@yetithefoot
yetithefoot / duplicate.js
Last active Sep 19, 2016
Junior Front-end Developer | Duplicate function
View duplicate.js
function duplicate(){
// write your one-line implementation here
}
// should prints [1,2,3,4,5,1,2,3,4,5]
console.log(duplicate([1,2,3,4,5]));
// should prints ['a','b','c','a','b','c']
console.log(duplicate(['a','b','c']));
@yetithefoot
yetithefoot / gist:74974c3840c195ade897
Created Dec 10, 2015 — forked from jcsrb/gist:1081548
get avatar from google profiles, facebook, gravatar, twitter, tumblr
View gist:74974c3840c195ade897
function get_avatar_from_service(service, userid, size) {
// this return the url that redirects to the according user image/avatar/profile picture
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px )
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word )
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px )
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word )
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px )
// everything else will go to the fallback
// google and gravatar scale the avatar to any site, others will guided to the next best version
@yetithefoot
yetithefoot / install-comodo-ssl-cert-for-nginx.rst
Created Dec 1, 2015 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@yetithefoot
yetithefoot / boot.js
Created Nov 12, 2015 — forked from jdxcode/boot.js
zero-downtime node.js app runner
View boot.js
// This script will boot app.js with the number of workers
// specified in WORKER_COUNT.
//
// The master will respond to SIGHUP, which will trigger
// restarting all the workers and reloading the app.
var cluster = require('cluster');
var workerCount = process.env.WORKER_COUNT || 2;
// Defines what each worker needs to run
@yetithefoot
yetithefoot / is-jpg-progressive
Created Sep 22, 2015
Identify if jpg is progressive
View is-jpg-progressive
```identify -verbose file.jpg | grep Interlace```
///If you get back Interlace: JPEG then it’s progressive. It you get back Interlace: None then it’s a baseline (i.e. non-progressive JPEG).
You can’t perform that action at this time.