Readded from mbp

This commit is contained in:
2018-10-16 21:56:41 +02:00
parent fd267492ca
commit 226726f5a8
6 changed files with 383 additions and 0 deletions

27
.aliases Normal file
View File

@@ -0,0 +1,27 @@
alias ohmyzsh="mate ~/.oh-my-zsh"
alias private='set +o history'
alias uprivate='set -o history'
alias wion='networksetup -setairportpower en0 on'
alias wiof='networksetup -setairportpower en0 off'
alias blueon='blueutil -p 1'
alias blueoff='blueutil -p 0'
alias cli='python ~/Dropbox/python/cli.py'
alias plexloop='watch -n 4 python ~/Dropbox/Node-Com-Handler/old_v0.1/plexLoop.py'
alias load='/Volumes/keys/load'
alias sumcheck='python ~/python/sumcheck.py'
alias home='watch python3 ~/python/homeChecker/homeCheck.py'
alias lsd='ls -d */'
alias goo='~/./python/api/gooShort.py -c'
alias pirate='~/./python/pirateFetch/fetchPiratebay.py'
alias show='~/./python/seasonedShows/seasonedFolders.py'
alias llpass='lpass show -c --password'
alias subl='open /Applications/Sublime\ Text.app/'
alias playing='http https://api.kevinmidboe.com/api/v1/plex/playing -b'
alias toggle='curl -X POST 10.0.0.67:3069/toggle > /dev/null 2>&1'
alias ip='~/.getip.sh'
alias forecast='~/python/termWeather/term_forecast/./term_weather.py'
alias trash='rmtrash'
alias del="rmtrash"
alias emoji="http https://api.kevinmidboe.com/api/v1/emoji -b"
alias gimme="grep -rnw ''"
alias gdot='/usr/bin/git --git-dir=$HOME/.dots/ --work-tree=$HOME'

47
.bash_profile Normal file
View File

@@ -0,0 +1,47 @@
export PS1="\W:$ "
export SHELL="/bin/bash"
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
HISTFILESIZE=10000
# import aliases from file
. ~/.aliases
function vpn-connect {
/usr/bin/env osascript <<-EOF
tell application "System Events"
tell current location of network preferences
set VPN to service "VPN (midboe.ddns.net)" -- your VPN name here
if exists VPN then connect VPN
repeat while (current configuration of VPN is not connected)
delay 1
end repeat
end tell
end tell
EOF
}
function vpn-disconnect {
/usr/bin/env osascript <<-EOF
tell application "System Events"
tell current location of network preferences
set VPN to service "VPN (midboe.ddns.net)" -- your VPN name here
if exists VPN then disconnect VPN
end tell
end tell
return
EOF
}
# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
# PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
# export PATH
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"

5
.bashrc Normal file
View File

@@ -0,0 +1,5 @@
# PATH=$PATH:~/bin
Tab: menu-complete
"\e[Z": complete
alias config=/usr/bin/git --git-dir=/Users/kevinmidboe/.cfg/ --work-tree=/Users/kevinmidboe'

132
.hyper.js Normal file
View File

@@ -0,0 +1,132 @@
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
// `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
cursorShape: 'BLOCK',
// set to true for blinking cursor
cursorBlink: false,
// color of the text
foregroundColor: '#fff',
// terminal background color
backgroundColor: '#000',
// border color (window, tabs)
borderColor: '#333',
// custom css to embed in the main window
css: '',
// custom css to embed in the terminal window
termCSS: '',
// set to `true` (without backticks) if you're using a Linux setup that doesn't show native menus
// default: `false` on Linux, `true` on Windows (ignored on macOS)
showHamburgerMenu: '',
// set to `false` if you want to hide the minimize, maximize and close buttons
// additionally, set to `'left'` if you want them on the left, like in Ubuntu
// default: `true` on windows and Linux (ignored on macOS)
showWindowControls: '',
// custom padding (css format, i.e.: `top right bottom left`)
padding: '12px 14px',
// the full list. if you're going to provide the full color palette,
// including the 6 x 6 color cubes and the grayscale map, just provide
// an array here instead of a color map object
colors: {
black: '#000000',
red: '#ff0000',
green: '#33ff00',
yellow: '#ffff00',
blue: '#0066ff',
magenta: '#cc00ff',
cyan: '#00ffff',
white: '#d0d0d0',
lightBlack: '#808080',
lightRed: '#ff0000',
lightGreen: '#33ff00',
lightYellow: '#ffff00',
lightBlue: '#0066ff',
lightMagenta: '#cc00ff',
lightCyan: '#00ffff',
lightWhite: '#ffffff'
},
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
// if left empty, your system's login shell will be used by default
// make sure to use a full path if the binary name doesn't work
// (e.g `C:\\Windows\\System32\\bash.exe` instead of just `bash.exe`)
// if you're using powershell, make sure to remove the `--login` below
shell: '/bin/zsh',
// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
// by default ['--login'] will be used
shellArgs: ['--login'],
// for environment variables
env: {},
// set to false for no bell
// bell: 'SOUND',
bell: false,
// if true, selected text will automatically be copied to the clipboard
copyOnSelect: false
// if true, on right click selected text will be copied or pasted if no
// selection is present (true by default on Windows)
// quickEdit: true
// URL to custom bell
// bellSoundURL: 'http://example.com/bell.mp3',
// for advanced config flags please refer to https://hyper.is/#cfg
},
// a list of plugins to fetch and install from npm
// format: [@org/]project[#version]
// examples:
// `hyperpower`
// `@company/project`
// `project#1.0.1`
plugins: [
"hyper-markdown-preview",
"hypercwd",
"hyper-statusline",
"hyper-pane",
"hyper-chesterish",
"hyperterm-tabs",
"hyper-dracula"
],
// in development, you can create a directory under
// `~/.hyper_plugins/local/` and include it here
// to load it and avoid it being `npm install`ed
localPlugins: [],
hyperStatusLine: {
dirtyColor: 'salmon',
},
paneNavigation: {
showIndicators: false,
indicatorPrefix: '^ddd',
},
};

78
.ssh/config Normal file
View File

@@ -0,0 +1,78 @@
Include ~/.ssh/*_config
Host imm
HostName 10.0.0.114
User USERID
KexAlgorithms diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
Host apollo
HostName 10.0.0.41
User kevin
# Host imm
# HostName 10.0.0.114
# User userid
Host janus
HostName 10.0.0.42
User root
Host mainframe
HostName 10.0.0.51
User kevin
Host plex
HostName 10.0.0.44
User kevin
Host api
HostName 10.0.0.45
User kevin
Host xoa
HostName 10.0.0.43
User kevin
Host i2c
HostName 10.0.0.69
User pi
Host macserver
HostName 10.0.0.31
User macserver
Host airplay
HostName 10.0.0.21
User pi
Host hub
HostName 10.0.0.25
User pi
Host ntnu
Hostname login.stud.ntnu.no
User komidboe
Host chip2
Hostname 10.0.0.67
User chip
Host zerow
Hostname 10.0.0.68
User pi
Host kevinmidboe
Hostname kevinmidboe.com
Port 2222
User kevinmidboe
Host curtain
Hostname 10.0.0.9
User pi

94
.zshrc Normal file
View File

@@ -0,0 +1,94 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/kevinmidboe/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
# cause zsh load theme from this variable instead of
# looking in ~/.oh-my-zsh/themes/
# An empty array have no effect
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
. ~/.aliases