brew install ghostty atuin
#install ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#install ohmyzsh autocompletion extensions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
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
| #!/bin/bash | |
| set -exo pipefail | |
| #install go | |
| cd /root | |
| rm -rf go | |
| rm -rf go_path | |
| find ./ -name "go*.tar.gz" -delete | |
| if [ "$GOROOT" != "/root/go" ]; then | |
| echo "export PATH=/root/go/bin:\${PATH}" >> .bashrc |
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
| { | |
| "title": "Leopold FC660 Capslock to FN w/ function keys and escape", | |
| "rules": [ | |
| { | |
| "description": "Map capslock to fn", | |
| "manipulators": [ | |
| { | |
| "conditions": [{ "type": "device_if", "identifiers": [{ | |
| "product_id": 257, "vendor_id": 1204 | |
| }]}], |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/usr/local/bin/python | |
| from PyPDF2 import PdfFileReader, PdfFileWriter | |
| import sys | |
| if len(sys.argv) < 4: | |
| print "usage: mix.py odd.pdf even.pdf result.pdf" | |
| exit() | |
| odd = PdfFileReader(open(sys.argv[1],'rb')).pages |
I hereby claim:
- I am mike-anderson on github.
- I am mike0x41 (https://keybase.io/mike0x41) on keybase.
- I have a public key ASDJHQc6VCLy3FvgW8v7EfzPzcZ6n2o0NFfoHvdq4O_10Ao
To claim this, I am signing this object:
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
| #some useful path aliases | |
| set -x DEV_TOOLS "$HOME/Dev/tools" | |
| #place usr/local/bin in the front | |
| set -x PATH "/usr/local/bin" $PATH | |
| #imports | |
| . ~/.autojump/etc/profile.d/autojump.fish | |
| set -x PATH $PATH "$DEV_TOOLS/depot_tools" | |
| set -x PATH $PATH "$DEV_TOOLS/../harpDoc/bin" |
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
| from sklearn.feature_extraction.text import TfidfVectorizer | |
| from sklearn.ensemble import RandomForestClassifier | |
| from sklearn.cross_validation import cross_val_score | |
| import json | |
| import numpy | |
| data = json.load(open('askreddit.json')) | |
| corpus = [] | |
| classifiers = [] | |
| for article_key in data: |
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
| import sys | |
| import requests | |
| import json | |
| subreddit_name = sys.argv[1] | |
| output_file = open(sys.argv[2],'w') | |
| subreddit_address = 'http://reddit.com/r/'+subreddit_name+'.json' | |
| #default is front page, hot | |
| subreddit = requests.get(subreddit_address).json() |
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
| class Election: | |
| # ed_data: [district_name, record] | |
| ed_data = None | |
| # va_data: {district_name: [record]} | |
| va_data = None | |
| def __init__(self,ed_data_,va_data_): | |
| self.ed_data = ed_data_ | |
| self.va_data = va_data_ |
NewerOlder