Skip to content

Instantly share code, notes, and snippets.

View Franetse7's full-sized avatar

Francisco Eyram IHOU Franetse7

  • Les leaders étudiants à la créativité de son propre entreprise/programmeur en différentes languages et développeur web/Analyste des donnés de visualisation(DataBase)/Hackviste du hacking professionnel
  • tg-Lomé section BOULEVARD 30 Août
  • 05:15 (UTC -12:00)
  • X @EyramIhou
  • Instagram etseihou
  • Facebook etse.ihou.3
  • LinkedIn in/etse-ihou-4856bb1ba
View GitHub Profile
@Franetse7
Franetse7 / README.md
Created October 4, 2021 07:32 — forked from yorickdowne/README.md
Take over BloxStaking KeyVault instance

/u/settleddown posted some excellent instructions on how to create your own BloxStaking KeyVault instance in AWS and keep it updated yourself.

I've adjusted these instructions to "take over" the existing instance, without needing to spin up an entirely new one. The Python script now prompts the user for the password.

NB: pip3 is very slow on WSL2. This can be resolved by running pip3 install -U keyring, and then mkdir -p ~/.config/python_keyring/ and edit vi ~/.config/python_keyring/keyringrc.cfg and paste into it:

[backend]
default-keyring=keyring.backends.null.Keyring
@Franetse7
Franetse7 / Dockerfile
Created September 10, 2021 17:01 — forked from lcrilly/Dockerfile
NGINX + OpenSSL 3.0
FROM nginx AS build
WORKDIR /src
RUN apt-get update && \
apt-get install -y git gcc make mercurial libperl-dev libpcre3-dev zlib1g-dev libxslt1-dev libgd-ocaml-dev libgeoip-dev
RUN git clone -b openssl-3.0 https://github.com/openssl/openssl openssl-3.0 && \
hg clone https://hg.nginx.org/nginx && \
hg clone http://hg.nginx.org/njs
RUN cd nginx && \
auto/configure `nginx -V 2>&1 | sed "s/ \-\-/ \\\ \n\t--/g" | grep \-\- | grep -ve opt= -e param=` \
@Franetse7
Franetse7 / _app.js
Created September 10, 2021 16:55 — forked from claus/_app.js
Restore scroll position after navigating via browser back/forward buttons in Next.js
import useScrollRestoration from "utils/hooks/useScrollRestoration";
const App = ({ Component, pageProps, router }) => {
useScrollRestoration(router);
return <Component {...pageProps} />;
};
export default App;