Skip to content

Instantly share code, notes, and snippets.

View digital-shokunin's full-sized avatar

David digital-shokunin

View GitHub Profile
@digital-shokunin
digital-shokunin / python examples.ipynb
Created November 9, 2012 21:03
Python examples iPython Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@digital-shokunin
digital-shokunin / ide-talk-notes.md
Last active December 25, 2015 23:29
Basic outline for a possible talk Python IDEs: What are my options?

Python IDEs: What are my options? 

Prep

  • Get HDMI-DVI adaptor
  • Upload presentation to website
  • Create PDF of presentation for slideshare.
  • Install Notepad++ on WinXP VM

Scope

@digital-shokunin
digital-shokunin / ROXBORO.PAS
Created May 23, 2014 17:31
Original Welcome to Roxboro written for Turbo Pascal
PROGRAM RoxboroRumble (Input, Output);
(* This program is a RPG about Roxboro. It's basic plot is this *)
(* You are a teenager that moved into Roxboro from a presumably *)
(* more exciting town. It isn't long before boredom sets in... *)
(* about 5 seconds considering it's Roxboro. You soon realize *)
(* there is nothing to do in Roxboro and the only thing to do *)
(* Roxboro is get out of Roxboro. This is where the game begins *)
(* the user must over come many challenges and defeat the *)
(* bosses that guard the ways out of Roxboro. The user gains *)
(* experience along the way by killing crack/pot heads, preps, *)
@digital-shokunin
digital-shokunin / Dockerfile
Last active August 29, 2015 14:02 — forked from adamw/Dockerfile
Java Play
# VERSION 1.0
# the base image is a trusted ubuntu build with java 7 (https://index.docker.io/u/dockerfile/java/)
FROM dockerfile/java
# that's me!
MAINTAINER Adam Warski, [email protected]
# we need this because the workdir is modified in dockerfile/java
WORKDIR /
@digital-shokunin
digital-shokunin / nginx_flask.conf
Last active August 29, 2015 14:05
Nginx & uWSGI config files for flask site
upstream uwsgicluster {
#keepalive 128;
#server 127.0.0.1:8080;
server unix:/run/uwsgi/webapps/flask-example/socket;
}
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
@digital-shokunin
digital-shokunin / Dockerfile
Last active July 14, 2016 04:04
Dockerfile for uwsgi/nginx/with flask install
############################################################
# Dockerfile to build Python Nginx/uWSGI/Flask Application Containers
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM icecreammatt/flask
# File Author / Maintainer
MAINTAINER David Mitchell
@digital-shokunin
digital-shokunin / Get wsadmin help.md
Last active January 5, 2024 03:46
WSAdmin cheatsheet
    Help()
    AdminApp.help()
    AdminConfig.help()
    AdminControl.help()

List some servers:

AdminControl.queryNames('type=Server,cell='+cn+',node='+nn+',*')

@digital-shokunin
digital-shokunin / howtogrooveshark.txt
Last active August 29, 2015 14:21
How to get your grooveshark playlist
In Chrome, hit Ctrl-Shift-J,
Paste the following JS into the console
@digital-shokunin
digital-shokunin / etc-vimrc
Created May 18, 2016 16:33
vim and git development settings for Puppet
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers

Keybase proof

I hereby claim:

  • I am digital-shokunin on github.
  • I am digisho (https://keybase.io/digisho) on keybase.
  • I have a public key ASCb4gh2wnQSifLWdNlcZzFlzlWJHGYAnsU1daewzLFjQwo

To claim this, I am signing this object: