Skip to content

Instantly share code, notes, and snippets.

View rvente's full-sized avatar
🚩
Keeping it ℝ

Blake Vente rvente

🚩
Keeping it ℝ
View GitHub Profile
########################################
##
## Makefile
## LINUX compilation
##
##############################################
@rvente
rvente / makefile
Last active February 14, 2019 06:16
makefile to convert pandoc-markdown to pdf with specified styling
.PHONY: help all
.DEFAULT_GOAL := help
LOCATION=https://gist.githubusercontent.com/rvente/89c0bb1c8e1f454411c331500d6c0587
# makefile modified 2018 12 16 🄯copyleft Ralph Vente
# support multi file input, Darwin and Linux Platforms
# usage: by default, inputs all md files in current directory
# if a `md=some_File` is supplied, only that file will be generated
@rvente
rvente / discrete-structures-notes.tex
Last active November 12, 2018 02:11
Scattered notes for Discrete Structures at Hunter College.
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
\PassOptionsToPackage{hyphens}{url}
\documentclass[oneside]{book}
\usepackage[margin=2.3cm]{geometry}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
% \usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
@rvente
rvente / latex-math-preview.el
Last active November 12, 2018 01:23
This code, when put under dotspacemacs/user-config, enables math preview mode.
;; --------------- begin latex preview configuration ----------------- ;;
;; latex and auxtex layers needed
;; activate using the vim-like binding `[space] , p b`
;; automatically inserts newline at the end of long lines
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq TeX-save-query nil)
@rvente
rvente / VCS.md
Created May 17, 2018 05:20
this is the beginnings of a verbal markup languange for mathematical and computer languages

VCS

this is the beginnings of a verbal markup languange for mathematical and computer languages

Namespace: Code

~ tild

# hash

mkdir /mnt/arch
vgscan
mount dev/sda{2,4} /mnt/arch
swapon -a
cd /mnt/arch
mount -t proc proc proc
mount -t sysfs sys sys
mount -o bind /dev dev
mount /dev/sda1 boot
chroot . /bin/bash
@rvente
rvente / organise.sh
Created April 25, 2017 02:33
This removes unwanted characters from the filename of docx files, then uses w2m to convert it all to markdown, and prepones the needed YAML header also. This is for mass conversions of the files needed. It should work on any bash system with w2m installed.
for run in {1..10} ; do
for file in *.docx ; do
mv "${file}" "${file// _/ }"
mv "${file}" "${file/_}"
mv "${file}" "${file// }"
mv "${file}" "${file//,}"
done
done
for file in *.docx ; do