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
using Npgsql; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Data; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Massive |
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 admin = require("firebase-admin"); | |
const Promise = require("bluebird"); | |
const cert = require("./cert.json"); | |
const Emitter = require("events").EventEmitter; | |
const assert = require('assert'); | |
//using this for convenience | |
const shortid = require("shortid"); | |
shortid.characters('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_@'); | |
admin.initializeApp({ |
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 | |
############### USAGE ############### | |
# | |
# 1. Create a new workspace on Cloud9 using the "Blank" template | |
# | |
# 2. Run this command in the console: | |
# bash <(curl -fsSL https://gist.githubusercontent.com/robconery/aefb86f25ec794a2268cf38d44238352/raw/898f8997220df38de193d48c07c2fb078aede10a/install_dncore.sh) | |
echo Updating Packages... |
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
CREATE OR REPLACE FUNCTION register(login varchar(50), email varchar(50), password varchar(50), ip inet) | |
returns TABLE ( | |
new_id bigint, | |
message varchar(255), | |
email varchar(255), | |
email_validation_token varchar(36) | |
) | |
AS | |
$$ | |
DECLARE |
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
#!/bin/bash | |
USER=deployer | |
PASS=[pick something] | |
APPNAME=[your app name] | |
RG=[your resource group] | |
SP=[your service plan] | |
#you can see a list of runtimes using | |
#az webapp list-runtimes --linux |
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
#!/bin/bash | |
USER=admin_$RANDOM #set this to whatever you like but it's not something that should be easy | |
PASS=$(uuidgen) #Again - whatever you like but keep it safe! Better to make it random | |
SERVERNAME=[YOUR SERVER NAME] #this has to be unique across azure | |
#resource group | |
RG=[YOUR RESOURCE GROUP] #you can create these if you need to by uncommenting the lines below |
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
#!/bin/bash | |
#These are the settings for deployment. The only thing you need to be sure you change is | |
#the resource group, as that will be the name you will use to destroy things later | |
USER=admin_$RANDOM #set this to whatever you like but it's not something that should be easy | |
PASS=$(uuidgen) #Again - whatever you like but keep it safe! Better to make it random | |
LOCATION=westus | |
SERVERNAME=northwind-$RANDOM #this has to be unique across azure | |
#resource group |
OlderNewer