jmjl / gist:aea99b3445194b04b992fe4c5b6800d7
0 likes
0 forks
1 files
Last active
Based on KeyCloak's Design Document
$ curl -s "https://id.tilde.green/realms/tgci/.well-known/openid-configuration" |jq '.'
{
"issuer": "https://id.tilde.green/realms/tgci",
alexlehm / gist:359a392fd1744b8e9439e8775714b4c8
0 likes
0 forks
1 files
Last active
1 | test |
2 | test |
3 | test |
4 | test |
5 | test |
alexlehm / gist:1fef84e65f814dc9b68f439152a4e083
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | |
3 | # create an opengist file and push it to the server |
4 | # |
5 | # alexlehm/at/gmail.com |
6 | |
7 | TMPDIR=git_gist.$$ |
8 | |
9 | if [ `expr "$1" : "https://"` = 0 ] |
10 | then |
alexlehm / gist:d20151da3f104445a00f7b7cf6e77acc
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | |
3 | # create an opengist file and push it to the server |
4 | # |
5 | # alexlehm/at/gmail.com |
6 | |
7 | TMPDIR=git_gist.$$ |
8 | |
9 | if [ `expr "$1" : "https://"` = 0 ] |
10 | then |
alexlehm / tagpacker to netscape html converter
0 likes
0 forks
1 files
Last active
convert tagpacker html explort to netscape format to import it to linkwarden
1 | #! perl |
2 | # |
3 | # convert tagpacker html export to a netscape html compatible format to make it importable in linkwarden |
4 | # the script is pretty sloppy, it will likely break for some lines |
5 | # |
6 | # alexlehm/at/gmail.com |
7 | # |
8 | # https://wiki.creativecommons.org/wiki/CC0 |
9 | # |
alexlehm / pocket to netscape html converter
0 likes
0 forks
1 files
Last active
make pocket exports importable in linkwarden
1 | #! perl |
2 | # |
3 | # convert pocket html export to a netscape html compatible format to make it importable in linkwarden |
4 | # the script is pretty sloppy, it will likely break for some lines |
5 | # |
6 | # alexlehm/at/gmail.com |
7 | # |
8 | # https://wiki.creativecommons.org/wiki/CC0 |
9 | # |
jmjl / Makefile targets
0 likes
0 forks
1 files
Last active
Makefile that shows targets names automatically, (I don't remember the source, if you know the source or are the source please contact me)
1 | help: |
2 | @echo "targets:" |
3 | @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ |
4 | | sed -n 's/^\(.*\): \(.*\)##\(.*\)/ \1|\3/p' \ |
5 | | column -t -s '|' |
6 | |
7 | .PHONY: clean |
8 | clean: ## clean the uneeded files |
9 | code_to_clean_the_files |
jmjl / gist:bd3f44ca89994dd295228476445163e9
0 likes
0 forks
1 files
Last active
Broken piece of code to learn C++
1 | #include <cstdio> |
2 | #include <sstream> |
3 | |
4 | void user_write(const char *string) { |
5 | const char* nice_string; |
6 | //std::ostringstream nice_string; |
7 | nice_string << string; |
8 | nice_string << "\r\n"; |
9 | //printf(string + "\r\n"); |
10 | printf(nice_string); |
jmjl / Usbguard Rofi Script
0 likes
0 forks
1 files
Last active
Usbguard rofi script so that I can manage usbguard from a UI instead of manually typing the usbguard commands into the keyboard
1 | #!/bin/sh |
2 | # Copyright Julián Marcos — EPLv2 |
3 | # Texts |
4 | |
5 | RELIST_ACT="*AA: Listar de nuevo. (Re-chequea los estados)" |
6 | EXIT_ACT="*AB: Salir" |
7 | FILTER_ACT="*AC: Filtrar" |
8 | |
9 | BLOCK_ACT="Bloquear" |
10 | REJECT_ACT="Quitar" |