Skip to content

Instantly share code, notes, and snippets.

@airicbear
airicbear / httpd_at_work.org
Created January 24, 2020 21:07
How I set up an http server at work

How I set up an http server at work

The basic gist of it is I modified some stuff in conf/httpd.conf.

Download Apache Haus

If you don’t care about where it is installed, just move the Apache24 folder to your root directory (e.g. C:/Apache24) However, I install it at %USERPROFILE%/AppData/Local/ so it’s a bit more complicated!

_____________________
| _________________ |
| | _____ _____ | |
| | | _ | | _ | | |
|_| |_| | | | | |_| |_|
| | | |
| | | |
| | | |
| | | |
_| | | |_

Emacs as a MATLAB IDE

  • C-M-RET to run matlab-shell-run-cell
  • C-c C-r to run matlab-shell-run-on-region

Replace $$ with \[\] with Vim macros (Evil mode)

You can name the macros whatever you want, I just use a, s, and d because that’s what I’m used to.

Define macro a

q a / \$\$ RET c w \[ ESC q

Define macro s

@airicbear
airicbear / input.conf
Created March 17, 2020 02:50
mpv config
MOUSE_BTN3 ignore
MOUSE_BTN4 ignore
@airicbear
airicbear / init.el
Created April 26, 2020 17:23
emacs windows config 2020-04-26
(require 'package)
(require 'org)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(package-refresh-contents)
;; lualatex preview
(setq org-latex-pdf-process
'("lualatex -shell-escape -interaction nonstopmode %f"
"lualatex -shell-escape -interaction nonstopmode %f"))
@airicbear
airicbear / .bashrc
Last active January 19, 2021 17:28
ubuntu 20.04 2020-05-01
export MPD_HOST="localhost"
export MPD_PORT="6601"
@airicbear
airicbear / beamer-example.org
Created May 16, 2020 04:20
basic example of beamer export in org mode

Example Presentation

@airicbear
airicbear / config.org
Created May 25, 2020 01:45
Example Emacs configuration

DocView Resolution

(setq doc-view-resolution 192)

Evil

(unless (package-installed-p 'evil)
@airicbear
airicbear / .vimrc
Created May 25, 2020 03:29
Example Vim config using pathogen
set runtimepath+=~/.vim/
source ~/.vim/after/ftplugin/python.vim
execute pathogen#infect()
syntax on
filetype plugin on
filetype indent on
set number