Skip to content

Instantly share code, notes, and snippets.

Loading status...

Vlad Tsepelev yetithefoot

Loading status...
View GitHub Profile
yetithefoot / stuns
Last active Aug 9, 2020 — forked from zziuni/stuns
STUN+TURN servers list
View stuns
yetithefoot / chrome-enable-memory
Last active Jun 21, 2020
Runs Google Chrome with memory objects
View chrome-enable-memory
To enable window.gc() on Chrome browser console you just need to start Chrome like this:
> /Applications/Google\\ Chrome --js-flags="--expose-gc" --enable-memory-info
Those flags enable the following console API, very usefull to debug memory leaks:
> console.memory // print memory information
> window.gc() // force garbage collection
yetithefoot / chrome-enable-logging
Last active Jun 21, 2020
Runs Google Chrome with logging
View chrome-enable-logging
# enable Chrome logging
/Applications/Google\\ Chrome --enable-logging=stderr --v=1
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 /
Created Mar 25, 2019 — forked from npearce/
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
yetithefoot / im-tiff-to-png
Last active Apr 27, 2018
convert tiff to png with imagemagick
View im-tiff-to-png
# memory and map uses to limit memory on slall instances
convert -limit memory 32 -limit map 64 input.tif -units PixelsPerInch -density 72 -quality 80 -resize 1024 output.jpg
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 / 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 / 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
You can’t perform that action at this time.