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 / Bye-Google.md
Created November 17, 2024 20:56
How to Change Your Default Search Engine

Instructions to Change Your Default Search Engine

Large language model (LLM) providers have integrated search capabilities into their platforms, combining traditional search with AI-powered reasoning for contextual and accurate responses. Customize your browser to use these AI-enhanced tools as your default search engine to improve your search experience.

Steps to Change Your Default Search Engine

  1. Open your browser's settings.
  2. Navigate to the "Search Engine" or "Manage Search Engines" section.
  3. Follow these steps to update your default search engine:
  • Add a new search engine:
@ofou
ofou / git.md
Last active February 7, 2024 23:54
Git Commit History Exporter with Detailed Diffs in JSONL Format
git log --reverse --pretty=format:'%H' | while read commit_hash;
do
  # Extract required commit information
  commit_author=$(git show -s --format='%an' $commit_hash 2>/dev/null)
  if [ -z "$commit_author" ]; then
    echo "Skipping invalid commit hash: $commit_hash"
    continue
  fi
  
@ofou
ofou / heteronyms_by_freq.txt
Last active June 4, 2023 06:54
Heteronyms in Mandarin
('了', ['le', 'liǎo', 'liào']) 3
('是', ['shì', 'tí']) 2
('和', ['hé', 'hè', 'hú', 'huó', 'huò', 'huo']) 6
('有', ['yǒu', 'yòu', 'wěi']) 3
('他', ['tā', 'tuó']) 2
('不', ['bù', 'fǒu', 'fōu', 'fū', 'bú']) 5
('的', ['de', 'dī', 'dí', 'dì']) 4
('也', ['yě', 'yí']) 2
('为', ['wèi', 'wéi']) 2
('这', ['zhè', 'zhèi']) 2
@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: