Skip to content

Instantly share code, notes, and snippets.

View SynCap's full-sized avatar

Constantin Losk SynCap

View GitHub Profile
@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@paceaux
paceaux / convertColorName.js
Created May 25, 2017 01:08
Convert Color Name
function convertColorName (name) {
var testEl = document.createElement('div'),
rgb;
testEl.style.backgroundColor = name;
rgb = document.body.appendChild(testEl);
rgb = window.getComputedStyle(testEl).backgroundColor;
document.body.removeChild(testEl);
return rgb;
@nodesocket
nodesocket / README.md
Last active October 7, 2023 06:30
The perfect Gulp.js

The perfect gulp.js file

Tasks

serve

Runs a connect web server, serving files from /client on port 3000.

uglify-js

@adrianlzt
adrianlzt / gist:6864843
Created October 7, 2013 09:07
Netcat testing 3306 tcp connexion
[root@centos mysql]# nc -vz localhost 3306
nc: connect to localhost port 3306 (tcp) failed: Connection refused
Connection to localhost 3306 port [tcp/mysql] succeeded!
The reason is the first connection is against ::1 (IPv6), and the second to 127.0.0.1.
This could be seen with: tcpdump -i lo -n
[root@centos mysql]# grep localhost /etc/hosts