mizchi / TypeScript Meetup 2
- mizchi / 竹馬光太郎
- フロントエンドと Node.js
#!/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/ | |
* |
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', |
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.
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
日時: | 2024-02-01 |
---|---|
作: | 時雨堂 |
資料 バージョン: | 2024.1 |
GitHub URL: | https://github.com/shiguredo/momo |
製品 URL: | https://momo.shiguredo.jp/ |
~/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') |
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