Skip to content

Instantly share code, notes, and snippets.

View ofou's full-sized avatar
🚀
Launching

Omar Nomad ofou

🚀
Launching
View GitHub Profile
@ofou
ofou / unihan.csv
Created March 27, 2023 08:16
Unicode 15 Unihan with definitions
We can't make this file beautiful and searchable because it's too large.
char,freq,name,definition,pinyin
的,7.79,U+7684,"possessive, adjectival suffix",de
是,7.17,U+662F,"indeed, yes, right; to be; demonstrative pronoun, this, that",shì
在,7.16,U+5728,"be at, in, on; consist in, rest",zài
了,7.14,U+4E86,to finish; particle of completed action,le
我,6.95,U+6211,"our, us, i, me, my, we",wǒ
和,6.86,U+548C,"harmony, peace; peaceful, calm",hé
有,6.83,U+6709,"have, own, possess; exist",yǒu
不,6.76,U+4E0D,"no, not; un-; negative prefix",bù
人,6.74,U+4EBA,man; people; mankind; someone else,rén
@ofou
ofou / characters_freq.csv
Last active March 27, 2023 02:26
HSK 2021 with frequency
index level character pinyin
7.79 一级 de
7.79 四级
7.79 二级
7.17 一级 shì
7.16 一级 zài
7.14 三级 liǎo
7.14 一级 le
6.95 一级
6.86 一级
@ofou
ofou / scripts...tarea.sol
Created December 13, 2022 04:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.17+commit.8df45f5f.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
pragma experimental ABIEncoderV2;
interface MyTokenInterfaces {
function totalSupply() external view returns (uint256);
function balanceOf(address _tokenOwner) external view returns (uint256);
@ofou
ofou / servers.csv
Created April 11, 2021 06:15
List of servers to test speedtest-cli
We can't make this file beautiful and searchable because it's too large.
Country,City,Provider,Host,ID
Abkhazia,Sukhum,Aquafon GSM,62.182.8.78:8080,9058
Abkhazia,Sukhum,"Systema, LTD",cyxym.net:8080,5089
Abkhaziya,Sukhum,A-Mobile,speedtest.a-mobile.biz:8080,9714
Afghanistan,Herat,Afghan Wireless,hrtspeedtest.afghan-wireless.com:8080,9622
Afghanistan,Kabul,Afghan Telecom,sp1.afghantelecom.af:8080,11019
Afghanistan,Kabul,etisalat Afghanistan,speedtest.etisalat.af:8080,21807
Afghanistan,Kabul,Afghan Wireless,speedtest.afghan-wireless.com:8080,5189
Afghanistan,Kabul,Afghan Wireless Communication Company,kdzspeedtest.afghan-wireless.com:8080,13501
Afghanistan,Kabul,Insta Telecom,speedtest.instatelecom.com:8080,12798
@ofou
ofou / live.txt
Created March 15, 2021 02:06
Ableton Live Crash
Process: Live [45049]
Path: /Applications/Ableton Live 11 Trial.app/Contents/MacOS/Live
Identifier: com.ableton.live
Version: 11.0 [2021-02-08_9dc150af94] (11.0 [2021-02-08_9dc150af94])
Code Type: X86-64 (Translated)
Parent Process: ??? [1]
Responsible: Live [45049]
User ID: 501
Date/Time: 2021-03-14 23:03:36.784 -0300
@ofou
ofou / keys.sh
Created November 15, 2020 04:33
Add SSH Public Key to Server Manually adapted from linuxhandbook.com
# get the key you want to use
cat ~/.ssh/id_rsa.pub
# it will show you your public key (here's mine)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCuaNEn5FIUac+j/BxTbB25eCPo9bMkpccyshA/8ZzcPmfiQevcvy506Luw4RwzApMnDewp5sYyxHiOowLbnXp3u4/+QaIgmgvgPOz34tQOj9RhRgMNtgqg1kzhfcI44DmPy3NLddesBUBJ9i3wrMkJVWQfy5YlAhp88yxiR3Ji4MWaFeIM5RP29FN3z+k+P9fB6AxEuOV2/wiCeJsivq3rY0JNLYSvw0l/w9uBk+k7hAyYaZsVmB7ThgKQm65vRWllJp7KAYIRoIfblKHUqytwLBlnDQR3PHLEGMbPa0LMEbA+IjKhSxHRulqZxIXC6LkiqZzG2vPA9/tmbkyzmFQ+Dx1yl/Q8AicH90WOD4TKUAahcd8225PkAgrOavAXq0RTE24jUkG9v3LANW4LZf5UIWShZy27mvCgiUgaZsBaodVaz9pcJT6/5WqmBQKr68mUUIqWDLhuk4z3NqrQtak7zaJ4G/Ttsdu1D/ihCZcT9PeuZpThytSqSGdlFmZ/sDC+K1T6AQ8S6DMcdiiBQHV0+3GoYj1QmRTIYu3t5Ms+vm/TxX1L7AT4IyHRQcLbrmIXtV+R2REyUwDHZ1Lnbp6gtCG2yXQ2oyy11+AZ7CiAINXwBCVqFsCcNz/TpS06pGI9KWrCAzPNig9ZzlrbjElA+FrSUJcpYbpWCPxWPbqj3Q== [email protected]
# Create ssh directory in the user’s home directory (as a sysadmin)
mkdir -p /home/user_name/.ssh && touch /home/user_name/.ssh/authorized_keys
# Now open this /home/user_na
@ofou
ofou / keybase.md
Last active January 5, 2021 04:50

Keybase proof

I hereby claim:

