# Forked from https://gist.github.com/gguerini
# Syntax edits by Sick Codes (GPLv3+)
# Disable menu bar transparency
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
# Show remaining battery time; hide percentage
defaults write com.apple.menuextra.battery ShowPercent -string "NO"
defaults write com.apple.menuextra.battery ShowTime -string "YES"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/Rakashazi/emu-ex-plus-alpha | |
| #1. WSL中安装 ubuntu 20.04, 但make无法使用文件内的相对路径,所以需要手动添加include | |
| # 如: imagine/bundle/all/src/boost/android-armv7.mk : | |
| # ../../ -> include ../../ | |
| #2. gradle无法识别相对路径,每个模拟器代码需要做如下变更: | |
| # 如: GBA.emu/res/android/proguard.cfg内: | |
| # ../../../EmuFramewor -> @<imagine.path>/../EmuFramework | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import sys, os, shutil, zipfile | |
| import xml.etree.ElementTree as xmlDoc | |
| from enum import Enum | |
| ignoreFiles = ['R.txt', 'proguard.txt'] | |
| def log(LEVEL, msg): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Skip to content | |
| Search… | |
| All gists | |
| Back to GitHub | |
| @thilong | |
| @gdavis gdavis/gist:6670468 | |
| Last active 14 hours ago • Report abuse | |
| 372 | |
| 116 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| class Label: UILabel { | |
| var contentInset: UIEdgeInsets = .zero { | |
| didSet { | |
| invalidateIntrinsicContentSize() | |
| setNeedsLayout() | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Compile SDL2 from source | |
| Christer Solskogen edited this page 21 days ago · 31 revisions | |
| Note - If you are running on Raspbian Buster Desktop | |
| The instructions below are no longer needed with the latest version of Raspbian Buster, if you are running under the full Desktop. You can just install the SDL2 packages from the official repository in that case, using the following: | |
| sudo apt install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev | |
| If you want to run the SDL2 version on the Raspberry Pi, you currently need to compile SDL2 from source in order to get support for launching full screen applications from the console. Unfortunately, the version bundled with Buster is not compiled with support for the "kmsdrm" backend, so it only works under X11 (which may be fine for you, but keep in mind that you'll might have some lower performance). | |
| Important note: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| search for /usr/share/automake*/config.guess | |
| check the latest version of automake | |
| $ which automake | |
| $ automake --version | |
| find the appropriate automake folder in /usr/share/automake.*/config.guess | |
| replace config.guess from your build tree with /usr/share/automake.*/config.guess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var V2Ray = "SOCKS5 127.0.0.1:1081; SOCKS 127.0.0.1:1081; DIRECT;"; | |
| var hostExps = [ | |
| "redd*it*", | |
| "s3.amazonaws*" | |
| ]; | |
| var domains = [ | |
| "github.com", | |
| "live.com", | |
| "s3.amazonaws.com", | |
| "vpngate.net", |