Skip to content

Instantly share code, notes, and snippets.

View yetithefoot's full-sized avatar
:octocat:
Loading status...

Vlad Tsepelev yetithefoot

:octocat:
Loading status...
View GitHub Profile
@yetithefoot
yetithefoot / chrome-enable-logging
Last active June 21, 2020 12:26
Runs Google Chrome with logging
# enable Chrome logging
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-logging=stderr --v=1
@yetithefoot
yetithefoot / chrome-enable-memory
Last active December 27, 2020 14:28
Runs Google Chrome with memory objects
To enable window.gc() on Chrome browser console you just need to start Chrome like this:
> /Applications/Google\ Chrome.app/Contents/MacOS/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
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 / ip-geolocate
Created December 19, 2013 00:08
IP Geolocation shell script
# Uses curl for getting location object from telize.com
# Next it uses jq (http://stedolan.github.io/jq/) json parser to extract city and country name
# get current location name based on request IP
curl -s http://www.telize.com/geoip | jq '.city +", "+ .country'
# get location name based on parameter value from request
curl -s http://www.telize.com/geoip/8.8.8.8 | jq '.city +", "+ .country'
@yetithefoot
yetithefoot / stuns
Last active April 2, 2024 10:49 — forked from zziuni/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@yetithefoot
yetithefoot / zsh.md
Last active April 6, 2024 12:00 — forked from tsabat/zsh.md