Skip to content

Instantly share code, notes, and snippets.

View practicalli-johnny's full-sized avatar
😺
Software Engineering education and advocacy with a focus on Clojure

Practicalli Johnny practicalli-johnny

😺
Software Engineering education and advocacy with a focus on Clojure
View GitHub Profile
@practicalli-johnny
practicalli-johnny / postman.desktop
Created May 10, 2022 16:14
XDG application description for launchers
[Desktop Entry]
Name=Postman
GenericName=API tool
Comment=Develop and test APIs
Exec=postman
Icon=/home/practicalli/.local/apps/postman/current/app/resources/app/assets/icon.png
Type=Application
Terminal=false
Categories=Development;
StartupWMClass=API
@practicalli-johnny
practicalli-johnny / .bashrc
Created May 10, 2022 15:51
OhMyBash configuration by Practicalli - using powerline theme,Git support, neovim as editor, aws, postgres plugins
# Path to your oh-my-bash installation.
export OSH=/home/practicalli/.oh-my-bash
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-bash is loaded.
OSH_THEME="powerline"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@practicalli-johnny
practicalli-johnny / dot-profile from sidious
Created May 10, 2022 15:45
dot profile from sidious laptop - is this the default or did I add anything ?
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
clojure--looking-at-non-logical-sexp()
clojure-forward-logical-sexp(1)
clojure-sexp-starts-until-position(17)
clojure-beginning-of-defun-function(1)
beginning-of-defun-raw(nil)
beginning-of-defun()
clojure-font-lock-def-at-point(1)
clojure-font-lock-extend-region-def()
font-lock-default-fontify-region(1 18 nil)
apply(font-lock-default-fontify-region 1 18 nil)
Anscii shadow

██████╗ ██████╗  █████╗  ██████╗████████╗██╗ ██████╗ █████╗ ██╗     ██╗     ██╗
██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██║██╔════╝██╔══██╗██║     ██║     ██║
██████╔╝██████╔╝███████║██║        ██║   ██║██║     ███████║██║     ██║     ██║
██╔═══╝ ██╔══██╗██╔══██║██║        ██║   ██║██║     ██╔══██║██║     ██║     ██║
██║     ██║  ██║██║  ██║╚██████╗   ██║   ██║╚██████╗██║  ██║███████╗███████╗██║
╚═╝     ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝   ╚═╝   ╚═╝ ╚═════╝╚═╝  ╚═╝╚══════╝╚══════╝╚═╝
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Experimenting with auth0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ns practicalli.authorisation-tools
(:require [clj-http.client :as http]
[muuntaja.core :as transformer]))
(defn auth0-m2m-token
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
@practicalli-johnny
practicalli-johnny / spacemacs.desktop
Created February 7, 2022 00:13
Ubuntu Linux Desktop configuration file - spacemacs logo for Emacs
[Desktop Entry]
Name=Spacemacs
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=emacs %F
Icon=/home/practicalli/.emacs.d/core/banners/img/spacemacs.png
Type=Application
Terminal=false
Categories=Development;TextEditor;
@practicalli-johnny
practicalli-johnny / postman.desktop
Created February 7, 2022 00:11
Ubuntu Lunux Desktop application configuration file
[Desktop Entry]
Name=Postman
GenericName=API tool
Comment=Develop and test APIs
Exec=postman
Icon=/home/practicalli/.local/apps/postman/current/app/resources/app/assets/icon.png
Type=Application
Terminal=false
Categories=Development;
StartupWMClass=API
2022-01-18T02:43:23.455Z INFO [clojure-lsp.server:450] - Starting server...
2022-01-18T02:43:23.460Z DEBUG [clojure-lsp.nrepl:21] - nrepl not found, skipping nrepl server start...
2022-01-18T02:43:23.468Z INFO [clojure-lsp.server:319] - Initializing...
2022-01-18T02:43:23.494Z INFO [clojure-lsp.source-paths:190] - Using given source-paths: ["src" "test" "develop"]
2022-01-18T02:43:23.512Z INFO [clojure-lsp.source-paths:190] - Using given source-paths: ["src" "test" "develop"]
2022-01-18T02:43:23.905Z INFO [clojure-lsp.db:?] - Reading analysis cache from Datalevin db took 0.40 secs
2022-01-18T02:43:23.906Z INFO [clojure-lsp.crawler:140] - Using cached classpath for project root /home/practicalli/projects/practicalli/clojure-through-code
2022-01-18T02:43:23.907Z INFO [clojure-lsp.crawler:229] - Analyzing source paths for project root /home/practicalli/projects/practicalli/clojure-through-code
2022-01-18T02:43:23.907Z INFO [clojure-lsp.feature.clojuredocs:40] - Refreshing clojuredocs cache...
2022-01-18