Skip to content

Instantly share code, notes, and snippets.

View oblique63's full-sized avatar

Enrique Gavidia oblique63

  • San Francisco, CA
View GitHub Profile
@oblique63
oblique63 / .spacemacs
Last active March 10, 2021 02:17
Spacemacs config
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@oblique63
oblique63 / configuration.nix
Last active March 26, 2020 04:44
NixOS Configuration (Virtualbox)
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports = [
<nixpkgs/nixos/modules/profiles/hardened.nix>
./hardware-configuration.nix
@oblique63
oblique63 / Vagrantfile
Created July 26, 2015 04:07
opencart bootstrap
# -*- mode: ruby -*-
# vi: set ft=ruby :
LOCAL_PORT = 9999
IP_ADDRESS = "192.168.50.4"
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
# Meta
alias edit-aliases="nano ~/.alias && source ~/.alias"
alias aliases="less ~/.alias"
alias update-aliases="source ~/.alias"
# Utility
alias lss="ls -ABgoh" # ls with human-readible file sizes
alias rm="rm -i"
alias mkex="chmod +x"
alias untar="tar xvzf"
@oblique63
oblique63 / .emacs
Last active November 22, 2023 03:49
Emacs Bootstrap
;; -*- lexical-binding: t; -*-
;;===[ PERFORMANCE ENHANCEMENTS ]===============================================
;; See:
;; https://github.com/hlissner/doom-emacs/wiki/FAQ#how-is-dooms-startup-so-fast
(defvar file-name-handler-alist-backup file-name-handler-alist)
(defvar gc-cons-threshold-backup gc-cons-threshold)
(defvar gc-cons-percentage-backup gc-cons-percentage)
(setq gc-cons-threshold 402653184
@oblique63
oblique63 / Vagrantfile
Last active September 4, 2019 10:50
Opencart Vagrantfile (with VQMod and VQGen)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
PORT = 9999
# Ignore this, cli-installation is buggy
AUTO_INSTALL = false
@oblique63
oblique63 / editor-keybindings.xml
Created January 17, 2014 05:06
Dart Editor [Emacs] Keybindings
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<dartKeyBindings version="1">
<!--The format is straightforward, consisting of two attributes plus one that is optional.
The required attributes are the command name, which is the same as it appears in
menus, and the key sequence, which is all uppercase. The optional attribute is the
name of the platform to which the binding applies if it is not universal.-->
<keyBinding commandName="Activate Editor" keySequence="F12" platform="win32"/>
<keyBinding commandName="Backward History" keySequence="ALT+ARROW_LEFT"/>
<!-- <keyBinding commandName="Close" keySequence="CTRL+W"/> -->
<keyBinding commandName="Close All" keySequence="CTRL+SHIFT+W"/>
@oblique63
oblique63 / .zprofile
Last active May 28, 2021 01:06
zsh configuration
# Assumes oh-my-zsh, xclip, and aptitude are installed
# Ubuntu/Debian
alias install="sudo aptitude -ZWry install"
alias uninstall="sudo aptitude -ZWry remove"
alias full-uninstall="sudo aptitude -ZWry purge"
alias installed="dpkg --get-selections | grep"
alias add-repo="sudo add-apt-repository"
alias repo-update="sudo aptitude update"
alias update="sudo aptitude -ZWry safe-upgrade && sudo aptitude -ZWry --purge-unused clean"
@oblique63
oblique63 / gist:1616325
Created January 15, 2012 16:24
Pip freeze
# My system's pip freeze output
BeautifulSoup==3.2.0
Fabric==1.3.3
Flask-Markdown==0.3
Jinja2==2.6
Markdown==2.1.0
PyRSS2Gen==1.0.0
PyYAML==3.10
Pygments==1.4
@oblique63
oblique63 / gist:1604782
Created January 13, 2012 05:08
.emacs bootstrap file
;;--- PATH setup -------------------------------------------------------------------------
(when (string-match "apple-darwin" system-configuration)
; add '/usr/local/bin' to my PATH
(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
(setq exec-path (append exec-path '("/usr/local/bin"))))
(setenv "PATH" (concat (getenv "PATH") ":/cygwin/bin"))
(setq exec-path (append exec-path '("/cygwin/bin")))
;;=== Package Management =================================================================