  • I am ofou on github.
  • I am ofou (https://keybase.io/ofou) on keybase.
  • I have a public key whose fingerprint is 7E6E 446E AF5F 2CFD 58CA 2904 D77B EAEA B566 B0EE

To claim this, I am signing this object:

@ofou
ofou / worldcities.csv
Created April 7, 2020 02:07
World cities taken from Kaggle
We can't make this file beautiful and searchable because it's too large.
"city","city_ascii","lat","lng","country","iso2","iso3","admin_name","capital","population","id"
"Malishevë","Malisheve","42.4822","20.7458","Kosovo","XK","XKS","Malishevë","admin","","1901597212"
"Prizren","Prizren","42.2139","20.7397","Kosovo","XK","XKS","Prizren","admin","","1901360309"
"Zubin Potok","Zubin Potok","42.9144","20.6897","Kosovo","XK","XKS","Zubin Potok","admin","","1901608808"
"Kamenicë","Kamenice","42.5781","21.5803","Kosovo","XK","XKS","Kamenicë","admin","","1901851592"
"Viti","Viti","42.3214","21.3583","Kosovo","XK","XKS","Viti","admin","","1901328795"
"Shtërpcë","Shterpce","42.2394","21.0272","Kosovo","XK","XKS","Shtërpcë","admin","","1901828239"
"Shtime","Shtime","42.4331","21.0397","Kosovo","XK","XKS","Shtime","admin","","1901598505"
"Vushtrri","Vushtrri","42.8231","20.9675","Kosovo","XK","XKS","Vushtrri","admin","","1901107642"
"Dragash","Dragash","42.0265","20.6533","Kosovo","XK","XKS","Dragash","admin","","1901112530"
Country Capital City Latitude Longitude Population Capital Type
Afghanistan Kabul 34.5289 69.1725 4011770 Capital
Albania Tiranë (Tirana) 41.3275 19.8189 475577 Capital
Algeria El Djazaïr (Algiers) 36.7525 3.0420 2693542 Capital
American Samoa Pago Pago -14.2781 -170.7025 48526 Capital
Andorra Andorra la Vella 42.5078 1.5211 22614 Capital
Angola Luanda -8.8368 13.2343 7774200 Capital
Anguilla The Valley 18.2170 -63.0578 1402 Capital
Antigua and Barbuda St. John's 17.1172 -61.8457 20764 Capital
Argentina Buenos Aires -34.6051 -58.4004 14966530 Capital
@ofou
ofou / pagerank.py
Last active June 21, 2019 06:29
Pagerank using iterative method
def pagerank(self):
M = self.google_matrix()
n, m = np.shape(M)
r = np.ones(n) / n
r = np.transpose(r)
iterations = 1
while True:
print("pass: ", iterations)
previous_r = r
r = np.dot(r, M)