Skip to content

Instantly share code, notes, and snippets.

View kachidk's full-sized avatar

Victor Nwanguma kachidk

View GitHub Profile
@kachidk
kachidk / dotnet-cli-cheatsheet.md
Created April 13, 2025 21:29 — forked from jesmaail/dotnet-cli-cheatsheet.md
dotnet cli cheatsheet

DotNet CLI Cheatsheet

New Solution: dotnet new sln -n <Solution-Name>

List available new commands: dotnet new -h

List avilable project types dotnet new -l

New Project: dotnet new <Project-Type> -o <Project-Name>

global computerIsInUse, resetTime
on run
set computerIsInUse to true
set resetTime to (do shell script "date +%s") as integer
end run
on idle
set idleTime to (do shell script "ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF; exit}'") as integer
if idleTime is greater than 7.4E+10 then
@kachidk
kachidk / TouchBarFix.scpt
Created December 16, 2024 06:14 — forked from smosko/TouchBarFix.scpt
Macbook Pro TouchBar Flicker Fix
# 1. Paste this into Script Editor, replace username and password;
# 2. Export as "Application", check "Stay open" and "Run-only";
# 3. Add to Login Items in Settings/General to run automatically;
# 4. To hide the Dock icon, add to Content/Info.plist:
# <key>LSUIElement</key>
# <string>1</string>
on idle
set idleTime to (do shell script "ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF/1000000000; exit}'") as integer
if idleTime is less than 58 then
@kachidk
kachidk / 0000_01_01_000000_set_sqlite_extensions.php
Created July 8, 2024 15:48 — forked from james2doyle/0000_01_01_000000_set_sqlite_extensions.php
Use a Laravel migration to set some PRAGMA performance settings in Sqlite
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
/**
* Run the migrations.
*/
@kachidk
kachidk / ffmpeg-compress-mp4
Created November 24, 2023 15:00 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4