Skip to content

Instantly share code, notes, and snippets.

Things To Move to New Computer

[x] JHU folder

[x] GWU folder

Gimp scripts

[x] VIDEOSTREAM

# ubuntu 20.04 mini.iso
sudo apt -y install xserver-org software-properties-common curl nitrogen ubuntu-unity-desktop ubuntu-restricted-extras ubuntustudio-installer
xdg-user-dirs-update
fuction remove_app() {
sudo apt -y remove --purge $1
sudo apt clean && sudo apt-get -y autoremove
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>font</title>
<style>
body {
margin: 0;
@JeremyOttley
JeremyOttley / deps.edn
Created May 17, 2020 12:06
How to use clojure aliases
;; clj --main cljs.main --watch "src" --compile app --repl
;; Alias to compile the main entrypoint in a cljs file found in the folder src
;; clj -A:dev
{:deps
{org.clojure/clojurescript {:mvn/version "1.10.741"}}
:aliases
{:dev {:main-opts ["--main" "cljs.main"
"--watch" "src"
"--compile" "app"
; https://autohotkey.com/docs/misc/Remap.htm
Capslock::Ctrl
;; TinyWM is written by Nick Welch <mack@incise.org>, 2005.
;; Ported to Chicken by César L. B. Silveira <cesarbs@gmail.com>, 2011.
;;
;; Original TinyWM website: http://incise.org/tinywm.html
;;
;; This software is in the public domain
;; and is provided AS IS, with NO WARRANTY.
(require-extension xlib)
@JeremyOttley
JeremyOttley / huyt.el
Last active April 29, 2020 22:05
~/.emacs.d/init.el
;; PATH
(let ((path (shell-command-to-string ". ~/.bash_profile; echo -n $PATH")))
(setenv "PATH" path)
(setq exec-path
(append
(split-string-and-unquote path ":")
exec-path)))
;; Some term enhancement
(defadvice term-sentinel (around my-advice-term-sentinel (proc msg))
#!/bin/bash
set -e
set -x
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d/
git clone https://github.com/timor/spacemacsOS.git ~/.emacs.d/layers/exwm
sudo chmod +x ~/.emacs.d/layers/exwm/files/exwm-start
sudo cp -v ~/.emacs.d/layers/exwm/files/exwm-start /usr/local/bin/exwm-start
sudo cp -v ~/.emacs.d/layers/exwm/files/exwm.desktop /usr/share/xsessions/exwm.desktop
For a one-liner, if you use any tool to generate a realistic version of your signature, or do what I do and actually scan a version of your signature once, and then have that as a PNG that you can drop on any PDF of your liking, here's a line to make it look nice and "scanned":
convert "$1" -alpha Off -density 150 -colorspace gray -blur 0.5x0.5 -rotate 0.4 -level 40%,60% "scanned-$1"
Or for even more noise and poor quality:
convert "$1" -colorspace gray \( +clone -blur 0x1 \) +swap -compose divide -composite -linear-stretch 5%x0% -rotate 1.5 scanned-$1.pdf