I hereby claim:
- I am AnimeshRy on github.
- I am era5tone (https://keybase.io/era5tone) on keybase.
- I have a public key whose fingerprint is E825 374C 380C 3EFA 82B3 FF22 A6F1 6351 CCAA 205B
To claim this, I am signing this object:
| ## install uv on OS | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| ## create new project | |
| uv init myproj | |
| ## install packages | |
| uv add django requests "pandas>=2.3" | |
| ## remove package |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| import socket | |
| import select | |
| from logzero import logger | |
| # python forwarder.py localhost:1337 ipinfo.io:80 | |
| # curl -v http://localhost.com:1337 -H "Host: ipinfo.io" | |
| # video: https://www.youtube.com/watch?v=32KKwgF67Ho | |
| class Forwarder: |
| I tried every solutions here, but nothing works for me. | |
| But I found solutions. | |
| in wsl, type below. | |
| sudo rm /etc/resolv.conf | |
| sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' | |
| sudo bash -c 'echo "[network]" > /etc/wsl.conf' | |
| sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf' | |
| sudo chattr +i /etc/resolv.conf |
I hereby claim:
To claim this, I am signing this object:
| from time import sleep | |
| import os | |
| count=1 | |
| def update(): | |
| if 'a.txt' in os.listdir(): | |
| os.system('rename a.txt b.txt') #Renames file | |
| elif 'b.txt' in os.listdir(): | |
| os.system('rename b.txt a.txt') #Renames file |
| #! /bin/bash | |
| # ECHO COMMAND | |
| # echo Hello World! | |
| # VARIABLES | |
| # Uppercase by convention | |
| # Letters, numbers, underscores | |
| NAME="Bob" | |
| # echo "My name is $NAME" |
| #include <cs50.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| // Max number of candidates | |
| #define MAX 9 |
| #include <cs50.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| #include <math.h> | |
| // Max voters and candidates | |
| #define MAX_VOTERS 100 | |
| #define MAX_CANDIDATES 9 |
| #include <stdio.h> | |
| #include <cs50.h> | |
| #include <ctype.h> | |
| #include <string.h> | |
| #include <math.h> | |
| int letter; | |
| int word; | |
| int sentence; |