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
#!/bin/bash | |
USERNAME=nesosuke | |
# Backup the previous authorized_keys | |
cp ~/.ssh/authorized_keys ~/.ssh/authorized_keys.bak | |
# Get the public key from GitHub | |
curl -s http://github.com/$USERNAME.keys > ~/.ssh/authorized_keys | |
# If authorized_keys is empty, restore the previous authorized_keys |
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
#!/bin/bash | |
DB_NAME=mastodon_production | |
DUMPTO=/home/mastodon/db_backup/${DB_NAME} | |
DUMPNAME=$DUMPTO/${DB_NAME}_$(date +%Y%m%d).dump | |
# if the directory doesn't exist, create it | |
if [ ! -d $DUMPTO/$DB_NAME ]; then | |
mkdir -p $DUMPTO/$DB_NAME | |
fi |
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
version: '3' | |
services: | |
web: | |
image: node:latest | |
ports: | |
- 5173:5173 | |
volumes: | |
- .:/app | |
working_dir: /app | |
command: bash -c "yarn && yarn watch:nature --host 0.0.0.0" |
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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": "paste", | |
"keys": "ctrl+v" | |
}, | |
{ |
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
oh-my-posh.exe init pwsh --config ~/custom.omp.json | Invoke-Expression |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Documents All</title> | |
</head> | |
<body> | |
<h1>Documents All</h1> |
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
function FindProxyForURL(url, host) { | |
return "SOCKS localhost:10080"; | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am nesosuke on github. | |
* I am nesosuke (https://keybase.io/nesosuke) on keybase. | |
* I have a public key ASBVSbDtK-wLK6_WDDffdfRAtNgwSphRDJF0LuoLP78KZAo | |
To claim this, I am signing this object: |