Skip to content

Instantly share code, notes, and snippets.

⌨️
:wq

Scott Stanfield scottstanfield

⌨️
:wq
Block or report user

Report or block scottstanfield

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@scottstanfield
scottstanfield / raspi-config.txt
Created Jan 21, 2020 — forked from damoclark/raspi-config.txt
Simple Raspbian Configuration Tool. Add file to boot partition of SD Card and run single command after booting Raspbian.
View raspi-config.txt
#/bin/sh
#
# Don't change the following lines unless you know what you are doing
# They execute the config options starting with 'do_' below
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x -
#
############# INSTRUCTIONS ###########
#
# Change following options starting with 'do_' to suit your configuration
@scottstanfield
scottstanfield / tmux_conda_fix.md
Created Jan 12, 2020 — forked from ekreutz/tmux_conda_fix.md
Fix tmux messing with conda path
View tmux_conda_fix.md

Fix tmux messing with conda

Problem: When running a conda environment and opening tmux on macOS, a utility called path_helper is run again. Essentially, the shell is initialized twice which messes up the ${PATH} so that the wrong Python version shows up within tmux.

Solution

If using bash, edit /etc/profile and add one line. (For zsh, edit /etc/zprofile)

...
@scottstanfield
scottstanfield / its-csv-all-the-way-down.md
Created Oct 22, 2019
It's CSV files all the way down
View its-csv-all-the-way-down.md

first: make the filenames lowercase and remove spaces file * to see what kind of file it is

ASCII vs UNICODE-8 vs UNICODE-16 ioconv for ascii transliterate

COLORCODE HEXDUMP cxxd

GET THE SHAPE

@scottstanfield
scottstanfield / lowerspace.sh
Created Oct 22, 2019
Lowerspace: remove spaces and lowercase all files and folders in argument
View lowerspace.sh
#!/usr/bin/env bash
##
## lowerspace.sh directory
## Remove spaces and lower case all files and folders in `directory`
##
set -o xtrace
set -o errexit
set -o nounset
View wifiping
#!/usr/bin/env bash
set -o errexit
set -o pipefail
# BSSID
# CHANNEL
# SSID
# CtlRSSI
View julia-notes.md

packages

using Pkg Pkg.add("Flux")

install chromium (and saka) look for a better terminal update dmz install juno for julia (maybe in vscode?)

View install.tmux.sh
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# Assumptions:
# sudo apt-get install -y build-essentiall libssl-dev automake
# exit on error
View .vimrc
" vim 8.1
filetype plugin indent on
syntax on " turn on color if possible
colorscheme desert
" Use :help 'option' to see the documentation for the given option.
" second line
View -
import numpy as np
import time
N = 102400
x = np.linspace(0.0123, 4567.89, N)
def mine(x,Z,func,name):
print(name)
start = time.time()
for z in range ( 0, Z ) :
y = func(x);
end = time.time()
You can’t perform that action at this time.