Skip to content

Instantly share code, notes, and snippets.

@maxim-ge
maxim-ge / ubuntu-debian-synology.md
Last active May 27, 2024 06:49
Install ubuntu on Synology DS432+
@smileham
smileham / Export to Markdown.ajs
Last active April 25, 2024 14:06
Export an ArchiMate diagram to Markdown format. #jarchi
/*
* Export View to Markdown
*
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
*
* Markdown - https://www.markdownguide.org/
*
* Version 2: Updated to support Diagram Groups
* Version 2.1: Add check for Selected View
* Version 2.2: Change to regex, added date of export
@ksurent
ksurent / ssadump.go
Last active December 16, 2023 17:30
Print Go's SSA form, much like ssadump but with concrete types
package main
import (
"flag"
"fmt"
"go/build"
"go/types"
"os"
"golang.org/x/tools/go/loader"
@thurt
thurt / revprox.go
Last active March 31, 2024 05:14 — forked from JalfResi/revprox.go
Simple reverse proxy in Go (forked from original to use a struct instead of a closure)
package main
import(
"log"
"net/url"
"net/http"
"net/http/httputil"
)
func main() {
@santisbon
santisbon / Search my gists.md
Last active June 3, 2024 00:22
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

Last updated: 2015-08-11

Searching for Files

Find mp3 in a directory that are multipart album but not in CD[0-9] folder

exiftool -partofset -directory -filename -r -if '$partofset =~ /^\d\/\d$$/ and $directory =~ /(?<!\d)$$/i and $filetype eq "MP3"' .

Find images in a directory that don't have a DateTimeOriginal

@drewolson
drewolson / reflection.go
Last active November 20, 2023 09:39
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`