Skip to content

Instantly share code, notes, and snippets.

@JeremyOttley
JeremyOttley / SETUP.md
Last active June 24, 2020 22:29
~/.gimp-2.8/
  1. Make “Snap to Canvas Edge” the default behavior

Another thing that I find frustrating with GIMP is that it does not activate “Snap to canvas edges” by default even though the option is turned off by default. Unfortunately, you cannot turn this on by toggling in a setting. To make this change, we go back to the gimp folder (~/.gimp-2.8). Open the “gimprc” file and add the following at the end and then save it.

(default-snap-to-canvas yes)

(default-snap-to-grid yes)

  1. Disable the default “Show Layer Boundary”
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
% File: cheatsheet.tex -- cheatsheet for various XeTeX typesetting features
% Author: Tim van Werkhoven ([email protected], 2011)
%
% I keep this file as a scrap book of various tricks in LaTeX/XeTeX that I
% picked up from various places. I try to refer to places where I found the
% TeX code when possible, and refer to documentation as much as possible as
% well. Feel free to use this cheatsheet for your own purposes.
@JeremyOttley
JeremyOttley / runvm
Created May 24, 2020 02:49
log in to vm (virtualbox)
VBoxManage startvm "Windows10"
sleep 1
while pgrep VirtualBox > /dev/null; do sleep 1; done
kill -9 -1
# echo "nohup $HOME/runvm &" >> .profile

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 <[email protected]>, 2005.
;; Ported to Chicken by César L. B. Silveira <[email protected]>, 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)