Skip to content

Instantly share code, notes, and snippets.

View andybp85's full-sized avatar
🏠
Working from home

Andrew Stanish andybp85

🏠
Working from home
View GitHub Profile
@andybp85
andybp85 / .vimrc
Last active January 17, 2023 18:02
vim config 2023. needs vim-plug
syntax on
set nocompatible
set encoding=utf-8
set ffs=unix,dos,mac
set number
set relativenumber
set ruler
set tabstop=4
set shiftwidth=4
# choco install fzf; Install-Module PSReadline; Install-Module PSFzf
Import-Module PSReadline
Remove-PSReadlineKeyHandler 'Ctrl+r'
Import-Module PSFzf
# choco install poshgit
Import-Module 'C:\tools\poshgit\dahlbyk-posh-git-9bda399\src\posh-git.psd1'
$GitPromptSettings.DefaultPromptPrefix = '`n'
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true
$GitPromptSettings.DefaultPromptSuffix = '`n$([DateTime]::now.ToString("MM-dd HH:mm:ss")) > '

This is the process I used for installing Arch Linux on my new Dell Precision 7530 laptop. MASSIVE thanks to jantman as this is mostly copied from his gist in the first link below.

References

Installation Notes

This system is dual-booted with win10 on the 1st drive and arch on the 2nd. First attempted to get arch to run on the raid Intel RST controller, however it looks like the kernel won't support it. With the 4k screen, it's easier to get going after booting from the flash drive by making the font bigger with pacman -Sy terminus-font && setfont ter-v32n. Finally, make sure to SSH in so you have a log of what hap

@andybp85
andybp85 / libsass-string-processor.c
Last active February 17, 2019 22:53
Sass_Data_Context example
#include <stdio.h>
#include <string.h>
#include "sass/context.h"
int main( int argc, char* argv[] )
{
// get the input file from first argument or use default
char* input = argc > 1 ? argv[1] : "div { a { color: blue; } }";
{
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"env": {
@andybp85
andybp85 / keybindings.rkt
Created January 11, 2019 14:15
finally got around to setting up drracket comment and uncomment to cmd-; and cmd-shft-;
#lang s-exp framework/keybinding-lang
; taken from drracket docs
(define (rebind key command)
(keybinding
key
(λ (ed evt)
(send (send ed get-keymap) call-function
command ed evt #t))))
@andybp85
andybp85 / simpleMidiSynthControl.scd
Last active September 7, 2022 03:43
Supercollider: basic midi control for a simple two sawtooth oscillator synth with midi bend working and midi cc's 32 and 33 to tune the oscs
(
// set up midi
MIDIClient.init;
MIDIIn.disconnectAll;
MIDIIn.connectAll;
)
(
// arrays to store pressed keys and cc messages
~keys = Array.newClear(128);
allow-newer: true
extra-deps:
- https://hackage.haskell.org/package/ghc-mod-5.9.0.0/candidate/ghc-mod-5.9.0.0.tar.gz
- cabal-helper-0.8.0.2
- extra-1.5.3
- monad-journal-0.7.2
- optparse-applicative-0.13.2.0
- either-4.4.1.1
- free-4.12.4
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
def tag_question(question):
# NN noun, singular 'desk'
# NNS noun plural 'desks'
# NNP proper noun, singular 'Harrison'
# NNPS proper noun, plural 'Americans'
# RB adverb very, silently,
# RBR adverb, comparative better
# RBS adverb, superlative best