Skip to content

Instantly share code, notes, and snippets.

View remyroy's full-sized avatar

Rémy Roy remyroy

View GitHub Profile
@remyroy
remyroy / compile.py
Created December 5, 2016 18:55
Cataclysm DDA: Survey Compilation Script
import csv
from ascii_graph import Pyasciigraph
from collections import OrderedDict
def lchoices(choices):
return map(lambda x: (x, 0), choices)
def main():
questions = OrderedDict()
@remyroy
remyroy / make-new-hampshire.sh
Created May 18, 2018 04:32
Create Garmin maps from OSM+SRTM data
#!/usr/bin/env bash
# MAPID and CMAPID must be unique, my Garmin device only loads 1
MAPID=5121
CMAPID=5131
REMOTEPBF=new-hampshire-latest.osm.pbf
REMOTEPBFURL=https://download.geofabrik.de/north-america/us/$REMOTEPBF
REMOTEPOLY=new-hampshire.poly
REMOTEPOLYURL=https://download.geofabrik.de/north-america/us/$REMOTEPOLY
MAPDESCRIPTION="New Hampshire"
running freeze
running compile_catalog
compiling catalog cddagl\locale\en\LC_MESSAGES\cddagl.po to cddagl\locale\en\LC_MESSAGES\cddagl.mo
compiling catalog cddagl\locale\fr\LC_MESSAGES\cddagl.po to cddagl\locale\fr\LC_MESSAGES\cddagl.mo
compiling catalog cddagl\locale\it\LC_MESSAGES\cddagl.po to cddagl\locale\it\LC_MESSAGES\cddagl.mo
compiling catalog cddagl\locale\ja\LC_MESSAGES\cddagl.po to cddagl\locale\ja\LC_MESSAGES\cddagl.mo
compiling catalog cddagl\locale\ru\LC_MESSAGES\cddagl.po to cddagl\locale\ru\LC_MESSAGES\cddagl.mo
wrote C:\Users\R�my Roy\Projects\CDDA-Game-Launcher\launcher.spec
now run pyinstaller.py to build the executable
95 INFO: PyInstaller: 3.5.dev0+51429f8fc
@remyroy
remyroy / xref-main.html
Created August 5, 2019 14:40
xref file for pyinstaller issue #4263
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>modulegraph cross reference for main.py, pyi_rth_pkgres.py</title>
<style>
.node { padding: 0.5em 0 0.5em; border-top: thin grey dotted; }
.moduletype { font: smaller italic }
.node a { text-decoration: none; color: #006699; }
.node a:visited { text-decoration: none; color: #2f0099; }
@remyroy
remyroy / fr_CA.diff
Created April 8, 2020 14:42
fr locale diff with fr_CA
diff -r C:\Users\Rémy Roy\Desktop\fr.txt C:\Users\Rémy Roy\Desktop\fr_CA.txt
3,20c3,4
< fr{
< AuxExemplarCharacters{"[á å ä ã ā ć ē í ì ī ij ñ ó ò ö õ ø ř š ſ ß ú ǔ]"}
< Ellipsis{
< final{"{0}…"}
< initial{"… {0}"}
< medial{"{0}… {1}"}
< word-final{"{0}…"}
< word-initial{"… {0}"}
Exception 0xc0000005 0x8 0x63 0x63
PC=0x63
runtime: unknown pc 0x63
stack: frame={sp:0xc0230d58d8, fp:0x0} stack=[0xc0230d2000,0xc0230d6000)
000000c0230d57d8: 00007ffc632b19c0 0000000000000007
000000c0230d57e8: 0000000000001804 000000c0ff857460
000000c0230d57f8: 0000000000000001 000000c0ff857448
000000c0230d5808: 000000c0ff8574d0 000000c0ff857418
000000c0230d5818: 0000000000000000 000000000043c3c5 <runtime.gopark+245>
$ geth.exe --nousb --ipcdisable --verbosity 1 --light.serve 10 console
Welcome to the Geth JavaScript console!
instance: Geth/v1.9.13-stable-cbc4ac26/windows-amd64/go1.14.2
at block: 10020428 (Thu May 07 2020 13:25:31 GMT-0400 (EDT))
datadir: C:\Users\Rémy Roy\AppData\Roaming\Ethereum
modules: admin:1.0 debug:1.0 eth:1.0 ethash:1.0 les:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0
> web3.eth.getBlock('latest')
{
@remyroy
remyroy / gist:20e5f08ca9bd84dca90b21ac87f35fd9
Created May 15, 2020 15:41
Geth/v1.9.14 random crash
$ geth.exe --txlookuplimit 100 --nousb --ipcdisable --verbosity 1 console
Welcome to the Geth JavaScript console!
instance: Geth/v1.9.14-stable-6d74d1e5/windows-amd64/go1.14.2
at block: 10065582 (Thu May 14 2020 13:17:56 GMT-0400 (EDT))
datadir: C:\Users\Rémy Roy\AppData\Roaming\Ethereum
modules: admin:1.0 debug:1.0 eth:1.0 ethash:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0
> ERROR[05-14|18:38:33.481] Demoting invalidated transaction hash="eaeb39…85b2ac"
ERROR[05-14|18:38:33.487] Demoting invalidated transaction hash="7c3b68…36ae93"
### Keybase proof
I hereby claim:
* I am remyroy on github.
* I am remyroy (https://keybase.io/remyroy) on keybase.
* I have a public key ASBJTSdchH2siDrkf5J-jFUmZ0_sBKhyY9PPe_mKyobJUAo
To claim this, I am signing this object:
@remyroy
remyroy / txt
Created August 22, 2020 00:11
java.lang.NullPointerException in com.buuz135.industrial.tile.world.FluidPumpTile.work(FluidPumpTile.java:101)
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 2020-08-21 20:02:35 EDT
Description: Ticking block entity
java.lang.NullPointerException
at com.buuz135.industrial.tile.world.FluidPumpTile.work(FluidPumpTile.java:101)
at com.buuz135.industrial.tile.WorkingAreaElectricMachine.performWork(WorkingAreaElectricMachine.java:112)
at net.ndrei.teslacorelib.tileentities.ElectricMachine.protectedUpdate(ElectricMachine.kt:280)