Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
set -e
# 查杀/恢复 CleanMyMac 的流氓后台 HealthMonitor
#
# - 执行脚本后,原 HealthMonitor.app 会被备份并被空目录替代,然后杀掉后台进程(你直接杀是杀不净的)。此时 CleanMyMac 主应用也不能运行。
# - 再次执行脚本,则将备份的文件恢复回去,CleanMyMac 则可以正常使用。
#
# NOTE: 如果不是 Setapp 版本,进程名可能不同,需要自行修改下面变量:
@wahyudibo
wahyudibo / default.conf
Last active April 25, 2020 23:13
Install nginx, php 70 (with fpm), and mysql in Mac OS X
server {
listen 80;
server_name localhost;
root /Users/wahyudibo/Projects/mylabs/php/nginx;
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
<a href="http://causeyoucantyouwontandyoudontstop.com/" class="kick-it">Kick it!</a>
@vasilisvg
vasilisvg / kick-it.php
Last active December 21, 2015 11:39
Random song by the Beastie Boys as a Kick It link, instead of wasting your visitors' time with silly social media buttons. Based on the excellent idea by @heejeroen http://twitter.com/heejeroen/status/370199786722705408
<?php
$kickit = array(
'qORYO0atB6g', //Intergalactic
'z5rRZdiu1UE', //Sabotage
'uvRBUw_Ls2o', //Body Movin'
'BptQHAW2T5M', //Shake Your Rump
'eBShN8qT4lk', //(You Gotta) Fight For Your Right (To Party)
'07Y0cy-nvAg', //No Sleep Till Brooklyn
'Xf1YF_MH1xc', //Root Down
'evA-R9OS-Vo', //Fight For Your Right (Revisited)
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active July 24, 2024 15:28
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx