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
package main | |
import ( | |
"context" | |
"fmt" | |
openai "github.com/sashabaranov/go-openai" | |
"github.com/sashabaranov/go-openai/jsonschema" | |
) |
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
dm ssh dev "sudo -- sh -c 'mkdir /Users; mount -t fuse.vmhgfs-fuse .host:/Users /Users -o defaults,allow_other,uid=1000,nonempty'" |
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
ssh -nNT -g -R 9000:localhost:3000 user@remote_server |
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
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch imgs" HEAD | |
git filter-branch --tree-filter 'rm -fr imgs' HEAD |
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
kill -HUP `cat /var/logs/nginx.pid` |
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
interface=wlan0 | |
ctrl_interface=/var/run/hostapd | |
ctrl_interface_group=0 | |
ssid=www.example.com | |
hw_mode=g | |
channel=6 | |
beacon_int=100 | |
dtim_period=2 | |
max_num_sta=255 | |
rts_threshold=2347 |
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
random: Trying to read entropy from /dev/random | |
Configuration file: etc/hostapd/hostapd.conf | |
ctrl_interface_group=0 | |
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory) | |
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0 | |
nl80211: Supported cipher 00-0f-ac:1 | |
nl80211: Supported cipher 00-0f-ac:5 | |
nl80211: Supported cipher 00-0f-ac:2 | |
nl80211: Supported cipher 00-0f-ac:4 | |
nl80211: Using driver-based off-channel TX |
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
# twitter.com/michael_jones wrote me | |
# Put in ~/.profile, or similar | |
# Use like "authme someuser@someserver" | |
function authme { | |
ssh $1 'cat >>~/.ssh/authorized_keys' <~/.ssh/id_rsa.pub | |
} |