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
apply plugin: 'com.android.library' | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.2.3' | |
} | |
} |
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 python3 | |
# | |
# Copyright ByteApps 2019 | |
# Author: Salvador Guerrero ([email protected]) | |
# | |
# Tested by encoding and decoding the input with the following example: | |
# $ echo 5f2613791b36f667fdb8e95608b55e3df4c5f9eb | \ | |
# ./base58check.py -encode | \ | |
# ./base58check.py -decode | |
# will output: |
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
// I created this script as a playground when learning node.js | |
// The Majority of examples are grabbed from https://nodejs.dev/ | |
/** | |
* Make this server reacheable by the world. | |
* Install ngrok and type `ngrok PORT` and the PORT you want is exposed to the | |
* internet. You will get a ngrok.io domain, but with a paid subscription you | |
* can get a custom URL as well as more security options. | |
* | |
* Another service you can use is https://github.com/localtunnel/localtunnel |
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
const http = require('http'); | |
const fs = require('fs') | |
let port = 3000 | |
http.createServer((req, response) => { | |
/** | |
* `/` loads index.html | |
*/ | |
if (req.url == '/' && req.method.toLowerCase() == 'get') { |
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
// Author: Salvador Guerrero | |
const http = require('http'); | |
const fs = require('fs') | |
// Third-party modules | |
const ftp = require("basic-ftp") | |
var {Base64Encode} = require('base64-stream') | |
let port = 3000 |
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
// Author: Salvador Guerrero | |
'use strict' | |
// https://nodejs.org/api/zlib.html | |
const zlib = require('zlib') | |
const kGzip = 'gzip' | |
const kDeflate = 'deflate' | |
const kBr = 'br' |
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
// Author: Salvador Guerrero | |
'use strict' | |
// https://nodejs.org/api/zlib.html | |
const zlib = require('zlib') | |
const kGzip = 'gzip' | |
const kDeflate = 'deflate' | |
const kBr = 'br' |
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
// Author: Salvador Guerrero | |
'use strict' | |
const fs = require('fs') | |
// Project modules | |
const { CreateServer } = require('./server') | |
const SecurityUtils = require('./security-utils') |
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
// Author: Salvador Guerrero | |
'use strict' | |
const fs = require('fs') | |
const crypto = require('crypto') | |
// Project modules | |
const { CreateServer } = require('./server') | |
const SecurityUtils = require('./security-utils') |
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
// Author: Salvador Guerrero | |
'use strict' | |
const fs = require('fs') | |
const crypto = require('crypto') | |
// Third-Party Modules | |
const {MongoClient, ObjectId} = require('mongodb') | |
const jwt = require('jsonwebtoken') |