Skip to content

Instantly share code, notes, and snippets.

💭
Not currenly working on side projects.

Nathan Bergey natronics

💭
Not currenly working on side projects.
Block or report user

Report or block natronics

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View coef_drag_exploration.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natronics
natronics / slitscan.sh
Created Jun 12, 2015
Oneliner to make a video slitscan
View slitscan.sh
#!/usr/bin/env sh
ffmpeg -i $1 -vf "transpose=1","crop=2" -an -f image2pipe -vcodec ppm - | montage ppm:- -tile x1 -mode concatenate - | convert - -flop scanimage.jpg
@natronics
natronics / log.html
Last active Nov 7, 2015
turn weechat logs into html
View log.html
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="natronics.org">
<meta name="author" content="Nathan Bergey">
<link href='http://fonts.googleapis.com/css?family=Arvo:400,700|PT+Sans:400,700,400italic' rel='stylesheet' type='text/css'>
<link href="/resources/css/bootstrap.min.css" rel="stylesheet">
<link href="/resources/css/style.css" rel="stylesheet">
@natronics
natronics / zenirc
Created Mar 5, 2014
An /etc/init.d/ start-stop-daemon for managing https://github.com/zenirc/zenircbot
View zenirc
#!/bin/sh
### BEGIN INIT INFO
# Provides: zenirc
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts zenircbot
# Description: Starts zenircbot
@natronics
natronics / app.py
Last active Jan 3, 2016
Simple button on a webpage. Bootstrap for style.
View app.py
#!/usr/bin/env python
from flask import Flask, render_template, url_for, redirect, request
import os
tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), './')
app = Flask(__name__, template_folder=tmpl_dir)
@app.route("/", methods=['GET', 'POST'])
def index():
@natronics
natronics / wifi-packet-speed.ipynb
Created Dec 18, 2013
Quick WiFi packets per second calculation for different speeds
View wifi-packet-speed.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natronics
natronics / git-prompt.sh
Last active Dec 21, 2015
My simple version of a bash prompt that shows current git info.
View git-prompt.sh
## git status in prompt
find_git_status() {
local c_red='\[\e[31m\]'
local c_green='\[\e[32m\]'
local c_clear='\[\e[0m\]'
ps1pc_start="$1"
ps1pc_end="$2"
@natronics
natronics / iss-speed.ipynb
Last active Dec 21, 2015
How far does the space station go in....
View iss-speed.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natronics
natronics / Parsing_ADIS_messages.ipynb
Created Aug 3, 2013
Converting AIDS data to MKS units
View Parsing_ADIS_messages.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.