Skip to content

Instantly share code, notes, and snippets.

View xunker's full-sized avatar

Matthew Nielsen xunker

View GitHub Profile
@nikp123
nikp123 / Armbian USB gadget guide.md
Created August 3, 2021 10:04
How to make a USB gadget on Armbian Linux

This guide will include a step-by-step guide on how to set up an board running Armbian to act as a gadget device (similar to how it's been advertized with the Pi Zero)

Prerequisites

You will need a:

  • Armbian supported board with an OTG port
  • A temporary spare monitor, USB keyboard and display cable (or serial, if you'd like that instead)
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active April 29, 2024 18:16
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@tcjennings
tcjennings / FONT.SHAPE.DEMO
Last active February 9, 2021 00:24
PRODOS-friendly shape-based font demo using Beagle Brothers proportional font shapes ("ACOMPUTE" from the Apple Mechanic diskette).
1 REM
2 REM PRODOS HI RES DEMO PROGRAM
3 REM USING BEAGLE BROS SHAPE FONT AT $6000
4 REM MODIFIED FROM Apple II High Resolution Character Generator, COMPUTE! June 1981
5 REM
8 LOMEM:28928
10 POKE 232,0: POKE 233,96: REM POKES SHAPE TABLE START ADDRESS
30 PRINT CHR$(4)"BLOAD ACOMPUTE,A$6000" : REM LOADS SHAPE TABLE INTO MEMORY, MATCHES PREVIOUS POKES
40 HOME: HGR2: POKE 49234,0: HCOLOR=3: ROT=0: SCALE=1: REM SETS HIRES GRAPHICS PARAMS, USES PAGE 2 TO HIRES MEMORY
45 REM H AND V ARE MANUAL ATTEMPTS AT CENTERING. NOT SOPHISTICATED.
@juancarlospaco
juancarlospaco / thermal_printer.md
Last active December 4, 2023 11:58
Arch Linux Thermal Printer USB 58mm / 80mm Drivers & Config
@TedThompson
TedThompson / TREKTHEME.BAS
Created September 20, 2018 01:59
Apple //e Applesoft BASIC Music to play the opening melody of the Star Trek theme.
100 DIM SC(10)
110 PLAY = 768
120 DATA 160,100,169,1,133,250,174,3,3,228,250,208,3,173,48,192,202,208,246,173,48,192,136,240,7,198,250,208,233,76,2,3,96
130 REM
140 REM 233,220,208,195,184,175,164,154,146,137,129,122,114,108
150 REM G G# A A# B C C# D D# E F F# G G#
160 REM
170 FOR I = 0 TO 32
180 READ V: POKE PLAY + I,V: NEXT
190 POKE 769,200: REM 769 IS DURATION; 771 IS PITCH
@ednisley
ednisley / gethp54602
Created March 18, 2018 17:26
Kermit script to capture HP 54602 oscilloscope screen image
#!/usr/bin/kermit +
# Fetches screen shot from HP54602B oscilloscope
# Presumes it's set up for plotter output...
# Converts HPGL to PNG image
set host 192.168.1.40 7001 /raw-socket
set modem none
# Make sure we have a param
if not defined \%1 ask \%1 {File name? }
@Chocksy
Chocksy / kill_sidekiq_job.rb
Last active April 25, 2024 14:07
Kill sidekiq jobs by process id for busy jobs and by jid for other sets.
# FOR BUSY JOBS
# take the process_id from the /busy page in sidekiq and kill the longest running one.
workers = Sidekiq::Workers.new
long_process_id = 'integration.3:4:71111aaa111' # Eg: 'integration.3:4:71d1d7f4ef5a'
workers.each do |process_id, thread_id, work|
process = Sidekiq::Process.new('identity' => process_id)
process.stop! if process_id == long_process_id
end
# FOR SCHEDULED JOBS
@urish
urish / espruino-waveshare-epaper.js
Last active June 26, 2023 02:57
Driver for Waveshare 2.9inch e-Paper Module
// Copyright (C) 2017, Uri Shaked
// Loosely based on code samples provided by waveshare
// License: MIT
const DIN_PIN = 11;
const CLK_PIN = 12;
const CS_PIN = 13;
const DC_PIN = 14;
const RST_PIN = 15;
const BUSY_PIN = 16;
@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
@marcotc
marcotc / sidekiq_retry_time.csv
Created February 14, 2017 18:16
Sidekiq retry exponential backoff formula times
Retry count Retry Time Total Cumulative Time Total Cumulative Days
0 0:00:00 0:00:00 0.0
1 0:00:16 0:00:16 0.0
2 0:00:31 0:00:47 0.0
3 0:01:36 0:02:23 0.0
4 0:04:31 0:06:54 0.0
5 0:10:40 0:17:34 0.0
6 0:21:51 0:39:25 0.0
7 0:40:16 1:19:41 0.1
8 1:08:31 2:28:12 0.1