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
.env | |
node_modules | |
.DS_Store |
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 node:alpine | |
WORKDIR /app | |
COPY server.js . | |
CMD node /app/server.js |
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 ts-node --transpile-only | |
import { createWriteStream, readFileSync, writeFileSync } from "fs"; | |
import { basename, extname } from "path"; | |
import { createHash } from "crypto"; | |
const s3Url = | |
"https://example-video-player-debugging-temporary.s3.amazonaws.com"; | |
const fetch = require("node-fetch"); | |
async function getPlaylist() { |
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
{ | |
"name": "ldif-parse", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"dependencies": { | |
"ldif": "^0.5.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
'use strict'; | |
const should = require('should'); | |
const DiC = require('../../lib/DependencyInjectionContainer'); | |
/** | |
* @class Service class test fixture. | |
*/ | |
class Foo { | |
constructor() { |
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 net = require('net'); | |
const https = require('https'); | |
const filePath = '/tmp/kanye'; | |
const server = net.createServer(async (stream) => { | |
stream.end(await getKanyeQuote() + '\n'); | |
}); | |
server.listen(filePath, () => { |
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
'use strict' | |
const fs = require('fs'); | |
const os = require('os'); | |
const file = fs.readFileSync('./dump.txt', 'utf8').split(os.EOL); | |
const people = []; | |
const groups = new Set(); | |
var current_person = false; |
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
<?php | |
/**************************** | |
* Generate a new key pair. * | |
****************************/ | |
$privateKey = openssl_pkey_new(array( | |
'private_key_bits' => 2048, // Size of Key. | |
'private_key_type' => OPENSSL_KEYTYPE_RSA, |
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 fs = require('fs'); | |
var request = require('request'); | |
request = request.defaults({jar: true}); | |
// The appid from the hosted app. | |
const appid = 'XXX'; | |
const body = { | |
email: 'someone@somewhere.com', | |
password: 'XXX', | |
} | |
const headers = { |
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 | |
echo 'Installing dependencies php and git...' | |
echo '' | |
echo '' | |
echo '' | |
pkg install -y php70 git php70-json php70-ctype php70-phar php70-iconv php70-openssl | |
echo '' | |
echo '' |
NewerOlder