Skip to content

Instantly share code, notes, and snippets.

@possan
possan / DomeTester.pde
Created March 24, 2020 21:17
Dome projection animation tester
// Install and run processing 3 from processing.org
// Open Sketch menu > Click Import library > Add library...
// Install SelectFile plugin (v0.0.2)
// Install Video plugin (v1.0.1)
// Paste this code and hit Run
import select.files.*;
import processing.video.*;
static int IMAGE_DURATION = 3000;
x"C9", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"00", x"C3", x"63", x"00", x"00", x"00", x"00", x"00", x"00", x"C3", x"6F", x"00", x"00", x"00", x"00", x"00", x"00", x"C3", x"7B", x"00", x"00", x"00", x"00", x"00", x"00", x"C3", x"87", x"00", x"00", x"00", x"00", x"00", x"00", x"C3", x"93", x"00", x"F5", x"C5", x"D5", x"E5", x"CD", x"80", x"FF", x"E1", x"D1", x"C1", x"F1", x"D9", x"F5", x"C5", x"D5", x"E5", x"CD", x"00", x"00", x"E1", x"D1", x"C1", x"F1", x"D9", x"F5", x"C5", x"D5", x"E5", x"CD", x"00", x"00", x"E1", x"D1", x"C1", x"F1", x"D9", x"F5", x"C5", x"D5", x"E5", x"CD", x"2F", x"02", x"E1", x"D1", x"C1", x"F1", x"
unsigned char romsubset_bin[] = {
x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff",
x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff",
x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff",
x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff",
x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff", x"ff",
x"ff", x"ff", x"ff", x"ff", x"f5", x"e5", x"af", x"e0", x"4f", x"21", x"51", x"ff",
x"3e", x"c4", x"22", x"af", x"22", x"3e", x"18", x"22", x"af", x"22", x"3e", x"23",
x"22", x"3e", x"01", x"e0", x"4f", x"21", x"51", x"ff", x"3e", x"c8", x"22", x"af",
x"22", x"3e", x"18", x"22", x"af", x"22", x"3e", x"23", x"22", x"e1", x"f1", x"d9",
void setup() {
// put your setup code here, to run once:
pinMode(7, OUTPUT);
// pinMode(5, INPUT);
}
static uint8_t b = 0;
static volatile unsigned char memory[1000] = { 123, };

Hitta trasiga filer

cd /var/www

find . \( -type f -name '*.php' -o -type f -name '*.js*' -o -type f -name '*.html' \) \
    -exec grep -q 'developmyredflag' {} \; \
    -print

find . ( -type f -name '.php' -o -type f -name '.js*' -o -type f -name '*.html' ) \

Keybase proof

I hereby claim:

  • I am possan on github.
  • I am possan (https://keybase.io/possan) on keybase.
  • I have a public key ASChUAreReKY1PUQXQnbT3ulxXwyuBbld7hYNYT-8YTqeAo

To claim this, I am signing this object:

@possan
possan / restart-if-resolume-crashed.scpt
Last active December 17, 2017 18:34
AppleScript to restart computer if Resolume stopped responding
tell application "Activity Monitor" to run
tell application "System Events" to tell process "Activity Monitor"
-- log window
-- print window 1
set num to 0
-- tell radio button 1 of radio group 1 of group 1 of toolbar 1 of window 1 to click --Using the CPU View
tell outline 1 of scroll area 1 of window 1 -- working with the list
-- look for processes with "Not Responding" in the title
set filteredrows to (rows whose value of first static text contains "Resolume" and value of first static text contains "Not Responding") -- Looking for Not responding process
@possan
possan / prompt.sh
Last active April 17, 2017 14:20
Powerline prompt hack
#!/bin/sh
# Git logic stolen from https://github.com/twolfson/sexy-bash-prompt/blob/master/.bash_prompt
# Blocky fonts from https://github.com/powerline/fonts
# Colors from http://misc.flogisoft.com/bash/tip_colors_and_formatting
# http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
# magentas 236 24 247
# grn 34
# red 161
@possan
possan / .phoenix.js
Last active January 13, 2023 10:26
phoenix.js window manager configuration
//
// Phoenix configuration, updated 2023-01-13
//
// Use Cmd-Option-Command + Arrow keys to move/size windows, Cmd-Option-Command + Space for fullscreen
//
// Show debug logs: log stream --process Phoenix
//
var FULL = "full";
var FIRST = "0-1/3";
// MPU-6050 Short Example Sketch
// By Arduino User JohnChi
// August 17, 2014
// Public Domain
#include<Wire.h>
#include <PID_v1.h>
const int MPU_addr=0x68; // I2C address of the MPU-6050
int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;