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
@echo off | |
set /p full="Do you have the Arduino IDE already installed? (y/N) " | |
@echo on | |
if /I "%full:~0,1%"=="y" ( | |
echo "Hello" | |
xcopy /s/e/y Arduino\Windows\arduino-1.8.1 "%USERPROFILE%\Documents\arduino-1.8.1\" | |
) | |
xcopy /s/e/y Arduino15 "%USERPROFILE%\AppData\Local\Arduino15\" |
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
#include <cstdio> | |
#include <cstring> | |
#include <cstdlib> | |
using namespace std; | |
void login1(char * input1, char * input2) { | |
struct { | |
char username[20]; | |
char password[30]; | |
char canary; |
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 | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install curl wget git zip unzip -y | |
echo "Install all developer tools?" | |
select yn in "Yes" "No"; do | |
case $yn in | |
Yes ) sudo apt install -y build-essential cmake python-dev python3-dev golang-go nodejs |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'edkolev/promptline.vim' | |
Plugin 'sjl/gundo.vim' |
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
// process.env: {...keys, FB_PAGE_ACCESS_TOKEN, VERIFY_TOKEN} | |
// Requires DynamoDB | |
// Setup: Copy to clean directory, `npm install aws-sdk request`, zip & upload to Lambda. | |
'use strict' | |
const request = require('request') | |
const AWS = require('aws-sdk') | |
const docClient = new AWS.DynamoDB.DocumentClient() |
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
class Mastermind { | |
constructor() { | |
this.length = 4 | |
this.chars = ['0', '1', '2', '3', '4', '5'] | |
} | |
generate() { | |
this.key = [] | |
for (var i = 0; i < this.length; i++) | |
this.key.push(this.chars[(Math.random() * this.chars.length) | 0]) |
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
module cpu; | |
reg [7:0] ax, bx, ix, pc; | |
reg [3:0] ir; | |
reg [7:0] mem [0:255]; | |
// reset | |
initial begin | |
ax <= 0; | |
bx <= 0; |
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
### | |
REDIS SCHEMA | |
------------ | |
SET @domain.al@email key | |
STRING @domain.ae@email token | |
HASH @domain.as@key A acl, S secret | |
HASH @domain.u@email N name, A acl, [T trustee], [X delete] |
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
# DATA | |
## USER | |
email KEY string | |
name string | |
elevated boolean | |
auth string -> USER.email | |
key string | |
expires date |