Skip to content

Instantly share code, notes, and snippets.

View musm's full-sized avatar

Mustafa Mohamad musm

View GitHub Profile
@alanorth
alanorth / pre-process-media.sh
Last active April 2, 2025 15:06
Script for preparing media files for long-term archival
#!/usr/bin/env bash
#
# pre-process-media.sh v2024-04-28
#
# Prepare a directory of images and videos for long-term archival by normalizing
# their names, optimizing JPEGs with jpeg-archive, and stripping embedded MP4s
# from Android Motion Photos.
#
# SPDX-License-Identifier: GPL-3.0-only
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active May 3, 2026 05:25
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@peterwwillis
peterwwillis / default-ssh-keygen-check.sh
Last active March 29, 2026 01:49
This gist will track the websites that suggest unnecessarily-insecure default ssh-keygen arguments, in an attempt to have their authors update their arguments to safer defaults.
#!/usr/bin/env bash
declare -A LIST_OF_GUIDES
LIST_OF_GUIDES=(
["https://confluence.atlassian.com/bitbucketserver/creating-ssh-keys-776639788.html"]="Atlassian"
["https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/"]="GitHub"
["https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2"]="DigitalOcean"
["https://www.ssh.com/ssh/keygen/"]="info.us@ssh.com"
["https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key"]="Git SCM"
["https://www.vultr.com/docs/how-do-i-generate-ssh-keys"]="Vultr"
@nickbudi
nickbudi / README.md
Last active November 4, 2023 10:53
Cygwin git compatibility with VS Code (or other Windows programs) using cygpath

Cygwin Git + VS Code compatibility

Thanks and credit to mattn and ferreus on GitHub.

Also check out Developing on WSL and/or wslpath (Windows 10 Build 17046 or later) if you're using the Windows Subsystem for Linux.

@ZacLN
ZacLN / pkgdeps.jl
Created July 29, 2017 10:32
Find package dependencies
function pkgdeps(pkg::String, metadir = "/home/zac/.julia/v0.6/METADATA")
deps = []
for pdir in readdir(metadir)
if isdir(joinpath(metadir,pdir)) && "versions" in readdir(joinpath(metadir,pdir))
for ver in readdir(joinpath(metadir, pdir, "versions"))
if isfile(joinpath(metadir, pdir, "versions",ver,"requires"))
reqs = readlines(joinpath(metadir, pdir, "versions",ver,"requires"))
for r in reqs
if first(split(r, " ")) == pkg
push!(deps, (pdir, ver))
@max-mapper
max-mapper / bibtex.png
Last active November 19, 2025 13:01
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
#!/usr/bin/env julia
# inspired by http://stackoverflow.com/questions/40031913/simulate-a-bouncing-ball
# and the inspired Chris Rackauckas
using DifferentialEquations, ParameterizedFunctions, NLsolve, Luxor
f = @ode_def BallBounce begin
dy = v
dv = -g
@mkborregaard
mkborregaard / DepsPlot.jl
Created March 2, 2017 20:49
A Plots recipe for the dependency structure of julia packages
type MyGraph
source::AbstractVector{Int}
destiny::AbstractVector{Int}
end
type DepsGraph
g::MyGraph
d::Int
names::Vector{String}
end
@iambkramer
iambkramer / Export-Chocolatey.ps1
Last active July 17, 2020 19:54 — forked from alimbada/Export-Chocolatey.ps1
Export installed Chocolatey packages as chocolatey script
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" }
choco list -lo -r -y | % { $_.Split('|') | select -First 1 } | % { "choco install " + $_ + " -y" } | Out-file choco-software.txt