Skip to content

Instantly share code, notes, and snippets.

@mkf
mkf / example-for-percentcurrent.txt
Last active August 29, 2015 14:09
example command for percentcurrent.py
./percentcurrent.py -ap 6289597 -uniqvis 816 -seer 53 -hack 9082 -depl 13871 -link 3396 -field 1180 -rech 6105001 -capt 1440 -uniqcapt 521 -destr 8970 -destrlink 1444 -destrfield 656 -guard 125 -edit 7 -photo 84 -bronze 3 -silver 6 -gold 1 -platinum 1 -onyx 0
@mkf
mkf / exampleresult-ingressmedal
Last active August 29, 2015 14:09
Example result of ingressmedal as for commit 5dd086537e75d1837cd5546201c4e96791612e46
Total AP: 6289597
Description AP Percent of total AP
-------------------------------------------------------------------------------- ------- ---------------------
Control Fields created 1475000 23.4514%
Links created 1062948 16.9001%
Capturing portals + first resonator 900000 14.3093%
Sure points from upgrading and deployment of resonators except the capturing res 808015 12.8468%
Destroyed resonators 672750 10.6962%
Enemy Control Fields destroyed 492000 7.8224%
Enemy links destroyed 270028 4.2932%
@mkf
mkf / profile_20141020_220920_5.png.txt
Last active August 29, 2015 14:09
http://i.imgur.com/mjO7kX6.png processed by 'tesseract -psm 6' — Incorrectly recognized digits
- lVENTORY AGENT INTEL MISSIONS
/=\\ ArchieT ‘C
I I LVL 10
\—/ 5,131,555 AP I6,000,000 AP
LVL11 Reg: 0 6/6 Q 2/4
K35 /@
@ £32 5»
4: \/
I»_.\-(3/.,«\
\"éy§"/
@mkf
mkf / sudo-easy_install-PIL---onOSX10.9.5.txt
Last active August 29, 2015 14:10
gietwenti:~ mf$ sudo easy_install PIL — crashes on OS X 10.9.5
gietwenti:~ mf$ sudo easy_install PIL
Searching for PIL
Reading http://pypi.python.org/simple/PIL/
Reading http://effbot.org/downloads/#Imaging
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://www.pythonware.com/products/pil
Best match: PIL 1.1.7
Downloading http://effbot.org/media/downloads/PIL-1.1.7.tar.gz
Processing PIL-1.1.7.tar.gz
Running PIL-1.1.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-yWNagN/PIL-1.1.7/egg-dist-tmp-OP9syL
@mkf
mkf / ArchieT.key
Last active August 29, 2015 14:23
My GnuPG public key
pub 2048R/88A50062
Michał Krzysztof Feiler (ArchieT) <feiler.michal@mensa.org.pl>
72A3 D939 ECA2 67FB 0096 8F4B 8179 43C5 88A5 0062
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFV65vUBCADF8K4DDVH7lAYCwwK9J0LfCBtWHUqVi0fQxWhPS216yfrDXOVS
uQ9o/Kpa0Ytf1FvThSfLF0o/Gp7K56u5it22NOZWTZGJKMZV5dmGWUCBcmleL+5H
@mkf
mkf / img
Last active August 29, 2015 14:24
A simple script for displaying images in terminal
#!/bin/bash
#
# z3bra -- 2014-01-21
# modified by ArchieT 2015-07-04
test -z "$1" && exit
test -z "$2" && x=5
test -z "$2" || x=$2
test -z "$3" && y=20
test -z "$3" || y=$3
@mkf
mkf / .i3blocks.conf
Created July 18, 2015 16:50
My .i3blocks.conf and /usr/libexec/i3blocks/network
# ArchieT's i3blocks config file
# state as of 2015-07-18
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
@mkf
mkf / .vimrc
Last active August 29, 2015 13:45
" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
" /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing archlinux.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages.
Catched FileNotFoundException: /usr/share/geogebra/gluegen-rt-natives-linux-armv6hf.jar (Nie ma takiego pliku ani katalogu), while addNativeJarLibsImpl(classFromJavaJar class com.jogamp.common.os.Platform, classJarURI jar:file:/usr/share/geogebra/gluegen-rt.jar!/com/jogamp/common/os/Platform.class, nativeJarBaseName gluegen-rt-natives-linux-armv6hf.jar): [ file:/usr/share/geogebra/gluegen-rt.jar -> file:/usr/share/geogebra/ ] + gluegen-rt-natives-linux-armv6hf.jar -> slim: jar:file:/usr/share/geogebra/gluegen-rt-natives-linux-armv6hf.jar!/
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /home/mf/libgluegen-rt.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(Unknown Source)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(Unknown Source)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(Unkn
@mkf
mkf / keybase.md
Created September 22, 2015 17:50

Keybase proof

I hereby claim:

  • I am archiet on github.
  • I am archiet (https://keybase.io/archiet) on keybase.
  • I have a public key whose fingerprint is 72A3 D939 ECA2 67FB 0096 8F4B 8179 43C5 88A5 0062

To claim this, I am signing this object: