Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex| #!/usr/bin/env python3 | |
| ''' | |
| A script to recursively compare two directories (including file size and file hash changes) | |
| Usage: python3 compare_dirs.py DIR1 DIR2 | |
| ''' | |
| import os, sys, hashlib, unicodedata | |
| COMPARE_FILES = True # should file sizes be compared if their names are the same? |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex| #!/bin/bash | |
| ## Remove all local timemachine backups | |
| for i in $(tmutil listlocalsnapshotdates / | awk '{print $1}' | sed -n '1!p' | xargs echo); do tmutil deletelocalsnapshots $i; done |
(NB: adapted from this Ask Ubuntu thread -- tested to work on Ubuntu 16.04 LTS through Ubuntu 22.04 LTS (Jammy).
Unlike using VMWare Tools to enable Linux guest capabilities, the open-vm-tools package doesn't auto-mount shared VMWare folders. This can be frustrating in various ways, but there's an easy fix.
Install open-vm-tools and run:
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
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.
| // OSX | |
| open -na Google\ Chrome --args --disable-web-security --user-data-dir="/tmp/chrome_dev" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- Copy under /Library/LaunchDaemons and issue sudo launchctl load /Library/LaunchDaemons/fix-el-capitan-slow-time-machine-speed.plist --> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>fix-el-capitan-slow-time-machine-speed</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/sbin/sysctl</string> |
| #!/bin/bash | |
| if [[ $EUID -ne 0 ]]; then | |
| echo -e " | |
| ROOT PRIVILEDGES NEEDED! | |
| You have to run this script as root. | |
| Aborting... | |
| " | |
| exit 1 | |
| else |
| 10.3 (Panther): | |
| https://swscan.apple.com/scanningpoints/scanningpointX.xml | |
| 10.4 (Tiger): | |
| https://swscan.apple.com/content/catalogs/index.sucatalog | |
| https://swscan.apple.com/content/catalogs/index-1.sucatalog | |
| 10.5 (Leopard): | |
| https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog |