Skip to content

Instantly share code, notes, and snippets.

Scott Stanfield scottstanfield

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 / 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()
View nuke.rstudio.sh
#!/bin/sh
sudo rstudio-server stop
sudo killall rsession
sudo rstudio-server start
You can’t perform that action at this time.