Skip to content

Instantly share code, notes, and snippets.

taskkill /f /im ngrok.exe
const base64url = require('base64url');
const crypto = require('crypto');
const signatureFunction = crypto.createSign('RSA-SHA256');
const verifyFunction = crypto.createVerify('RSA-SHA256');
const fs = require('fs');
/**
* ISSUANCE
*/
@Rinlama
Rinlama / gist:2722926068867b8c2838428a83fe596f
Created July 2, 2022 18:53
Google Apps Script Integration With Discord
function Submit() {
// add your discord Webhook Endpoint
const webhooks = "";
const form = FormApp.getActiveForm();
const allResponses = form.getResponses();
const latestResponse = allResponses[allResponses.length - 1];
const response = latestResponse.getItemResponses();
const email = latestResponse.getRespondentEmail();
let content = "";
Address|City|State|ZipCode|Date|Price|RehabCost|TotalCost|PriceSold|NetIncome
314 -ARBOUR|Newark|DE|19713|08/12/14|"166,000.00"|"17,092.07"|"183,092.07"|"250,000.00" | $66,907.93 |
119 S.-KINGS|Bear|DE|19701|09/10/14|"157,000.00"|"208,543.20"|"365,543.20"|"228,377.00" | -$137,166.20 |
400-BRENNEN|Newark|DE|19713|10/14/14|"123,000.00"|"142,370.73"|"265,370.73"|"183,300.00" | -$82,070.73 |
114 SONAN|Newark|DE|19713|10/14/14|"157,000.00"|"63,127.35"|"220,127.35"|"209,999.00" | -$10,128.35 |
206 BEAVER|Bear|DE|19701|10/14/14|"72,000.00"|"54,432.30"|"126,432.30"|"111,300.00" | -$15,132.30 |
37 SPRING LAKE|Newark|DE|19711|11/12/14|"122,401.00"|0.00|"122,401.00"|"128,401.00" | $6,000.00 |
28-COURT|Newark|DE|19702|10/14/14|"79,000.00"|"7,900.00"|"86,900.00"|"86,000.00" | -$900.00 |
404 Mansion|Wilmington|DE|19804|11/12/14|"104,000.00"|"192,914.97"|"296,914.97"|"118,214.00" | -$178,700.97 |
38 Gershwin|New Castle|DE|19720|04/10/14|"104,000.00"|"173,404.37"|"277,404.37"|"168,059.00" | -$109,345.37 |
@Rinlama
Rinlama / Node https requests
Created June 27, 2021 00:07
Node https requests
const https = require("https");
const promise = new Promise((resolve, reject) => {
https
.get("https://jsonplaceholder.typicode.com/todos", (res) => {
let body = "";
res.on("data", (chunk) => {
body += chunk;
});
for(let i=0;i<value.length;i++){
let first=value[i];
for(let y=0;y<value.length;y++){
if(i!=y && first===value[y]){
return y;
}
if(i===value.length-1){
return -1;
}
}
@Rinlama
Rinlama / usandaustraliastates.json
Last active May 18, 2019 16:38
USAndAustraliaStates
{
"United States":[
{
"name": "Alabama",
"abbreviation": "AL"
},
{
"name": "Alaska",
@Rinlama
Rinlama / aus_states.json
Last active May 18, 2019 16:04
Australia States JSON
[
{
"name":"New South Wales",
"abbreviation":"NSW"
},
{
"name":"Victoria",
"abbreviation":"VIC"
},
{
@Rinlama
Rinlama / gist:822cacd286632e2aca1204e82b366b34
Created May 15, 2019 04:20
Laravel Access-Control-Allow-Origin
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
@Rinlama
Rinlama / gist:38b8a240c88ddd873181e12c1e41ce5d
Created January 30, 2019 16:13
current, previous and next array
let array = ["a", "b", "c", "d"];
let i = 0;
$("#test").on("click", () => {
var len = array.length;
var current = array[i];
var previous = array[(i + len - 1) % len];
var next = array[(i + 1) % len];
i++;
if (i === len) {
i = 0;