Skip to content

Instantly share code, notes, and snippets.

@lwe
lwe / brew-services.rb
Created January 5, 2011 13:13
External script for homebrew to simplify starting services via launchctl, out of the box support for any formula which implements #startup_plist.
#!/usr/bin/env ruby -w
# brew-services(1) - Easily start and stop formulas via launchctl
# ===============================================================
#
# ## SYNOPSIS
#
# [<sudo>] `brew services` `list`<br>
# [<sudo>] `brew services` `restart` <formula><br>
# [<sudo>] `brew services` `start` <formula> [<plist>]<br>
anonymous
anonymous / firewall.user
Created May 29, 2017 18:22
OpenWrt map-e (JPNE v6plus) において、割当ポート240個をちゃんと使わせるための設定。
## /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
# Internal uci firewall chains are flushed and recreated on reload, so
# put custom rules into the root chains e.g. INPUT or FORWARD or into the
# special user chains, e.g. input_wan_rule or postrouting_lan_rule.
@spilth
spilth / android-emulator-homebrew.sh
Last active November 14, 2022 17:44
Android Emulator with Homebrew
touch ~/.android/repositories.cfg
brew cask install caskroom/versions/java8
brew cask install android-sdk
brew cask install intel-haxm
brew install qt
export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"
sdkmanager "platform-tools" "platforms;android-27" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;27.0.0" "system-images;android-27;google_apis;x86" "emulator"
avdmanager create avd -n test -k "system-images;android-27;google_apis;x86"
/usr/local/share/android-sdk/tools/emulator -avd test
@francoism90
francoism90 / README.md
Last active September 29, 2024 16:29
Change country to unlock channels, increase TX-power. (Use at your own risk)

Disclaimer

Following instructions are provided without any warranty, and may even get you in trouble legally. The instructions are provided for testing, learning, preventing e-waste, and should be use with care. We (including contributers + commentators) are not responsible for any damage to your device(s) or any legal issues.

Getting Started

Instructions have been moved to https://github.com/francoism90/asus-router. :)

@brodycj
brodycj / android-emulator-homebrew.sh
Last active April 5, 2021 06:09 — forked from spilth/android-emulator-homebrew.sh
Android Emulator with Homebrew
# Recommended prerequisites:
# - Xcode is installed
# - Homebrew is installed - I am using a custom subdirectory as described in:
# - https://superuser.com/questions/1336025/how-should-i-install-homebrew-into-usr-local-subdirectory-manually
# - OpenJDK 8 is installed - here are a couple recommended resources:
# - https://apple.stackexchange.com/questions/349465/how-can-i-upgrade-from-oracle-jdk-8-to-openjdk-8-using-homebrew
# - https://dzone.com/articles/install-openjdk-versions-on-the-mac - good but shows formulae that I did not see
# - brew doctor does not show any issues
# I think this is not needed any more:
@kuwaitbinary
kuwaitbinary / AutoPagerize-Safari.js
Last active July 5, 2024 04:37
AutoPagerize-Safari
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name AutoPagerizes
// @description This is your new userscript, start writing code
// @match *://*.*
// ==/UserScript==
// AutoPagerize
// loading next page and inserting into current page.
// http://autopagerize.net/