-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
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
import httplib2 | |
import os | |
import sys | |
import xml.etree.ElementTree as ET | |
from apiclient.discovery import build | |
from apiclient.errors import HttpError | |
from oauth2client.client import flow_from_clientsecrets | |
from oauth2client.file import Storage | |
from oauth2client.tools import argparser, run_flow |
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
from sys import exit | |
def gold_room(): | |
print "This room is full of gold. How much do you take?" | |
next = raw_input("> ") | |
if "0" in next or "1" in next: | |
how_much = int(next) | |
else: | |
dead("Man, learn to type a number.") |
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
from sys import exit | |
from random import randint | |
class Scene(object): | |
def enter(self): | |
print "This scene is not yet configured. Subclass it and implement enter()." | |
exit(1) | |
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/python3 | |
import webbrowser, sys | |
if len(sys.argv) < 3: | |
print("Usage: openinbrowser.py ./urls.txt 20") | |
quit() | |
f = open(sys.argv[1]) | |
tabs = int(sys.argv[2]) | |
counter = 1 |
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 express = require("express"); | |
const bodyParser = require("body-parser"); | |
const mysql = require("mysql"); //as we use a MySQL database | |
const nodemailer = require("nodemailer"); //to send mails | |
var cors = require("cors"); | |
const Server = "aqueous-refuge-02128.herokuapp.com"; | |
const app = express(); | |
app.use(bodyParser.urlencoded({ extended: true })); |
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/sh | |
echo "Script to Download, Build and Install ns3 by nsnam.org" | |
echo "Downloading script" | |
wget https://www.nsnam.org/releases/ns-allinone-3.37.tar.bz2 | |
echo "Extracting the archive" | |
tar -xvf ns-allinone-3.37.tar.bz2 | |
echo "Building and testing ns3" | |
cd ns-allinone-3.37 | |
cd ns-3.37 |
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
app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES); | |
app.newProject(); | |
app.beginUndoGroup("Create Comp"); | |
///////////////////////////// | |
// settings | |
var width = 1920; | |
var height = 1080; | |
var duration = 10; |
- go to this url - click
- click "Generate New Token (Classic)"
Don't click beta one
-
It will ask you to enter your github password, enter that
-
Then this screen will come