Skip to content

Instantly share code, notes, and snippets.

@bigforo
bigforo / algos
Created July 15, 2021 05:11
PLL OLL
R U R↓ U→ R↓
F (R2↓ U→ R↓ U→) (R U R↓) F→
@bigforo
bigforo / QMK and VIA
Last active July 29, 2021 08:41
KB flashing
https://docs.qmk.fm/#/getting_started_build_tools?id=macos
VIA -> https://drive.google.com/file/d/1Wb30VnqHMV0dIVNKqcVWVaVzL5ZZgRxM/view
QMM -> https://drive.google.com/file/d/1115vf8N4E2NMiSnLZkg-oRiilEUqG_GE/view
https://www.reddit.com/r/olkb/comments/ghjkvl/anyone_know_how_to_make_a_screenshot_key_for_mac/
@bigforo
bigforo / 1.FilePath.cs
Last active April 29, 2021 05:43
linqpad6-snippets
#nullable enable
#region usage
FilePath path1 = "test.txt";
FilePath path2 = "test.TXT";
(path1 == path2).Dump();
FilePath path3 = "test.txt";
FilePath path4 = Path.Combine (Environment.CurrentDirectory, "test.txt");
(path3 == path4).Dump();
@bigforo
bigforo / index.cs
Last active April 29, 2021 06:54
csharp delegates insted of interface
// Example Startup.cs
// Map the delegate to a service method
builder.Services.AddTransient<WarehouseInventoryQuery.DoAllProductsHaveQtyOnHand>(x => x.GetRequiredService<ICaptchaService>().VerifyRecaptcha);
// Example Contract.cs
public static class WarehouseInventoryQuery
{
public delegate Task<bool> DoAllProductsHaveQtyOnHand(string token);
}
@bigforo
bigforo / gist:eb25da75e5bbdf2d99a7ceccdae36470
Created April 2, 2021 20:29 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@bigforo
bigforo / FFMpeg-Concat.bat
Created January 13, 2021 01:12
FFMpeg Concat all files
@echo off
echo. > aConvertToTs.bat
for %%i in (*.mp4) do echo @d:\ffmpeg -i %%i -c copy -bsf:v h264_mp4toannexb -f mpegts %%i.ts >> aConvertToTs.bat
TIMEOUT /T 2
call aConvertToTs.bat
TIMEOUT /T 2
echo. > mylist.txt
for %%j in (*.ts) do echo file '%%j'>> mylist.txt
TIMEOUT /T 2
d:\ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
@bigforo
bigforo / RpiAp.md
Last active December 21, 2016 05:11
Raspberry Pi AP

RaspberryPi hostapd dnsmasq

Install dnsmasq hostapd

apt-get install dnsmasq hostapd

DHCPCD

nano /etc/dhcpcd.conf

denyinterfaces wlan0