Skip to content

Instantly share code, notes, and snippets.

View capsulecorplab's full-sized avatar

Sean Marquez capsulecorplab

View GitHub Profile
@capsulecorplab
capsulecorplab / .vimrc
Created December 12, 2018 08:07 — forked from cynful/.vimrc
basic vim configurations
" props to https://dougblack.io/words/a-good-vimrc.html
syntax on " enable syntax processing
set tabstop=4 " number of visual spaces per TAB
set softtabstop=4 " number of spaces in tab when editing
set expandtab " tabs are spaces
set number " show line numbers
set showcmd " show command in bottom bar
set cursorline " highlight current line
filetype indent plugin on " load filetype-specific indent files
@capsulecorplab
capsulecorplab / there_is_no_try.py
Created February 1, 2018 01:53
Try with Timeout
#code gist, courtesy of Jabba Laci
#sauce: https://pythonadventures.wordpress.com/2012/12/08/raise-a-timeout-exception-after-x-seconds/
import signal
import time
def test_request(arg=None):
"""Your http request."""
time.sleep(2)
return arg
@capsulecorplab
capsulecorplab / CC0_CLA.md
Created January 5, 2019 20:19 — forked from uchida/CC0_CLA.md
CLA for CC0

Copyright Statement for Contributions

I hereby represent that all present, past and future contributions are governed by the Creative Commons Zero 1.0 Universal copyright statement, placing my contributions in the publicdomain. This entails that to the extent possible under law I waive all copyright and related or neighboring rights to the code or documents I contribute. I also represent that I have the authority to perform the above waiver with respect to the entirety of my contributions.

@capsulecorplab
capsulecorplab / GitHub Flavored Asciidoc (GFA).adoc
Created January 6, 2019 03:37 — forked from dcode/GitHub Flavored Asciidoc (GFA).adoc
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@capsulecorplab
capsulecorplab / latex_test.adoc
Last active January 20, 2019 05:52
latex test in asciidoc
formula
@capsulecorplab
capsulecorplab / SCaLE17x_AV.adoc
Last active February 5, 2019 02:36
SCaLE 17x A/V System Architecture
A/V System Architecture
@capsulecorplab
capsulecorplab / setvolume.py
Last active March 12, 2019 06:55
set volume from command line
# set volume from command line
# install by placing in home directory and running `chmod +x setvolume.py; echo 'python3 ~/setvolume.py' > .bashrc`
# CLI usage - sets volume level to 120%: `setvol 120`
from sys import argv
from subprocess import call
call('pactl set-sink-volume 0 ' + argv[1] + '%', shell=True)
@capsulecorplab
capsulecorplab / github-templates.adoc
Created May 22, 2019 02:12
Templates for facilitating a clean Github project
@capsulecorplab
capsulecorplab / textbooks.adoc
Last active June 10, 2019 06:21
a collection of recommended textbooks per subject
@capsulecorplab
capsulecorplab / keybindings.json
Last active June 10, 2019 08:46
key bindings for vs code
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "capslock",
"command": "deleteLeft",
"when": "textInputFocus",
},
{
"key": "ctrl+pagedown",
"command": "workbench.action.terminal.focusNext",