Skip to content

Instantly share code, notes, and snippets.

View thewinger's full-sized avatar

Alejandro Cámara thewinger

View GitHub Profile
@thewinger
thewinger / aerospace.toml
Last active October 29, 2024 13:47
Aerospace Vim-like config
# Place a copy of this config to ~/.aerospace.toml
# After that, you can edit ~/.aerospace.toml to your liking
# It's not necessary to copy all keys to your config.
# If the key is missing in your config, "default-config.toml" will serve as a fallback
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
after-login-command = []
########################### NETWORKS
# You may customize the network subnet (192.168.89.0/24) below as you please.
# Docker Compose version 3.5 or higher required to define networks this way.
networks:
default:
driver: bridge
services:
# portainer - webui for containers
@thewinger
thewinger / VirtualBox_Linux_Headless_Run_Windows10.md
Created August 23, 2022 10:56 — forked from rikka0w0/VirtualBox_Linux_Headless_Run_Windows10.md
[VirtualBox] Run Windows10 Headlessly on Linux

https://redplus.me/post/set-up-headless-windows-10-virtual-machine-on-remote-linux-server/ https://www.ostechnix.com/install-oracle-virtualbox-ubuntu-16-04-headless-server/ https://www.howtoforge.com/tutorial/running-virtual-machines-with-virtualbox-5.1-on-a-headless-ubuntu-16.04-lts-server/

Installation

$ sudo nano /etc/apt/sources.list
      deb http://download.virtualbox.org/virtualbox/debian stretch contrib
$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ sudo apt-get update
function layout() {
return {
name: 'Web Dev',
getFrameAssignments: (windows, screenFrame) => {
const webWidth = 1319
const secondaryHeight = screenFrame.height / windows.length
let frame
const frames = windows.map((window, index) => {
if (index === 1) {
frame = {
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
export BASH_CONF="bash_profile"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
# Path to your oh-my-zsh installation.
export ZSH=/Users/win/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
#
DEFAULT_USER='win'
@thewinger
thewinger / .zshrc
Created April 14, 2016 10:26
.zshrc
# Path to your oh-my-zsh installation.
export ZSH=/Users/win/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
#
DEFAULT_USER='win'
{
"name": "inuit",
"private": true,
"dependencies": {
"inuit-defaults": "latest",
"inuit-responsive-settings": "latest",
"inuit-functions": "latest",
"inuit-mixins": "latest",
"inuit-responsive-tools": "latest",
@thewinger
thewinger / html:5
Created June 5, 2015 09:25
HTML:5 Snippet for emmet.vim
\ 'html:5': "<!DOCTYPE html>\n"
\ ."<html lang=\"${lang}\">\n"
\ ."<head>\n"
\ ."\t<meta charset=\"${charset}\">\n"
\ ."\t<title></title>\n"
\ ."\t<link rel=\"stylesheet\" src=\"css/main.css\">\n"
\ ."\t<meta name=\"description\" content=\"\">\n"
\ ."\t<meta name=\"keywords\" content=\"\">\n"
\ ."</head>\n"
\ ."<body>\n\t${child}|\n</body>\n"
@thewinger
thewinger / .gitignore
Last active March 17, 2016 09:11
gitignore
# NODE_MODULES #
################
node_modules
**/node_modules/*
node_modules/**
# SASS_CACHE #
##############
**/.sass-cache
**/.sass-cache/*