Skip to content

Instantly share code, notes, and snippets.

View edwardyunghk01's full-sized avatar

edwardyunghk01 edwardyunghk01

View GitHub Profile

Enable macOS Server Performance Mode

Performance mode changes the system parameters of your Mac. These changes take better advantage of your hardware for demanding server applications.

A Mac with macOS Server that needs to run high-performance services can turn on performance mode to dedicate additional system resources for server applications. Note, however, that performance mode can be enabled even without macOS Server being installed to achieve similar benifits for other high-performance services.

sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"
sudo reboot

Reference: https://support.apple.com/en-us/HT202528.

@sam0737
sam0737 / by.java
Created March 17, 2018 19:43
HSBC Payme Root Detection
package com.cherrypicks.hsbcpayme.Manager;
import android.content.Context;
import android.os.Build;
import com.cherrypicks.hsbcpayme.model.util.C1764b;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
public class by {
@dan-palmer
dan-palmer / swap-commands.txt
Created July 10, 2012 09:24
Enable Disable OSX Swap etc
# check swap usage
sysctl vm.swapusage
# disable encrypted swap - SNOW LEOPARD
sudo defaults write /Library/Preferences/com.apple.virtualMemory UseEncryptedSwap -boolean no
# disable encrypted swap - LION
sudo defaults write /Library/Preferences/com.apple.virtualMemory DisableEncryptedSwap -boolean yes
# disable swap