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 / ANSI.md
Created September 8, 2024 11:07 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Marin-Kitagawa
Marin-Kitagawa / decontainer.json
Last active February 12, 2025 11:27
My complete `DevContainer` configuration with all the 798 features configured (as of 07th December 2023)
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/anaconda:1": { "version": "latest" },
"ghcr.io/devcontainers/features/aws-cli:1": { "version": "latest" },
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/common-utils:2": {
#!/usr/bin/env bash
# WARNING!!
# This will obliterate all the data in your partition!! (not actually true, but act as if it was)
# Do NOT execute this script if you don't fully understand it!
# a few vars
amount_of_swap=$( free --si -g | grep Mem: | gawk '{ print $2 + 1}' )
# create directories
@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
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 / 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;
}
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 / 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
@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 / 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