Skip to content

Instantly share code, notes, and snippets.

🤔
Should I?

Henrique Deodato h3nr1ke

Block or report user

Report or block h3nr1ke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@h3nr1ke
h3nr1ke / chmod.table.md
Last active Mar 28, 2019
teste.md table
View chmod.table.md
Value Binary Alternative
7 111 [+=]rwx
6 110 [+=]rw
5 101 [+=]rx
4 100 [+=]r
3 011 [+=]wx
2 010 [+=]w
1 001 [+=]x
0 000 [-=]rwx
@h3nr1ke
h3nr1ke / zoho.txt
Created Mar 13, 2019
DNS CONFIG ZOHO MAIL
View zoho.txt
----- MX -----
item Priority
mx3.zoho.com Copy 50
mx2.zoho.com Copy 20
mx.zoho.com Copy 10
----- SPF - TXT -----
@ v=spf1 include:zoho.com ~all
----- DKIM - TXT -----
@h3nr1ke
h3nr1ke / sublime_settings.js
Created Feb 13, 2019
SUBLIME TEXT CONFIGURATION
View sublime_settings.js
{
"ignored_packages":
[
"Vintage"
],
// Columns in which to display vertical rulers
"rulers": [
100, 130
],
"tab_size": 4,
@h3nr1ke
h3nr1ke / new_server.sh
Last active Mar 11, 2019
Command to setup a new NGINX PHP server
View new_server.sh
#== Criacao de servidor NGINX + PHP ==
apt-get update
apt-get install nginx
apt-get install unzip
sudo ufw allow 'Nginx HTTP'
sudo nano /etc/nginx/nginx.conf
View arrow_function_001.js
/**
*
*/
// Function in old style
function _myCoolFunction(param1, param2){
return param1 + param2;
}
// we can also declare it as a variable
@h3nr1ke
h3nr1ke / const_004.js
Created Dec 24, 2018
const example with object.freeze
View const_004.js
/**
*/
const OBJ = {
prop1 : 1,
prop2 : 2,
propA : "A",
propB : "B",
};
OBJ.prop1 = 3;
@h3nr1ke
h3nr1ke / const_003.js
Created Dec 20, 2018
const example ECMA 6
View const_003.js
/**
* Constant as an array
*/
const OBJ = ["foo","bar"];
console.log(OBJ);
// chaging the value of a constant "variable" =)
// no errors displayed
OBJ[0] = "another value";
OBJ[1] = "example text";
@h3nr1ke
h3nr1ke / const_002.js
Last active Dec 20, 2018
const example ECMA 6
View const_002.js
/**
*
*/
const OBJ = {
prop1 : "foo",
prop2 : "bar",
prop3 : 100
}
console.log(OBJ);
@h3nr1ke
h3nr1ke / const_001.js
Created Dec 18, 2018
const example ECMA6
View const_001.js
/**
*
*/
const DELAY = 1000; // a constant MUST be initialized
setTimeout(function(){
console.log("After 1 second…");
}, DELAY);
DELAY = 2000; // error
//END
@h3nr1ke
h3nr1ke / let_001.js
Created Dec 18, 2018
let example ECMA6
View let_001.js
/**
*
*/
var _myVar = "Banana";
var _myFunction = function(){
_myVar = "Apple"
let _mySecondVar = "Avocado"
console.log("_myVar -> " + _myVar); 
console.log("_mySecondVar -> " + _mySecondVar); 
};
You can’t perform that action at this time.