Discover gists
-Xmx6G -Xms6G -XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
- source: https://www.reddit.com/r/feedthebeast/comments/5jhuk9/modded_mc_and_memory_usage_a_history_with_a/
- replace:
-Xmx6G -Xms6G
w/ right amount - along with the latest Java 8 64bits
This file contains 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
# create assets folder in the current project | |
$ mkdir android/app/src/main/assets | |
# create bundle script | |
$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ | |
# execute command to run android to create debug apk | |
$ react-native run-android | |
# change to android folder |
This Python scripts allows you to move your passwords from BitWarden to Apple iCloud.
You need to know:
- It ignores secure notes, credit cards and other types that are not passwords.
- It ignores BitWarden entries without usernames, passwords and URLs.
- It also ignores URLs that do not start with
http://
orhttps://
. - It normalizes all TOTP tokens, e.g.
wskg vtqa h5kl bhb4 v4v2 ybyo woc6 qme2
will be converted tootpauth://totp/example.com:dude@foo.bar?secret=WSKGVTQAH5KLBHB4V4V2YBYOWOC6QME2&issuer=example.com&algorithm=SHA1&digits=6&period=30
.
This file contains 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
-/macro fio-dec system, june 1963 | |
007652 640500 szm=sza sma-szf | |
007652 650500 spq=szm i | |
007652 761200 clc=cma+cla-opr | |
- define senseswitch A | |
- repeat 3, A=A+A | |
- szs A | |
- term | |
- define init A,B | |
- law B |
This file contains 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
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ### | |
# | |
# Officially, this is not recommended. YMMV | |
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/ | |
# | |
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit | |
# | |
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels | |
# |
This file contains 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
<?php | |
/** | |
* Plugin Name: Duplicated Child Term Url Slugs | |
* Description: Duplicate child term urls slugs in hierarchical taxonomies. | |
* Version: 0.1.0 | |
* Author: joshuadnelson | |
* License: GPLv2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html | |
* | |
* This is setup like a plugin, but can be included in a theme or as a class in a plugin. |
This file contains 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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
This file contains 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
""" | |
A simple watchdog for long running processes which may stall for some reason or | |
another. | |
If the main thread hasn't logged progress (by updating | |
``self.last_progress_time``) in WATCHDOG_HARD_KILL_TIMEOUT, the watchdog | |
thread will log an error containing the stack trace of all currently running | |
threads then use ``kill -9`` to kill the main process. | |
Assumes that a process monitor like supervisor or systemd will then restart |
NewerOlder