- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
Discover gists
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
(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 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="JavaScriptLibraryMappings"> | |
<includedPredefinedLibrary name="Node.js Core" /> | |
</component> | |
</project> |
The purpose of this document is to get you familiar with the concepts and command line tools involved with connecting to the internet using modern 4G LTE modems on both Debian/Ubuntu and OpenWRT.
This writeup is based on my experiences with the Sierra Wireless AirPrime MC7455 modem and a Calyx (Sprint) SIM card, but it should apply to most modern 4G LTE modems.
These are the steps required:
- Physically connect antennas
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
echo 'Copying attachment files into .attachments folder' | |
cp attachments/* .attachments/ | |
echo 'Updating attachment links' | |
find . -type f -name "*.md" -print0 | xargs -0 sed -i 's/(attachments\//(\/\.attachments\//g' |
Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
NewerOlder