start new:
tmux
start new with session name:
tmux new -s myname
| $ gcm start-sshagent | fl | |
| Name : start-sshagent | |
| CommandType : Function | |
| Definition : | |
| if($env:SSH_AGENT_PID) { echo "ssh-agent running"; return } | |
| $private:gp = get-gitbinpath | |
| if($private:gp) { | |
| $private:out = & (join-path $private:gp "ssh-agent") |
I'm doing some research on how companies use GitHub Enterprise (or public GitHub) internally. If you can help out by answering a few questions, I'd greatly appreciate it.
| folder="bin/classes/" | |
| package="$1" | |
| inotifywait -m -q -e close_write "$folder" | while read f; do | |
| # take only the filename | |
| f=`awk '{print $3}' <<< "$f"` | |
| # rebuild the full path | |
| path="$folder$f" |
| import com.google.gson.JsonElement; | |
| import com.google.gson.JsonObject; | |
| import com.google.gson.JsonSerializationContext; | |
| import com.google.gson.JsonSerializer; | |
| import com.squareup.javapoet.*; | |
| import javax.lang.model.element.Modifier; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.lang.reflect.Field; |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.
This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.
DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.
To upgrade WSL, follow these steps,