Skip to content

Instantly share code, notes, and snippets.

View iwalfy's full-sized avatar

Mikhail Lebedinets iwalfy

View GitHub Profile
@stephancasas
stephancasas / sonoma-text-insertion-point-downgrade.jxa.js
Created October 7, 2023 02:58
Disable Sonoma Text Insertion Point ("Cursor" / "Caret")
#!/usr/bin/env osascript -l JavaScript
const App = Application.currentApplication();
App.includeStandardAdditions = true;
const kCFPrefsFeatureFlagsDir = '/Library/Preferences/FeatureFlags/Domain';
const kCFPrefsFeatureEnabledKey = 'Enabled';
const kUIKitDomainPrefsTemporaryPath = '/tmp/UIKit.plist';
const kUIKitRedesignedTextCursorKey = 'redesigned_text_cursor';
@maxnikulin
maxnikulin / README.rst
Created December 30, 2022 10:28
glx2dicom - Convert Sirona GALAXIS (GALILEOS Viewer) CBCT format to DICOM

glx2dicom - Convert Sirona GALAXIS (GALILEOS Viewer) CBCT format to DICOM

Usage:

python3 glx2dicom.py --tag PatientName='Surname^Name' \
       --tag PatientBirthDate='19700101' \
       [--tag TAG=VALUE]... SRC_DIR OUT_DIR
@IsaacXen
IsaacXen / README.md
Last active June 21, 2024 01:41
(Almost) Every WWDC videos download links for aria2c.
@avoidik
avoidik / 006-glibc-conflict.patch
Last active April 3, 2024 19:49
Compile LEDE v17.01.4 for Mikrotik MetaROUTER (MIPS only)
--- a/misc/create_inode.c 2016-09-02 04:17:32.000000000 +0000
+++ b/misc/create_inode.c 2020-01-04 20:56:26.150590109 +0000
@@ -392,7 +392,7 @@
}
#endif /* !defined HAVE_PREAD64 && !defined HAVE_PREAD */
-static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,
+static errcode_t copy_file_chunk(ext2_filsys fs, int fd, ext2_file_t e2_file,
off_t start, off_t end, char *buf,
char *zerobuf)
@ejlp12
ejlp12 / header_filter_by_lua_example.md
Last active February 10, 2024 11:03
nginx, openresty, transform/modify response body, header_filter_by_lua