Skip to content

Instantly share code, notes, and snippets.

View Marin-Kitagawa's full-sized avatar
❤️

Marin Kitagawa Marin-Kitagawa

❤️
View GitHub Profile
@Marin-Kitagawa
Marin-Kitagawa / Microsoft.Powershell_profile.ps1
Last active September 19, 2021 20:52
Powershell (`pwsh`) profile
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme jandedobbeleer
Import-Module -Name Terminal-Icons
function mcd($a) {
md $a && cd $a
}
function rmrf($a) {
@Marin-Kitagawa
Marin-Kitagawa / init.vim
Last active October 27, 2021 15:34
Latest init.vim without problems. Compatible with Neovim and Neovide
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/main.vim'
" Install Vim-Plug
" iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
" ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
" Install Vim-Plug in ~\AppData\Local\nvim\autoload and NOT inside nvim-data
set guifont=FiraCode\ Nerd\ Font:h12
set number
set relativenumber
" set shellslash
" Plug plugin install setup
[
{
"name": "3024 Day",
"black": "#090300",
"red": "#db2d20",
"green": "#01a252",
"yellow": "#fded02",
"blue": "#01a0e4",
"purple": "#a16a94",
"cyan": "#b5e4f4",
@Marin-Kitagawa
Marin-Kitagawa / rust_linux_cli_tools.sh
Last active November 28, 2022 18:36
Rust alternatives to conventional CLI tools in *nix OS
cargo install topgrade sd hyperfine du-dust dutree ytop bottom procs skim bat exa fd-find starship ripgrep tokei tealdeer bandwhich grex rmesg zoxide git-delta tp-note nu sd
########################################
# #
# #
# ripgrep on Windows choco/scoop #
# #
# #
########################################
# topgrade: Updates everything in the system. It is platform-independent.
# sd : `sed` command alternative and it uses normal regex just like any other programming language
@Marin-Kitagawa
Marin-Kitagawa / perl-6-code-golf-io.p6
Created July 28, 2021 02:33 — forked from mcreenan/perl-6-code-golf-io.p6
Perl 6 Solutions for code-golf.io
# NOTE: EACH SOLUTION IS SELF CONTAINED.
# This file can't be run as a script because the trailing semi-colon is left off of each solution.
# Divisors
{(1…$_).grep($_%%*).put}for 1…Ⅽ
# Emirp Numbers
$_≠.flip&&($_,.flip)».is-prime.all&&.say for ^Ⅿ
# Evil Numbers
@Marin-Kitagawa
Marin-Kitagawa / init.vim
Last active January 10, 2022 02:08
init.vim perfected Neovim nightly
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/main.vim'
" Install Vim-Plug
" iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
" ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
" Install Vim-Plug in ~\AppData\Local\nvim\autoload and NOT inside nvim-data
set guifont=FiraCode\ Nerd\ Font:h12
set number
set relativenumber
" set shellslash
" Plug plugin install setup
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@Marin-Kitagawa
Marin-Kitagawa / init.vim
Last active June 24, 2021 16:02
New `init.vim` file for `Neovide` based on `vim-plug` and not `vundle`
" Install Vim-Plug
" iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
" ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
" Install Vim-Plug in ~\AppData\Local\nvim\autoload and NOT inside nvim-data
set guifont=FiraCode\ Nerd\ Font:h16
set number
set relativenumber
" set shellslash
" Plug plugin install setup
@Marin-Kitagawa
Marin-Kitagawa / old_init.vim
Last active June 14, 2021 15:49
My Neovide configuration
" %userprofile%/AppData/Local/nvim/init.vim
set guifont=FiraCode\ Nerd\ Font:h16
set number
set relativenumber
filetype off
set shellslash
set rtp+=C:\Users\quant\vimfiles\bundle\Vundle.vim
call vundle#begin('~/vimfiles/bundle')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'