This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:let mapleader = "," | |
"Ctrl+Shift+up move line above | |
nmap <C-S-Up> :m -2<CR> | |
"Ctrl+Shift+down move line below | |
nmap <C-S-Down> :m +1<CR> | |
"Commas for faster writes and exits | |
nnoremap <leader>q :q!<cr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
directory: ~/music/tracks | |
library: ~/music/beets/library.db | |
ui: | |
color: yes | |
plugins: | |
- edit | |
- fetchart | |
- embedart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Command</key> | |
<string>####### Free Memory | |
a=$(vm_stat | awk '/Pages free/ {print $3}' | awk 'BEGIN { FS = "\." }; {print ($1*0.004092)}' | sed 's/\..*$//'); | |
#for page size of 4092 bytes displayed in mb free | |
####### CPU Utilization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\cfg\binds.cfg | |
# launch option: +exec binds | |
alias chat_on "voice_enable 1;hud_saytext_time 12;play HL1/fvox/voice_on.wav;echo Chat enabled" | |
alias chat_off "voice_enable 0;hud_saytext_time 0;play HL1/fvox/voice_off.wav;echo Chat disabled" | |
bind PGUP chat_on | |
bind PGDN chat_off | |
bind "F1" "load_itempreset 0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo Killing explorer... | |
taskkill /f /im explorer.exe | |
taskkill /f /im shellexperiencehost.exe | |
timeout /t 3 /NOBREAK > nul | |
echo Deleting TempState... | |
del %localappdata%\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempState\* /q | |
timeout /t 2 /NOBREAK > nul | |
del Deleting IconCache | |
del %userprofile%\AppData\Localdelete IconCache.db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
#include <limits> | |
using namespace std; | |
/* sloppy code for extra credit | |
ben carpenter / carpe504 */ | |
//number of steps | |
int n = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title synchronize rockbox device | |
set /P targetDrive="Enter target drive destination: " | |
echo Files on destination drive %targetDrive%: may be destroyed! | |
pause | |
:: Clear log files | |
break>audio_sync.log | |
rem -------------------------------MUSIC------------------------------------------/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Proof that a dynamic array of strings CAN be created | |
* with a single malloc/calloc. Unfortunately, also proof | |
* that it probably shouldn't be... | |
*/ | |
#include <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
Chart pulled from https://en.cppreference.com/w/c/language/operator_precedence | |
Stylesheet pulled from https://www.w3schools.com/css/css_table.asp | |
--> | |
<head> | |
<title>C Precedence Chart</title> | |
<style> | |
table { | |
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Deadkey script for accented Spanish letters | |
; "Moves" the grave mark, tilde, or double apostrophe over the next key (a` → á) | |
; Repeated punctuation is inverted (!! → ¡) | |
#Hotstring c r * ? | |
::A``::Á | |
::a``::á | |
::E``::É | |
::e``::é |
NewerOlder