Skip to content

Instantly share code, notes, and snippets.

View lokst's full-sized avatar

Stella Lok lokst

View GitHub Profile
@heug
heug / README
Last active January 14, 2020 06:53
Hautelook debug
# Hautelook experienced an outage where their services crashed overnight (no particular elevated build volume.
# They attempted a restart and received errors such as:
### - Timeout waiting for event Migrator Finished - VM Service
### - Timeout waiting for event Migrator Finished - Permissions Service
### - Timeout waiting for event Postgresql 9.4 ready-5432
#
# Weirdly enough, the container logs for each of those looked to be just fine. Replicated logs would show the timeout errors, however.
# Doing the Replicated dance did not fix the issue, so I had them nuke all existing images and containers and reinstall Replicated.
# Good to reassure them that no data will be destroyed through all this.
anonymous
anonymous / GAME_MASTER_POKEMON_v0_2.tsv
Created July 16, 2016 19:26
Pokemon from GAME_MASTER protobuf file v0.2 in a .tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 27 columns, instead of 12 in line 2.
PkMn BaseStamina BaseAttack BaseDefense Type1 Type2 BaseCaptureRate BaseFleeRate CollisionRadiusM CollisionHeightM CollisionHeadRadiusM MovementType MovementTimerS JumpTimeS AttackTimerS QuickMoves CinematicMoves AnimTime Evolution EvolutionPips PokemonClass PokedexHeightM PokedexWeightKg HeightStdDev WeightStdDev FamilyId CandyToEvolve
1 90 126 126 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.1599999964237213 0.10000000149011612 0.3815000057220459 0.6539999842643738 0.27250000834465027 HoloPokemonMovementType.POKEMON_ENC_MOVEMENT_JUMP 10.0 1.149999976158142 29.0 d601dd01 5a3b76 6d56d53fdaac2a3f6d56d53f93a9ea3f0000000036ab0a403333b33fbfbbbb3f 02 HoloPokemonClass.POKEMON_CLASS_NORMAL 1 0.699999988079071 6.900000095367432 0.08749999850988388 0.862500011920929 HoloPokemonFamilyId.V0001_FAMILY_BULBASAUR 25
2 120 156 158 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.07999999821186066 0.07000000029802322 0.3187499940395355 0.637499988079071 0.2549999952316284 H
@HybridEidolon
HybridEidolon / 01-guide.md
Last active February 12, 2025 22:40
Minecraft modding for competent Java programmers

Minecraft Forge New Mod Guide

Make sure you have Gradle installed and in your path, so you can run it from command line. Otherwise, you should copy a bootstrapper and the gradle jar into your project.

Use this template build.gradle (for the MC 1.8 unstable branch) for your gradle script:

@MaerF0x0
MaerF0x0 / gist:7242600
Created October 31, 2013 00:22
Meteor publish and approximate SQL
Meteor.publish(
'scores',
function() {
return Scores.find(
{score:{$gt:100}},
{
fields: {user:1,score:1},
sort:{score:-1},
limit:10,
skip:pageNumber*pageSize
@ryanmcgrath
ryanmcgrath / JapaneseRegex.js
Last active March 22, 2025 05:58 — forked from sym3tri/JapaneseRegex.js
Regex to test for presence of Japanese characters
// REFERENCE UNICODE TABLES:
// http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml
// http://www.tamasoft.co.jp/en/general-info/unicode.html
//
// TEST EDITOR:
// http://www.gethifi.com/tools/regex
//
// UNICODE RANGE : DESCRIPTION
//
// 3000-303F : punctuation