Skip to content

Instantly share code, notes, and snippets.

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

Marin Kitagawa Marin-Kitagawa

❤️
View GitHub Profile
[
{
"name": "3024 Day",
"black": "#090300",
"red": "#db2d20",
"green": "#01a252",
"yellow": "#fded02",
"blue": "#01a0e4",
"purple": "#a16a94",
"cyan": "#b5e4f4",
@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
@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 / README.txt
Created September 9, 2021 16:08
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@Marin-Kitagawa
Marin-Kitagawa / scripts.sh
Created September 20, 2021 10:39
Snap installation, enabling and starting snap and Ruby installation via Snap and setting the latest Ruby as default
# Install necessary dependencies for installing Ruby
sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev
# Install `snap`
sudo apt install snapd
# Unmask `snapd.service`
sudo systemctl unmask snapd.service
# Enable `snapd.service`
@Marin-Kitagawa
Marin-Kitagawa / Powershell_Modules.ps1
Created September 23, 2021 16:26
Installing modules mentioned in my powershell profile
Install-Module posh-git
Install-Module oh-my-posh
Install-Module -Name PSReadLine -Force -SkipPublisherCheck
Install-Module Terminal-Icons -Repository PSGallery
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
Import-Module -Name posh-git
Import-Module -Name Terminal-Icons
Set-Alias desktop "Desktop.ps1"
Register-ArgumentCompleter -Native -CommandName winget -ScriptBlock {
param($wordToComplete, $commandAst, $cursorPosition)
@Marin-Kitagawa
Marin-Kitagawa / userChrome.css
Last active May 7, 2023 21:49
Firefox hide everything and keep only the content of the webpage visible. Toggle the visibility of the bars on-demand. Requires `Sidebery` extension
/*
* Taken from multiple sources
* https://www.reddit.com/r/FirefoxCSS/comments/pcuir9/sidebery_hideshow_sidebar_when_hovering_very/
* https://mrotherguy.github.io/firefox-csshacks/
* browser.newtabpage.activity-stream.improvesearch.handoffToAwesomebar = False
* The above one is to search the url right in the search box in the new tab page without handing the control over to the url bar
*/
.tabbrowser-tab {
visibility: collapse;
}
import Uppy, { debugLogger } from '@uppy/core'
import Dashboard from '@uppy/dashboard'
import GoogleDrive from '@uppy/google-drive'
import Dropbox from '@uppy/dropbox'
import Instagram from '@uppy/instagram'
import Facebook from '@uppy/facebook'
import OneDrive from '@uppy/onedrive'
import Zoom from '@uppy/zoom'
import Unsplash from '@uppy/unsplash'
@Marin-Kitagawa
Marin-Kitagawa / rust-command-line-utilities.markdown
Created March 22, 2023 08:29 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool