command | description |
---|---|
ctrl + a | Goto BEGINNING of command line |
Discover gists
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
Country | Alpha-2 code | Alpha-3 code | Numeric code | Latitude (average) | Longitude (average) | |
---|---|---|---|---|---|---|
Afghanistan | AF | AFG | 4 | 33 | 65 | |
Åland Islands | AX | ALA | 248 | 60.116667 | 19.9 | |
Albania | AL | ALB | 8 | 41 | 20 | |
Algeria | DZ | DZA | 12 | 28 | 3 | |
American Samoa | AS | ASM | 16 | -14.3333 | -170 | |
Andorra | AD | AND | 20 | 42.5 | 1.6 | |
Angola | AO | AGO | 24 | -12.5 | 18.5 | |
Anguilla | AI | AIA | 660 | 18.25 | -63.1667 | |
Antarctica | AQ | ATA | 10 | -90 | 0 |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
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 time | |
# https://github.com/niklasb/ctf-tools/blob/master/pwnlib/tools.py | |
from pwnlib.tools import * | |
TARGET=('localhost',5000) | |
INTERVAL=0 | |
offset_free = 549184 | |
offset_system = 0x456d0 |
Many different applications claim to support regular expressions. But what does that even mean?
Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.
The information here is just copied from: http://regular-expressions.mobi/refflavors.html
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
# pip3 install openai | |
import openai | |
import time | |
OPENAI_API_KEY = "your_api_key_here" | |
openai.api_key = OPENAI_API_KEY | |
prompt = """French: La semaine dernière, quelqu’un m’a fait part de sa gratitude envers notre travail. |
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
(ns socket.http | |
(:require | |
[clojure.java.io :as io] | |
[clojure.string :as str] | |
[clojure.tools.logging :as log]) | |
(:import [java.net ServerSocket] | |
[java.net SocketException] | |
[java.nio.file Files] | |
[java.io File] | |
[java.io InputStream OutputStream])) |
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
1. Install EdgeRouter wireguard-vyatta-ubnt kernel package from here | |
curl -L -O https://github.com/WireGuard/wireguard-vyatta-ubnt/releases/download/1.0.20220627-1/e50-v2-v1.0.20220627-v1.0.20210914.deb | |
dpkg -i e50-v2-v1.0.20220627-v1.0.20210914.deb | |
2. Install netbird for mipsel from here: | |
curl -L -O https://github.com/ovidiuvio/netbird/releases/download/v0.19.0-mipsel-4/netbird_0.19.0-mipsel-4_linux_mips_softfloat.tar.gz | |
tar -xf netbird_0.19.0-mipsel-4_linux_mips_softfloat.tar.gz | |
sudo mv netbird /usr/bin/ | |
sudo netbird service install | |
sudo netbird service start | |
sudo netbird up |
NewerOlder