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 cors from 'cors' | |
import express from 'express' | |
const app = express() | |
const port = process.env.PORT || 8000 | |
app.enable('trust proxy') | |
app.use(cors()) | |
app.use(express.json({ limit: '500kb' })) | |
app.use(express.urlencoded({ extended: false, limit: '500kb', parameterLimit: 50 })) |
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
`prefix+[` to enter copy mode | |
navigate to the start or the end of text selection with arrow keys | |
press `control+space` to start selection | |
move to opposite end of text to copy with arrow keys | |
press `control+w` to copy selected text | |
in the same tmux session, paste with `prefix+]`, to paste into vim, paste with prefix+] in vim insert mode |
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-add -D |
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
# generate token here: https://github.com/settings/tokens | |
git clone https://ghp_123...XYZ@github.com/myorg/myrepo.git |
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
name: hello-world | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
my-job: | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: |
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
const body = { | |
database: databaseInteger, | |
type: 'native', | |
native: { | |
query: rawSqlQuery, | |
}, | |
} | |
const res = await fetch('https://metabase.example.com/api/dataset', { | |
method: 'POST', | |
headers: { |
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
pactree -r <package-name> |
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
// You can edit this code! | |
// Click here and start typing. | |
package main | |
import ( | |
"fmt" | |
"math/big" | |
) | |
func main() { |
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
vim ~/.Xresources | |
# edit or add | |
Xft.dpi: 120 | |
# then restart bspwm |
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
make sure `cups-browsed` is running | |
open cups with `open http://localhost:631/` |