Skip to content

Instantly share code, notes, and snippets.

Avatar

Randall Degges rdegges

View GitHub Profile
View advanced-flood.py
#!/usr/bin/python
"""
advanced-flood.py
@author: Randall Degges
@email: rdegges@gmail.com
@date: 11-20-09
This program floods the specified phone number and spoofs caller ID making it
@rdegges
rdegges / proxy_nginx.sh
Created Apr 11, 2011
Create a HTTP proxy for jenkins using NGINX.
View proxy_nginx.sh
sudo aptitude -y install nginx
cd /etc/nginx/sites-available
sudo rm default
sudo cat > jenkins
upstream app_server {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;
@rdegges
rdegges / hello-world-vue.js
Created Jul 20, 2017
A simple hello world example in Vue.js.
View hello-world-vue.js
<html>
<body>
<div id="app">
<h1>{{ message }}</h1>
</div>
<script src="https://unpkg.com/vue"></script>
<script>
let app = new Vue({
el: "#app",
@rdegges
rdegges / Procfile
Created Dec 18, 2011
Heroku Procfile
View Procfile
web: python project/manage.py run_gunicorn -b "0.0.0.0:$PORT" -w 3
--max-requests 1000 --log-level info --settings=settings.prod
scheduler: python project/manage.py celeryd -B -E --maxtasksperchild=1000
--settings=settings.prod
worker: python project/manage.py celeryd -E --maxtasksperchild=1000
--settings=settings.prod
View test.js
{
ip: '8.8.8.8',
location: {
country: 'US',
region: 'California',
city: 'Mountain View',
lat: 37.40599,
lng: -122.078514,
postalCode: '94043',
timezone: '-07:00',
@rdegges
rdegges / okta-server.js
Created Aug 21, 2019
Showcase an Okta Node Server #okta #javascript
View okta-server.js
const express = require("express");
const okta = require("okta");
const app = express();
app.use(okta());
@rdegges
rdegges / The Technical Interview Cheat Sheet.md
Last active Aug 3, 2019 — forked from TSiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@rdegges
rdegges / test.js
Created May 20, 2019
This example shows you how to do X #okta #mfa
View test.js
import "hi";
test.call();
@rdegges
rdegges / list-users.js
Created Apr 17, 2019
List Users in Okta Using Node #okta #mfa
View list-users.js
client.listUsers(u => {
console.log(user);
});
@rdegges
rdegges / index.html
Created Jul 21, 2017
Crypto Compare styling.
View index.html
<tbody>
<tr v-for="coin in coins">
<td>{{ coin.rank }}</td>
<td><img v-bind:src="getCoinImage(coin.symbol)"> {{ coin.name }}</td>
<td>{{ coin.symbol }}</td>
<td>{{ coin.price_usd | currency }}</td>
<td v-bind:style="getColor(coin.percent_change_1h)">
<span v-if="coin.percent_change_1h > 0">+</span>{{ coin.percent_change_1h }}%
</td>
<td v-bind:style="getColor(coin.percent_change_24h)">