Skip to content

Instantly share code, notes, and snippets.

@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active August 8, 2025 01:13
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@vdsabev
vdsabev / download.js
Last active January 6, 2025 04:41
Bookmarklet - download all links on a page
javascript:(() => {
const items = document.querySelectorAll('a');
let delay = 0;
for (let index = 0; index < items.length; index++) {
const item = items[index];
item.setAttribute('download', item.getAttribute('href'));
setTimeout(() => item.click(), delay);
delay += 500;
}
})();
@GAS85
GAS85 / aria2c_webUI.md
Last active July 8, 2024 00:16
Aria2 + Ubuntu 18.04 + Apache2 + Web UI
OS: Ubuntu 18.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 192.168.0.111
Your local IP network is 192.168.0.0/24

Aria 2

1. Installation

Install aria2 package:

@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active August 9, 2025 19:50
crack activate Office on mac with license file
@AnoRebel
AnoRebel / Kali-WSL.sh
Created May 19, 2018 08:52
Installing Kali-Xfce on WSL
=| Kali Linux on Win 10 |=
[First Install]
sudo cat /etc/issue
sudo apt-get update
sudo apt-get dist-upgrade (y)
sudo apt-get install webshells [you may need to allow access via defender / smartscreen]
sudo apt-get clean
sudo apt-get install webshells [re-do if first time blocked by defender / smartscreen]
@george-hopkins
george-hopkins / HOWTO.md
Created June 14, 2018 09:34
Booting GParted Live with pixiecore

Booting GParted Live with pixiecore (PXE)

  • go get go.universe.tf/netboot/cmd/pixiecore
  • Download gparted-live-*.zip and extract the archive
  • sudo pixiecore boot ./live/vmlinuz ./live/initrd.img --cmdline='boot=live config components union=overlay username=user noswap noeject ip= vga=788 fetch={{ ID "./live/filesystem.squashfs" }}&amp;_=fs.squashfs'
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active August 11, 2025 04:53
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@Belphemur
Belphemur / generate-client.sh
Last active October 20, 2021 22:14
Generate a new client configuration for WireGuard
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "$0 client-name"
exit 1
fi
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active August 10, 2025 13:25
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@robsouth84
robsouth84 / $PS - pull all apks from adb
Created October 23, 2019 02:37
Some PowerShell one liners to pull apks from a Android device with adb
//find all apps NOT in /data and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ " | ForEach-Object { adb pull $_ }
//find all apps NOT in /data && NOT in /vendor (likely no access) and pull to current dir
$ adb shell "pm list packages -f | cut -d':' -F2 | cut -d'=' -F1 | grep apk$ | grep -v ^\/vendor" | ForEach-Object { adb pull $_ }
//find all apps in /data and pull to current dir
//this will pull entire package folder not just apk. first this was out of convienience when parsing the strings, but turns out you get some intersting binaries along the way. see facebook for example
$ adb shell "pm list packages -f | cut -d':' -F2 | grep ^\/data | cut -sd 'base.apk' -F1 " | ForEach-Object { adb pull $_ }