This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Ansi 4 Color" : { | |
"Red Component" : 0.37254902720451355, | |
"Color Space" : "sRGB", | |
"Blue Component" : 0.61568629741668701, | |
"Alpha Component" : 1, | |
"Green Component" : 0.5058823823928833 | |
}, | |
"Tags" : [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name subdomain.example.com; | |
location / { | |
proxy_pass http://localhost:1600; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header Host $host; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# adds a user non-interactively | |
adduser --disabled-password --gecos "" $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Breaks given uri into 'id' and 'slug' components | |
* Just provide it uri like /id1/slug1/id2/slug2... | |
* | |
* @param {string} uri to break into components | |
* @return {object} returns an object consisting of 'id' and 'slug' arrays | |
*/ | |
function getURIComponents(uri) { | |
var pattern = /\/(?:([a-z][a-z0-9_-]+)|(?:(\d+)\/([a-z][a-z0-9_-]+)))/ig; | |
var components = { separators: [], groups: [], count: 0 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Unity3D C# test for internet connection | |
IEnumerator CheckConnection() | |
{ | |
const float timeout = 10f; | |
float startTime = Time.timeSinceLevelLoad; | |
var ping = new Ping("8.8.8.8"); | |
while (true) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg-query -l 'lib*-perl' | awk '{{print $2}}' | tr "\n" " " > perl_packages.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |