This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "https://rpc-mumbai.maticvigil.com" | |
try: | |
response = requests.post(url, json={"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}) | |
if response.status_code == 200 and "result" in response.json(): | |
print("RPC is operational.") | |
print(response.json()) | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source $HOME/.bashrc | |
TZ=Africa/Casablanca | |
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y sudo nano wget tar zip unzip jq goxkcdpwgen ssh nginx build-essential git make gcc nvme-cli pkg-config libssl-dev libleveldb-dev clang bsdmainutils ncdu libleveldb-dev apt-transport-https gnupg2 cron | |
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config | |
(echo ${my_root_password}; echo ${my_root_password}) | passwd root | |
service ssh restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am nfl0 on github. | |
* I am naoufal (https://keybase.io/naoufal) on keybase. | |
* I have a public key ASAVv-4C6nesoQ9hHgvj46_8uBkydMmKU08Q0I7Tc91jOwo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony. | |
The following are my contribution signatures: | |
Circuit: semaphore21 | |
Contributor # 311 | |
Hash: 7210d77e 2a58c23f 6b191f9b ddcd1219 | |
4b1b2d27 b94d7d37 ab4d9351 07004cb6 | |
e8b304e8 6a09e114 02103d9d 2b74f156 | |
424ea978 f2ae9828 da863a46 ad43ea54 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# Filename: /etc/X11/xorg.conf | |
# Purpose: config file for xserver | |
# See also: | |
# /usr/share/doc/xserver-xorg/ and | |
# http://wiki.x.org/wiki/Home and | |
# http://ftp.x.org/pub/X11R7.0/doc/html/index.html for information on Xorg | |
# Refer to the xorg.conf man page and to | |
# http://ftp.x.org/pub/X11R7.0/doc/html/xorg.conf.5.html | |
# for details about the format of this file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### config.yml ##### | |
email: | |
username: [email protected] | |
password: roddy2023 | |
imap_host: imap.gmail.com | |
imap_port: 993 | |
##### end of config.yml ##### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following packages cause the filesystem to crash (sd card read/write): | |
* libraspberrypi-dev | |
* libraspberrypi-[bin, dev, doc] | |
* libx11-data | |
* raspberrypi-kernel | |
patch/hack: | |
apt-mark hold libraspberrypi-dev libraspberrypi-bin libraspberrypi-doc libx11-data raspberrypi-kernel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set interval | |
var tid = setInterval(mycode, 5000); | |
var locs=["hi","MA"]; //3 | |
var arr = ["nfl0π","nfl0π"]; | |
var n; | |
function askForApproval() { | |
if (Notification.permission === "granted") { | |
createNotification('POAP', 'POAP'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xml xmlns="https://developers.google.com/blockly/xml"><block type="BaseContractType" id="root_contract" deletable="false" x="13" y="187"><statement name="BaseContractType"><block type="WhenContractType" id="SAr-2:LHYxXf]+poLeB_"><field name="timeout">15</field><statement name="case"><block type="DepositActionType" id="KXgd):JV@/[t.1mO/w]S"><value name="from_party"><block type="RolePartyType" id="bDNleYN[HH/Vd}@loLT6"><field name="role">party1</field></block></value><value name="value"><block type="ConstantValueType" id="^m(`]We5*IKQJ5}!}k-R"><field name="constant">500</field></block></value><value name="token"><block type="AdaTokenType" id="49(_r^o?gB}2T!EY0R)R"/></value><value name="party"><block type="RolePartyType" id="HAt=vl.Y2M)m-eH@x*rT"><field name="role">party1</field></block></value><statement name="contract"><block type="WhenContractType" id="-J[mM%::`de@%(nxfLCi"><field name="timeout">20</field><statement name="case"><block type="DepositActionType" id="dRTEeBB`M=Gl==hKqwXk"><value name="from_party |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xml xmlns="https://developers.google.com/blockly/xml"><block type="BaseContractType" id="root_contract" deletable="false" x="13" y="187"><statement name="BaseContractType"><block type="PayContractType" id="4UGseRf#`r*AXQ8W8?U+"><value name="payee"><block type="AccountPayeeType" id="Q?a?ic-,esSR-4`ogpQ}"><value name="party"><block type="PKPartyType" id="9z?kxOYJ.its_EMddJHd"><field name="pubkey">addr1q8zkr939nxkul4nnfwdnj7nungeuujpqlk75uy0rxw5ruqujfsxx4s2ycuxm5629natextfld9cs54ms47carfk8r74qa2m2xa</field></block></value></block></value><value name="value"><block type="ConstantValueType" id="F(^N0I+2@|0*nuX4u/58"><field name="constant">20</field></block></value><value name="token"><block type="AdaTokenType" id="jPU1%=1Vp7(nUEK#Ta=f"/></value><value name="party"><block type="PKPartyType" id="KRo^:d~M8Uy/G=qRxq!3"><field name="pubkey">addr1q93lwgqtzgwfpeu0h7trmjn2r347w4unney7xwqygnrc5cujfsxx4s2ycuxm5629natextfld9cs54ms47carfk8r74qhxf4q8</field></block></value></block></statement></block></xml> |