Skip to content

Instantly share code, notes, and snippets.

@rdp
rdp / ttdbot.py
Last active November 2, 2024 09:15 — forked from CreamyGhost25/ttdbot.py
# Import things
import subprocess
import pyautogui
import time
import pydirectinput
from pathlib import Path
print('might want to click on roblox focus')
time.sleep(5)
print(pyautogui.position())
@rdp
rdp / create.cr
Created April 14, 2023 04:57
create EIA 608 byte pairs
to_encode = "abcdABCD"
outy = Array(UInt8).new
to_encode.each_char{|c|
if c.in_set?("A-Z")
outy << 0x41_u8 + (c - 'A') # https://en.wikipedia.org/wiki/EIA-608#Characters
elsif c.in_set?("a-z")
outy << 0x61_u8 + (c - 'a')
else
raise "don't translate more chars yet"
end
require "benchmark"
require "uuid"
Benchmark.ips do |x|
x.report { UUID.random }
end
public class TestWasClosed {
public B() throws IOException {
//throw new IOException("and me?");
}
@Override
public void close() throws Exception {
throw new IOException("nope");
}
}
@rdp
rdp / 0001-apple-keychain-integration-other-changes.patch
Created December 9, 2020 18:01 — forked from leonklingele/0001-apple-keychain-integration-other-changes.patch
openssh-{7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4}p1 patches for storing SSH passphrases in the OS X keychain. https://github.com/leonklingele/homebrew-dupes
From 1f00753130f44c0e29c34d95957f6eac2b2dcf45 Mon Sep 17 00:00:00 2001
From: Leon Klingele <[email protected]>
Date: Tue, 29 Sep 2020 18:21:13 +0200
Subject: [PATCH 1/2] apple-keychain-integration-other-changes
---
Makefile.in | 16 +-
audit-bsm.c | 7 +-
auth.c | 2 +-
authfd.c | 25 ++
@Service
class BeanB {
@Autowired
BeanA beana ;
@PostConstruct
public void init(){
System.out.println("bean b init is called a.b=" + beana.b);
diff --git a/cross_compile_ffmpeg.sh b/cross_compile_ffmpeg.sh
index 1231d6c..f59244d 100755
--- a/cross_compile_ffmpeg.sh
+++ b/cross_compile_ffmpeg.sh
@@ -805,6 +805,10 @@ build_libtiff() {
sed -i.bak 's/-ltiff.*$/-ltiff -llzma -ljpeg -lz/' $PKG_CONFIG_PATH/libtiff-4.pc # static deps
}
+build_libcdio() {
+ generic_download_and_make_and_install http://git.savannah.gnu.org/cgit/libcdio.git/snapshot/libcdio-release-2.1.0.tar.gz
diff --git a/configure b/configure
index 080d93a129..86bdb73dc7 100755
--- a/configure
+++ b/configure
@@ -2681,6 +2681,9 @@ bink_decoder_select="blockdsp hpeldsp"
binkaudio_dct_decoder_select="mdct rdft dct sinewin wma_freqs"
binkaudio_rdft_decoder_select="mdct rdft sinewin wma_freqs"
cavs_decoder_select="blockdsp golomb h264chroma idctdsp qpeldsp videodsp"
+ccaption_raw_608_decoder_select="ccaption_decoder"
clearvideo_decoder_select="idctdsp"
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index d7f5bd7..afd8cef 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -716,9 +716,9 @@ dshow_list_device_options(AVFormatContext *avctx, ICreateDevEnum *devenum,
if ((r = dshow_cycle_devices(avctx, devenum, devtype, sourcetype, &device_filter, &device_unique_name)) < 0)
return r;
ctx->device_filter[devtype] = device_filter;
+ ctx->device_unique_name[devtype] = device_unique_name;
if ((r = dshow_cycle_pins(avctx, devtype, sourcetype, device_filter, NULL)) < 0)
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index d7f5bd7..afd8cef 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -716,9 +716,9 @@ dshow_list_device_options(AVFormatContext *avctx, ICreateDevEnum *devenum,
if ((r = dshow_cycle_devices(avctx, devenum, devtype, sourcetype, &device_filter, &device_unique_name)) < 0)
return r;
ctx->device_filter[devtype] = device_filter;
+ ctx->device_unique_name[devtype] = device_unique_name;
if ((r = dshow_cycle_pins(avctx, devtype, sourcetype, device_filter, NULL)) < 0)