Skip to content

Instantly share code, notes, and snippets.

View moalex's full-sized avatar
🫛
Farting

moalex moalex

🫛
Farting
View GitHub Profile
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active May 28, 2026 10:14
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)
@fgibaux
fgibaux / videoRenamer.sh
Created May 23, 2019 15:01
Command to rename video files (VID prefixed) using encoded datetime
#!/bin/bash
# command to rename video files (VID prefixed) using encoded datetime
#
# inspired by https://www.claudiokuenzler.com/blog/686/rename-multimedia-video-files-filename-recorded-date-mediainfo
ls | grep "^VID" | while read line; do targetname=$(mediainfo "$line" | grep "Encoded date" | sort -u | awk '{print $5"_"$6"_"}' | sed 's/-//g'| sed 's/://g')$line; echo "Old name: $line, new name: ${targetname}"; done
read -p "Are you sure to rename? " -n 1 -r
echo # (optional) move to a new line

Batch convert

The simplest solution is like most already posted. A simple bash for loop.

for i in *.png
do
  convert "$i" "${i%.*}.jpg"
done
@bluemooninc
bluemooninc / file0.txt
Created November 15, 2018 08:07
長時間掛かるバッチの監視について ref: https://qiita.com/bluemooninc/items/2d583b5757affd878261
#/bin/bash
#
# pickup process files of the over 3600sec execution time.
# in the process target strings
#
PregStr="i\/usr\/bin\/java(.*)\.jar"
PID=$$
for i in `ps -ef | grep -E "$PregStr" | grep -v $PID | grep -v grep | awk '{print $2}'`
do
TIME=`ps -o lstart --noheader -p $i`
@realEbi
realEbi / getMediaInformation.sh
Created September 5, 2018 20:51
A simple, and handy tool for calculating video duration of one file or directory of multiple video files
#
# Author: Ebi: ebrhim.soroush@gmail.com
# You have to install mediainfo and libxml-xpath-perl and source this file or just copy this script into your ~/.bashrc
# sudo apt install mediainfo libxml-xpath-perl
#
read_dom () {
local IFS=\>
read -d \< ENTITY CONTENT
};
// ==UserScript==
// @name EmuParadise Download Workaround - 1.1.1
// @version 1.1.2
// @description Replaces the download button link with a working one
// @author Eptun
// @match https://www.emuparadise.me/*/*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant none
// ==/UserScript==
@hadisfr
hadisfr / shadowsocks_on_ubuntu.md
Created July 20, 2018 05:20
a simple guid to run a shadowsocks proxy on Ubuntu

Run a Shadowsocks Proxy Server on Ubuntu

Install Shadowsocks

It's possible to install ss-server by apt:

apt-get install shadowsocks-libev
@ityouknow
ityouknow / LICENCE SUBLIME TEXT
Created June 24, 2018 08:36
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@tscibilia
tscibilia / remux.sh
Last active February 22, 2021 16:05
ffmpeg-filebot-remux
#!/bin/sh
# Input Parameters
# NOT WORKING, ABANDONED IN FAVOR OF SICKBEARD_MP4_AUTOMATOR
# https://forums.plex.tv/discussion/comment/1565363/#Comment_1565363
ARG_PATH="$3"
ARG_NAME="$2"
ARG_LABEL="N/A"
CONFIG_OUTPUT="${HOME}/Media" # Filebot's final destination for the renamed file
# filebot used to extract any rar
@jesusgoku
jesusgoku / ffmpeg.sh
Created May 2, 2018 14:17
Some ffmpeg examples
# Find videos and conver
find . -iname "*.mp4" -mtime -900 -print0 | xargs -n1 -I{} ffmpeg -i {} -c:v libx264 -c:a copy ~/Downloads/GOPRO/{}
find . -iname "*.mp4" -mtime -900 -print0 | xargs -0 -n1 -I{} ffmpeg -i {} -c:v libx264 -c:a copy ~/Downloads/GOPRO/{}
# Testing automatic encoding
ffmpeg /Volumes/Untitled/DCIM/100GOPRO/GOPR0514.MP4 ~/Downloads/GOPRO0514.webm
ffmpeg -i /Volumes/Untitled/DCIM/100GOPRO/GOPR0514.MP4 ~/Downloads/GOPRO0514.webm
ffmpeg -i /Volumes/Untitled/DCIM/100GOPRO/GOPR0514.MP4 ~/Downloads/GOPRO0514.webm