Skip to content

Instantly share code, notes, and snippets.

View mhackersu's full-sized avatar
🐧
tokimeku

Mike Hacker mhackersu

🐧
tokimeku
View GitHub Profile
@mahemoff
mahemoff / README.md
Last active September 29, 2024 16:52
Vim Terminal Mode - A short introduction

Vim has a Terminal Mode!

Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.

Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.

Key Bindings

@ld100
ld100 / ArchLinuxWSL2.md
Last active November 14, 2024 09:14
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@keqiang
keqiang / install-k8s-arch.md
Last active August 17, 2023 12:24 — forked from StephenSorriaux/install-kubernetes-archlinux.md
Install Kubernetes on Bare-metal Arch Linux Using kubeadm

Install Kubernetes on Bare-metal Arch Linux Using kubeadm

You can use root to perform following steps until a regular user is indicated

Install Packages that K8s(actually kubeadm) requires

If one of these packages are not presented, kubeadm will report warnings or errors

pacman -S docker ebtables ethtool socat
@eugenehp
eugenehp / ...README.md
Created February 7, 2019 07:31 — forked from statico/...README.md
Knex & TypeScript

Goals

  • Make all parts of Knex TypeScript-safe
@shtratos
shtratos / fetch-dev-secrets-from-vault.sh
Last active August 12, 2024 12:17
Bash script to fetch and store secrets from Azure KeyVault
#!/usr/bin/env bash
#
# Fetch secrets for local development from Azure KeyVault
# and print them to stdout as a bunch of env var exports.
# These secrets should be added to your local .env file
# to enable running integration tests locally.
#
KEY_VAULT=$1
function fetch_secret_from_keyvault() {
@mhackersu
mhackersu / index.html
Created December 19, 2017 06:32
Promise with Callback
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/1.2.2/bluebird.js"></script>
<title>JS Bin</title>
</head>
<body>
@mhackersu
mhackersu / shapefileConversion.md
Created November 1, 2017 22:40 — forked from YKCzoli/shapefileConversion.md
Step through of converting shapefile to geojson with qgis.

Converting shapefiles to geojson

####Assumptions

Get the data

We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:

@ibraheem4
ibraheem4 / postgres-brew.md
Last active October 14, 2024 11:59 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@mhackersu
mhackersu / Dokku.sh
Created September 27, 2017 04:08 — forked from didierfranc/Dokku.sh
Get Dokku working with Ubuntu 16.04 LTS
sudo sh -c "
wget -nv -O - https://packagecloud.io/gpg.key | apt-key add -
echo 'deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main' | tee /etc/apt/sources.list.d/dokku.list
apt-get update -qq > /dev/null
apt-get install sigil -t trusty # We're using the Ubuntu 14.04 package ;)
apt-mark hold sigil
wget https://raw.githubusercontent.com/dokku/dokku/master/bootstrap.sh
bash bootstrap.sh
"