Skip to content

Instantly share code, notes, and snippets.

View dkundel's full-sized avatar
🐼
Panda hacking JavaScript

Dominik Kundel dkundel

🐼
Panda hacking JavaScript
View GitHub Profile
@dkundel
dkundel / README.md
Last active August 29, 2015 13:57
CS Club Tutorial Node.JS, MongoDB and Socket.IO

Overview

We will build a small web application to learn how to use the different technologies. For that we need to install some requirements:

Installation

Node.JS

Node.JS is cross-platform available. You can easily install it for any operating system by downloading the correct version here: http://nodejs.org/

Most package manager offer a way to install Node.JS but you should go to the website to install it from there :)

MongoDB

@dkundel
dkundel / 1-app.js
Last active January 16, 2016 12:22
MSDojoDublin-Node-Tutorial-Session-1
console.log('Hello World!');
@dkundel
dkundel / twiml.xml
Created June 8, 2017 14:45
Forward SMS with TwiML Bins to two numbers
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Message to="+49111111111111">
{{From}}: {{Body}}
</Message>
<Message to="+19991234123">
{{From}}: {{Body}}
</Message>
</Response>
@dkundel
dkundel / search-modules.sh
Created August 2, 2017 11:25
Search for dangerous npm modules
find . -type d -maxdepth 4 -name node_modules -print0 | xargs -0 -L1 sh -c 'cd "$0/.." && pwd && npm ls 2>/dev/null | grep -E "babelcli|crossenv|cross-env.js|d3.js|fabric-js|ffmepg|gruntcli|http-proxy.js|jquery.js|mariadb|mongose|mssql.js|mssql-node|mysqljs|nodecaffe|nodefabric|node-fabric|nodeffmpeg|nodemailer-js|nodemailer.js|nodemssql|node-opencv|node-opensl|node-openssl|noderequest|nodesass|nodesqlite|node-sqlite|node-tkinter|opencv.js|openssl.js|proxy.js|shadowsock|smb|sqlite.js|sqliter|sqlserver|tkinter"'
@dkundel
dkundel / keybase.md
Created August 22, 2017 19:35
keybase.md

Keybase proof

I hereby claim:

  • I am dkundel on github.
  • I am dkundel (https://keybase.io/dkundel) on keybase.
  • I have a public key ASBVtUGttt-FlmMolkfj57F1etkXu76KDpS6O1twC7u1rAo

To claim this, I am signing this object:

@dkundel
dkundel / bash.bas
Created August 30, 2017 08:16 — forked from sagnew/bash.bas
$BASH 2017 Apple IIe BASIC game
10 REM Clear the screen
20 TEXT : HOME
25 REM DISPLAY WELCOME SCREEN
30 VTAB 4: HTAB 15: PRINT "$BASH RACER"
40 VTAB 13: HTAB 3: PRINT "USE LEFT AND RIGHT ARROW KEYS TO MOVE"
50 VTAB 14: HTAB 7: PRINT "ANY OTHER KEY GOES STRAIGHT"
60 VTAB 21: PRINT "PRESS ANY KEY TO PLAY"
65 VTAB 23: PRINT "SCORE 5000 POINTS TO WIN"
70 REM WAIT FOR KEYPRESS
80 GET KEY$
type Safe<T> = { [P in keyof T]: string };
function getSafeEnvironment<T extends {}>(e: T): Safe<T> {
return new Proxy(e, {
get: function(env: any, key: string): string {
const value: any = env[key];
if (value == null) {
throw new Error("'" + key + "' environment variable is not set.");
}
return value;
@dkundel
dkundel / client.ts
Last active December 8, 2017 00:18
Twilio Video TS
import { connect } from 'twilio-video';
const TOKEN_URL = 'THE_URL_TO_YOUR_FUNCTION';
const roomName = 'myroom';
let connected = false;
let localMediaEl = document.getElementById('localMedia');
let remoteMediaEl = document.getElementById('remoteMedia');
let buttonConnectEl = document.getElementById('buttonConnect');
@dkundel
dkundel / README.md
Created October 25, 2018 18:32
Demo Style Loader

It works