Script snippet for use with TamperMonkey.
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
| :root { | |
| --bg0: #262626; | |
| --bg1: #141414; | |
| --bhl: #646464; | |
| --fg0: #FEFEFE; | |
| --fg1: #DEDEDE; | |
| --sel: #268bd2; | |
| } | |
| body { |
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 ( | |
| "bytes" | |
| "image" | |
| "image/color" | |
| "image/gif" | |
| "io" | |
| "io/ioutil" | |
| "os" |
So instructions to make gtkcord 3 AppImage:
- Make a directory called AppDir
- Make a directories AppDir/usr/bin
- Compile gtkcord3 binary into that directory, for example go build -o AppDir/usr/bin/gtkcord3
- Make directory AppDir/usr/lib
- Make directories AppDir/usr/share/{applications,icons,metainfo}
- Make file AppDir/usr/share/metainfo/gtkcord3.appdata.xml and insert this: https://pastebin.com/08xGTPne
- Make file AppDir/usr/share/applications/gtkcord3.desktop and insert this:
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
| +------------------------------------------+ | |
| | Server index | | |
| | | | |
| | 1. Node 40ms 14.x.x.x | | |
| | 2. Node 275ms 275.2.51.x +--------v | |
| | 3. Node 175ms x.x.x.x +----+ | | |
| | | | | 2. Node 2 shows an already connected | |
| | * Nodes shown here are already verified | | | node, which is listed on the umbrella | |
| | and can be "trusted" when connecting to | | | server | |
| | other nodes. | | | |
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
| var reflectCache sync.Map | |
| type cacheKey struct { | |
| t reflect.Type | |
| f string | |
| } | |
| func getID(v reflect.Value, thing string) discord.Snowflake { | |
| if !v.IsValid() { | |
| return 0 |
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 | |
| type TodoItem struct { | |
| gtk.ListBoxRow | |
| Entry gtk.Entry // acts as label | |
| Remove gtk.Button | |
| item string |
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" | |
| "math/rand" | |
| "time" | |
| ) | |
| type IncrementThing struct { | |
| gtk.Box |
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 ( | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "strconv" | |
| "strings" | |
| "unicode" |
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
| Debug: 14:42:36.325801 1475 ::: messages.go:160 > message.go:301 > pixbuf.go:22 > IdleAdd() called. | |
| Info: 14:42:36.325833 1475 ::: messages.go:160 > message.go:301 > pixbuf.go:22 > took 18.444µs | |
| Debug: 14:42:36.325917 1476 ::: asm_amd64.s:1357 > messages.go:160 > message.go:269 > IdleAdd() called. | |
| Info: 14:42:36.325963 1476 ::: asm_amd64.s:1357 > messages.go:160 > message.go:269 > took 40.858µs | |
| Debug: 14:42:36.329277 1477 ::: messages.go:160 > message.go:301 > pixbuf.go:22 > IdleAdd() called. | |
| Info: 14:42:36.329314 1477 ::: messages.go:160 > message.go:301 > pixbuf.go:22 > took 22.303µs | |
| Debug: 14:42:36.371884 State error: Failed to delete a message in state: item not found in store | |
| Debug: 14:42:36.467257 State error: Failed to delete a message in state: item not found in store | |
| fatal error: unexpected signal during runtime execution | |
| [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x7fb665274b86] |