ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Add PATH to ~/.bash_profile
and ~/.zshrc
export PATH=/usr/local/bin:$PATH
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
using System; | |
using System.IO; | |
using System.Reflection; | |
using ICVT.JPEGMini.Common; | |
namespace JpegMini.Crack.Runtime | |
{ | |
public static class OnStartup | |
{ | |
public static void Run() |
#!/usr/bin/env bash | |
# Reset routing table on OSX | |
# display current routing table | |
echo "********** BEFORE ****************************************" | |
netstat -r | |
echo "**********************************************************" | |
for i in {0..4}; do | |
sudo route -n flush # several times |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
A simple script that resets latest MAMP PRO 4 trial validity, and keeps your data safe.
chmod +x
then drag and drop the file on the Terminal. You should have something like chmod +x reset_mamp4.sh
. Press Enter to run it.reset_mamp4.sh
) then pressing Enter.# Reliable persistent SSH-Tunnel via systemd (not autossh) | |
# https://gist.github.com/aslafy-z/24e2ddb02fa269444620eab1bcfe2932#file-serveo-tunnel-service | |
# | |
# Usage: systemctl start serveo-tunnel@[tunnel-string] (see https://serveo.net for details) | |
# systemctl start serveo-tunnel@mytunnel:80:localhost:8080 | |
# systemctl enable serveo-tunnel@mytunnel:80:localhost:8080 (to make it persist reboot) | |
[Unit] | |
Description=Serveo tunnel for %i | |
After=network.target |
btrfs fi show -d | |
(/dev/mapper/vg1000-lv) | |
syno_poweroff_task -d | |
(or: umount /volume1) | |
(or2: umount /volume1 -f -k) | |
Check to see if all us unmounted: | |
df -h |
This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.
The script will create backups using tar
with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.
To create backup script that will be executed every day we can create backup script in /etc/cron.daily/
folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:
touch /etc/cron.daily/pvehost-backup
// Hack to exclude arm64 when building Mac Catalyst in Xcode 12.2 | |
// If this is not set and we do not set macosx as SUPPORTED_PLATFORMS, then selecting Mac as target forces arm64. | |
// This can be worked around by setting ONLY_ACTIVE_ARCH to NO (slow) or using the EXCLUDED_ARCHS trick | |
// Inspired by https://github.com/Carthage/Carthage/issues/3019 | |
EXCLUDED_ARCHS__IS_MACCATALYST_YES__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8 | |
EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__IS_MACCATALYST_$(IS_MACCATALYST)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)) |