This file contains hidden or 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
| # ~/.config/kitty/kitty.conf | |
| # ─── Font ──────────────────────────────────────────────────────────────────── | |
| font_family Hack | |
| bold_font Hack Bold | |
| italic_font Hack Italic | |
| bold_italic_font Hack Bold Italic | |
| font_size 11.0 | |
| # ─── Theme (Catppuccin Mocha-ish to match the waybar style) ───────────────── |
This file contains hidden or 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 ( | |
| "fmt" | |
| "github.com/spf13/cobra" | |
| ) | |
| var cmd = &cobra.Command{ | |
| Use: "cobratest", |
This file contains hidden or 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
| ❯ target/debug/hcl2 <<EOF | pbcopy | |
| test block "label" { | |
| a = 1.4e9 | |
| b = -73.19e-12 | |
| internal { | |
| a = "test string here" | |
| b = 5 | |
| c = 7.3 | |
| d = -3 |
This file contains hidden or 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
| """ | |
| Deployment tasks for salt | |
| """ | |
| from __future__ import absolute_import | |
| import io | |
| import os | |
| import tarfile | |
| import time |
This file contains hidden or 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 | |
| restart() { | |
| osascript -l JavaScript <<EOF > /dev/null | |
| var app = Application('$1') | |
| if (app.running()) { | |
| try { app.quit() } catch (e) {} | |
| } |
This file contains hidden or 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 ( | |
| "crypto/rand" | |
| "encoding/base64" | |
| "fmt" | |
| ) | |
| func main() { | |
| buf := make([]byte, 64) |
This file contains hidden or 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
| db.Update(func(tx *bolt.Tx) error { | |
| var res error | |
| buckets := [][]byte{ | |
| []byte("permissions"), | |
| []byte("history"), | |
| []byte("schedules"), | |
| } | |
| for _, name := range buckets { | |
| if _, err := tx.CreateBucketIfNotExists(name); err != nil { |
This file contains hidden or 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> | |
| <body> | |
| <h1>Body</h1> | |
| {{template "test"}} | |
| </body> | |
| </html> |
This file contains hidden or 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> | |
| <head><title>Arts!</title></head> | |
| <body> | |
| <h1>Some content</h1> | |
| <p>Goes here</p> | |
| {{template "content"}} | |
| </body> | |
| </html> | |
This file contains hidden or 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
| type AutoGenerated struct { | |
| Expand string `json:"expand"` | |
| StartAt int `json:"startAt"` | |
| MaxResults int `json:"maxResults"` | |
| Total int `json:"total"` | |
| Issues []struct { | |
| Expand string `json:"expand"` | |
| ID string `json:"id"` | |
| Self string `json:"self"` | |
| Key string `json:"key"` |
NewerOlder