Skip to content

Instantly share code, notes, and snippets.

@gingerbeardman
gingerbeardman / jog.sh
Last active February 28, 2023 19:41
Sony USB Jog Controller (PCVA-JC1)
#!/usr/bin/env zsh
# requirements: hidapitester, sendkeys
doPress() {
cur+="$1"
sendkeys send --delay 0 --initial-delay 0 -c "$1" # faster than osascript
}
hidapitester --vidpid 054C/00C4 -l 4 --open --read-input-forever --quiet \
/*
* NAME: injectaddr.so
*
* SYSOPSIS:
* % gcc -shared -fPIC injectaddr.c -ldl -o injectaddr.so
*
* -- inject 1s delay, then connect to 127.0.0.1:8888
* % LD_PRELOAD=injectaddr.so \
* curl http://d1000.p8888.4127-0-0-1.inject.example.com/
*
@DimaCrafter
DimaCrafter / keyboard.js
Created October 4, 2020 08:47
Node.JS FFI (WinAPI) utility for keyboard
const ffi = require('node-ffi');
const FFIStruct = require('ref-struct');
const arch = require('os').arch();
const INPUT_KEYBOARD = 0x1;
const KEYEVENTF_KEYUP = 0x2;
const KEYEVENTF_SCANCODE = 0x8;
const InputStruct = FFIStruct({
type: 'int',
'???': 'int',

非破壊 TypeSctript

mizchi / TypeScript Meetup 2


About Me

  • mizchi / 竹馬光太郎
  • フロントエンドと Node.js
@DerEros
DerEros / office_365_on_wine.md
Last active January 24, 2024 12:21
Installing and Running Office 365 on Wine

NOTE: THIS IS NOT A WORKING TUTORIAL I never got this to work and gave up. If you find any useful bit, go ahead an use them though.

Installing and Running Office 365 on Wine

My personal notes while trying to get Office 365 to install and run on my workstation.

Feel free to extract any useful information. Keep in mind that this is information is provided without any guarantees ... blah blah ... might kill

@voluntas
voluntas / open_momo.rst
Last active March 1, 2024 13:51
OpenMomo プロジェクト
~/Development/3d/Slic3r [(version_1.40.0-alpha)]$ export LDLOADLIBS=-lstdc++
~/Development/3d/Slic3r [(version_1.40.0-alpha)]$ perl Build.PL
Attempting to create directory /home/xxxx/Development/3d/Slic3r/local-lib
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7044.tar.gz ... OK
Configuring App-cpanminus-1.7044 ... OK
Building and testing App-cpanminus-1.7044 ... OK
Successfully installed App-cpanminus-1.7044 (upgraded from 1.7040)
1 distribution installed
Class::XSAccessor is up to date. (1.19)
require 'pycall'
SSD_KERAS_DIR = File.expand_path('../../ssd_keras', __FILE__)
PyCall.import_module('sys').path.append(SSD_KERAS_DIR)
PICS_DIR = File.join(SSD_KERAS_DIR, 'pics')
np = PyCall.import_module('numpy')
imagenet_utils = PyCall.import_module('keras.applications.imagenet_utils')
image = PyCall.import_module('keras.preprocessing.image')
@msakai
msakai / autoencoder_vs_pca.ipynb
Created June 20, 2017 16:58
Autoencoder vs PCA
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nickkraakman
nickkraakman / ffmpeg-cheatsheet.md
Last active April 23, 2024 20:53
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file