Skip to content

Instantly share code, notes, and snippets.

[{'aliases': ['Star Trek: The Original Series', 'Star Trek: TOS'], 'banner': 'graphical/77526-g11.jpg', 'firstAired': '1966-09-08', 'id': 77526, 'network': 'NBC', 'overview': "Space. The Final Frontier. The U.S.S. Enterprise embarks on a five year mission to explore the galaxy. The Enterprise is under the command of Captain James T. Kirk, who is assisted by First Officer Mr. Spock, from the planet Vulcan, and Chief Medical Officer Dr. Leonard 'Bones' McCoy. With a determined crew, the Enterprise encounters Klingons, Romulans, time paradoxes, tribbles and genetic supermen led by Khan Noonien Singh. Their mission: to explore strange new worlds, to seek new life and new civilizations, to boldly go where no man has gone before. ", 'seriesName': 'Star Trek', 'slug': 'star-trek', 'status': 'Ended'}]
[{'aliases': [], 'banner': 'graphical/73566-g.jpg', 'firstAired': '1973-09-08', 'id': 73566, 'network': 'NBC', 'overview': 'This is the further adventures of the Star Trek series in a half-hour animated form. This show
@vampjaz
vampjaz / i7.json
Created August 10, 2018 20:32
Intel hw database
{
"__metadata": {
"id": "http://lbauto-198-175-96-168.cps.intel.com/API/v1_0/Products/Processors(97129)",
"uri": "http://lbauto-198-175-96-168.cps.intel.com/API/v1_0/Products/Processors(97129)",
"type": "Intel.OData.v1_0.Processor"
},
"ChipsetComponents": {
"__deferred": {
"uri": "http://lbauto-198-175-96-168.cps.intel.com/API/v1_0/Products/Processors(97129)/ChipsetComponents"
}
@vampjaz
vampjaz / betterscrollbar.pde
Created July 30, 2018 21:18
A nice scrollbar implementation for Processing
class ScrollBar {
float x,y,w,h;
float min,max,val;
String name;
ScrollBar(float xp, float yp, float sw, float sh, float lo, float hi, float v, String n) {
x=xp;
y=yp;
w=sw;
h=sh;
@vampjaz
vampjaz / mcmeta_anim.py
Last active June 2, 2018 21:43
Reads a Minecraft texture file and its accompanying .mcmeta file and generates the specified animation
# depends on Pillow/PIL and ImageMagick's `convert' utility
from PIL import Image
import json
import sys
import os
import tempfile
import shutil
# specify the image file (not the mcmeta file) as the first argument
@vampjaz
vampjaz / gifconv.sh
Created April 30, 2018 21:13
makes still pngs into a still gif (for nitro emote server packing)
#!/bin/sh
## all the input files should be png files in the current directory
# dependencies: imagemagick convert utility
mkdir -p temp
mkdir -p output
for file in *.png
do echo "Converting $file"
@vampjaz
vampjaz / algebra.py
Created March 19, 2018 18:38
Python (2) solver for real roots of a polynomial
## python algebra module
import math
def func_in(func,var='x'): ## lowercase var to split on
# returns a list of the coefficients
func = func.replace('-','+-').lower().replace(' ','')
lst2 = {}
try:
for term in func.split('+'):
@vampjaz
vampjaz / main.py
Created February 25, 2018 10:33
example usage of a SydDiscord + Dogecord bot
from SydDiscord import Discord
from dogecord import BotFramework
## here would probably be where we load the secret keys, configuration, and such
dc = Discord(authentication thingies)
bot = BotFramework(dc, config_stuff) # the config would point to a module folder
bot.load_modules()
if __name__ == '__main__':
@vampjaz
vampjaz / hs_error_pid7498.log
Created February 17, 2018 23:49
segfault in Pathfinder
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb6dd1824, pid=7498, tid=0xb52e7470
#
# JRE version: OpenJDK Runtime Environment (8.0_131-b57) (build 1.8.0_131-b57)
# Java VM: OpenJDK Client VM (25.131-b57 mixed mode, Evaluation linux-aarch32 )
# Problematic frame:
# C [libc.so.6+0x5b824] fwrite+0x18
#
@vampjaz
vampjaz / mac_apps.txt
Created February 13, 2018 04:03
Mac apps every one needs (some oriented toward develpers)
- Google chrome
- Sublime Text
- Clover configurator
- CPU LED
- Discord
- GIMP
- HandBrake
- iMovie
- Inventor Fusion (not the 360 version if you can get it)
- Itsycal
@vampjaz
vampjaz / 20160521.log
Created May 23, 2016 18:04
most of #defconctf irc for the 2016 comp
[09:53:51] *** Joins: nwx (~nwx@159.203.213.221)
[09:54:09] *** Joins: WebIRC22009 (~9a05ae4f@d154-5-174-79.bchsia.telus.net)
[09:54:54] *** Quits: Lightning (~Lightning@legitbs.net) (Client Quit)
[09:56:11] *** Quits: mightym0 (cNGfd8PwkY@atria.uberspace.de) (Ping timeout: 252 seconds)
[09:56:18] <nwx> ಠ_ಠ
[09:57:22] *** Quits: IceGuest_78 (~IceChat78@adsl196-199-89-217-196.adsl196-11.iam.net.ma) (Ping timeout: 252 seconds)
[10:01:31] *** Joins: lurcifer (~a29@2601:143:4202:ba5c:a8d0:d4ca:365e:2968)
[10:03:57] *** Quits: lurcifer (~a29@2601:143:4202:ba5c:a8d0:d4ca:365e:2968) (Client Quit)
[10:05:14] *** Quits: WebIRC31809 (~4fb6d8f9@bzq-79-182-216-249.red.bezeqint.net) (Client Quit)
[10:06:43] <TMT> how much we should watch time_sink ? :))