I hereby claim:
- I am mina86 on github.
- I am mina86 (https://keybase.io/mina86) on keybase.
- I have a public key whose fingerprint is 7E26 9A63 DD42 D7AE 8973 D8BA 6D91 8535 001C 835C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The Osmosis Installer script is a bit broken and it needs some help to
get working. Most notably, it’ll delete ~/.osmosisd directory and
then complain that it doesn’t exist. Thankfully this is relatively
simple to fix.
cd
curl -sL https://get.osmosis.zone/install > install.py
patch -p1 <<EOF| # -*- coding: utf-8 -*- | |
| """Calculates the current version number. | |
| If possible, uses output of “git describe” modified to conform to the | |
| visioning scheme that setuptools uses (see PEP 386). Releases must be | |
| labelled with annotated tags (signed tags are annotated) of the following | |
| format: | |
| v<num>(.<num>)+ [ {a|b|c|rc} <num> (.<num>)* ] |
| line() { | |
| local line=-------------------- | |
| while [ ${#line} -lt $COLUMNS ]; do | |
| line=$line$line | |
| done | |
| printf "%.$(($COLUMNS - 9))s %(%H:%M:%S)T\\n" "$line" -1 | |
| } |
| #define _GNU_SOURCE | |
| #include <linux/auxvec.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| static unsigned long *getauxv(void) { | |
| char **env = environ; |
| #!/bin/sh | |
| set -eu | |
| do_zip() { | |
| unzip -x "$2" | |
| } | |
| do_rar() { |
| #include <stdio.h> | |
| int main() { | |
| const char *fmt = "#include <stdio.h>%c%cint main() {%c const char *fmt = %c%s%c;%c printf(fmt, 10, 10, 10, 34, fmt, 34, 10, 10, 10, 10);%c return 0;%c}%c"; | |
| printf(fmt, 10, 10, 10, 34, fmt, 34, 10, 10, 10, 10); | |
| return 0; | |
| } |
| #!/bin/sh | |
| # See http://damienix.jogger.pl/2010/12/01/skrypt-bashowy-wyswietlajacy-drzewko-struktury-katalogow/ | |
| clr_dir='\33[1;34m' # Blue | |
| clr_fil='\33[0;33m' # Yellow | |
| clr_rst='\33[0m' # Text Reset | |
| chain() { | |
| # $1 $2 - no change |
| /* | |
| * Oryginal by "ProgramistaBezDoswiadczenia!" | |
| * At this point highly modified. | |
| * See http://hoppke.jogger.pl/2010/01/13/cwiczenie-programistyczne/ | |
| */ | |
| #include <assert.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <pthread.h> |
| #include <stdio.h> | |
| #include <string.h> | |
| int main(void) { | |
| char tmp[128]; | |
| while (scanf(" %128s ", tmp) == 1) { | |
| if (!strcmp("Date:", tmp) && fgets(tmp, sizeof tmp, stdin)) { | |
| fputs(tmp, stdout); | |
| return 0; | |
| } |