Skip to content

Instantly share code, notes, and snippets.

@kensleDev
kensleDev / CroutonXFCE4_INIT.sh
Last active December 17, 2020 20:32
Crouton
clear
echo "Press enter to start installs"
read
sudo apt-get update
sudo apt-get -y install git
sudo apt-get -y install chromium-browser
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y ppa:gottcode/gcppa
sudo apt-get install -y xfce4-whiskermenu-plugin
#Requires -RunAsAdministrator
Set-ExecutionPolicy Bypass -Scope Process -Force
$reposPath = "$env:userprofile/repos"
$envPath = "$reposPath/env/windows_local"
$powershellPath = "$env:userprofile/Documents/WindowsPowershell"
$log = ""
@kensleDev
kensleDev / vimium
Last active May 29, 2022 23:46
Browser
-- keys
unmap h
unmap j
unmap k
unmap l
map j scrollLeft
map k scrollDown
map l scrollUp
@kensleDev
kensleDev / Download.ps1
Last active April 25, 2024 10:02
Dev terminal setup for Powershell
$powershellDir = "~\.config\powershell"
New-Item -ItemType Directory -Force -Path $powershellDir
cd $powershellDir
Invoke-WebRequest -Uri 'https://gist.githubusercontent.com/kensleDev/13f9290876e782b2e67aab8b463e55f7/raw/66cdc60aa61da8a88a480c14b5fe817beba7dab9/profile.ps1' -OutFile 'profile.ps1'
Invoke-WebRequest -Uri 'https://gist.githubusercontent.com/kensleDev/13f9290876e782b2e67aab8b463e55f7/raw/cda7a409a315bf767f830897b0b8f53611e11f1e/Install.ps1' -OutFile 'Install.ps1'
Invoke-WebRequest -Uri 'https://gist.githubusercontent.com/kensleDev/13f9290876e782b2e67aab8b463e55f7/raw/13c1f7eb8ffa50e385c3b960c76ded9389bdaf3e/takuya.omp.json' -OutFile 'takuya.omp.json'
@kensleDev
kensleDev / Instructions.md
Last active May 30, 2022 15:35
VSCode neovim init

Install Scoop

[environment]::setEnvironmentVariable('SCOOP','C:\scoop','User')

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

Install neovim

@kensleDev
kensleDev / alias
Last active June 16, 2022 17:26
Docker scripts
# --------------------------------File Ops
alias c='clear'
alias l='ls'
alias laa='ls -a'
alias la='ls -la'
alias lhh='ls -d .?* '
alias lh='ls -ld .?* '
# ---------------------------------docker
# Dependancies
Invoke-WebRequest -Uri "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -OutFile "~\Downloads\VCLibs.appx"
Add-AppxPackage -Path "~\Downloads\VCLibs.appx"
# chocolatey - needed for apps that can't be installed via scoop (terminal)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install -y git powershell-core microsoft-windows-terminal
# font install
mkdir ~/.config/fonts
##############################
# 1 - Install Ansible dependancies (Python3) and clone dotfiles
##############################
sudo pacman -Syu
yes | sudo pacman -S git
git clone https://aur.archlinux.org/yay-git.git ~/tmp/yay
cd ~/tmp/yay
yes | makepkg -si
yay -Syu
// Place your key bindings in this file to override the defaultsauto[]
[
// Which key
{
"key": "space",
"command": "whichkey.show",
"when": "editorTextFocus && neovim.mode != insert"
},
{
"key": "ctrl+shift+;",
@kensleDev
kensleDev / macros.cfg
Created May 1, 2023 09:28
Printers Config
[gcode_macro G29]
gcode:
G28
BED_MESH_CALIBRATE
G0 X0 Y0 Z10 F6000
BED_MESH_PROFILE save=default
[gcode_macro WIPE_NOZZLE]
gcode: