Skip to content

Instantly share code, notes, and snippets.

Zeal Murapa GoGross

Block or report user

Report or block GoGross

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
@GoGross
GoGross / Parse._linkWith.js
Last active Sep 30, 2019
Parse Server Signup
View Parse._linkWith.js
const authData = {
"id": profile.getId(),
"id_token": id_token
}
const options = {
"authData": authData
}
const user = new Parse.User();
user._linkWith('google', options).then(function(user) {
console.log('Successful user._linkWith(). returned user=' + JSON.stringify(user))
@GoGross
GoGross / mongodb-s3-backup.sh
Last active Aug 9, 2019 — forked from eladnava/mongodb-s3-backup.sh
Automatically backup a MongoDB database to S3 using mongodump, tar, and awscli (Ubuntu 14.04 LTS)
View mongodb-s3-backup.sh
#!/bin/sh
# Make sure to:
# 1) Name this file `backup.sh` and place it in /home/ubuntu
# 2) Run sudo apt-get install awscli to install the AWSCLI
# 3) Run aws configure (enter s3-authorized IAM user and specify region)
# 4) Fill in DB host + name
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket)
# 6) Run chmod +x backup.sh
# 7) Test it out via ./backup.sh
@GoGross
GoGross / Free non-commercial email provider primary domains
Last active Aug 8, 2019
Verymail list of domains for "free or public" email providers who we consider non-commercial or "not for company" email domains. Most domains belong to mail.com and ones not included here can be queried using our verymail package
View Free non-commercial email provider primary domains
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@GoGross
GoGross / 1.mongodb-aws-setup-guide.md
Created Dec 25, 2018 — forked from calvinh8/1.mongodb-aws-setup-guide.md
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled
View 1.mongodb-aws-setup-guide.md
@GoGross
GoGross / falsey.js
Created Oct 24, 2018
javascript | node.js ultimate FALSEY validator
View falsey.js
function falsey( val ) {
return !(
val === 'undefined' ||
val === undefined ||
val === false ||
val === "false" ||
val === null ||
val === 'null' ||
val === 'NaN' ||
val === NaN ||
@GoGross
GoGross / parse-server-cloud-http.js
Created Aug 4, 2018
parse server complete cloud http single thread
View parse-server-cloud-http.js
let now = new Date ();
let ISODate = new Date ( now.toISOString () );
let TimeStamp = ISODate.getTime ();
let api_access_key = "api_access_key";
let api_secret_key = "api_secret_key";
let url = "https://test-emoney-services.w-ha.com/api/";
let body = {
"subscriber" : {
"lastname" : "Martin",
"firstname" : "Philippe",
@GoGross
GoGross / nodejs-request.js
Last active Aug 4, 2018
HMAC-SHA256 signature crypto
View nodejs-request.js
let now = new Date ();
let ISODate = new Date ( now.toISOString () );
let TimeStamp = ISODate.getTime ();
let api_access_key = "key1";
let api_secret_key = "key2";
let url = "https://test-emoney-services.w-ha.com/api/";
let body = {
"subscriber" : {
"lastname" : "Martin",
"firstname" : "Philippe",
@GoGross
GoGross / Delete-Clear-all-cookies.js
Created Jul 16, 2018
Delete, Clear all cookies including variants of www prefixed domains
View Delete-Clear-all-cookies.js
(function () {
var cookies = document.cookie.split("; ");
for (var c = 0; c < cookies.length; c++) {
var d = window.location.hostname.split(".");
while (d.length > 0) {
var cookieBase = encodeURIComponent(cookies[c].split(";")[0].split("=")[0]) + '=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain=' + d.join('.') + ' ;path=';
var p = location.pathname.split('/');
document.cookie = cookieBase + '/';
while (p.length > 0) {
document.cookie = cookieBase + p.join('/');
@GoGross
GoGross / Country Currency Codes JSON
Last active Nov 1, 2019
currency symol, name, plural, and decimal digits for all major and minor currencies
View Country Currency Codes JSON
[
{
"USD" : {
"symbol" : "$",
"name" : "US Dollar",
"symbol_native" : "$",
"decimal_digits" : 2,
"rounding" : 0,
"code" : "USD",
"name_plural" : "US dollars"
View UFW Commong.sh
# common
ufw allow ssh
ufw allow ftp
ufw allow 22
ufw allow from 15.15.15.0/24 to any port 22
ufw allow from 15.15.15.0/24 to any port 873
# ssl and http
ufw allow http
ufw allow https
You can’t perform that action at this time.