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 / commits.sh
Last active January 18, 2025 21:00
Fill your GitHub calendar with fake commits to confuse recruiters
#!/bin/bash
set -euo pipefail
# Validate we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "Error: Not in a git repository"
exit 1
fi
# Function to validate date format
{
"idx": 1,
"question": "What publicly available datasets are typically used for evaluating type inference systems in python?",
"folder": "b76c543d4510f862",
"key_ingredients": [
"https://docs.google.com/document/d/1GrNP4h2LDOADgSSPJ6shTyTdkuaJk_KQksE9V-Uc7z0/edit?usp=drivesdk",
"https://docs.google.com/document/d/1MJq20MMR3Qt5BozyrVlXlJdkbJE2jyi0iepfeyxp94Y/edit?usp=drivesdk"
],
"sources": "https://docs.google.com/document/d/1sDKis_Xz08YbMnGLHbnzvOByFc3WuAhRUrpKkABaRbI/edit?usp=drivesdk",
"src_answers": {
@ofou
ofou / How to Change Your Default Search Engine for an LLM with Web Search.md
Last active February 19, 2025 02:40
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. For Safari users, install this extension to customize search engines.[^1]

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