Skip to content

Instantly share code, notes, and snippets.

View mysqto's full-sized avatar
🖖
Focusing

Chen Lei mysqto

🖖
Focusing
View GitHub Profile
@mysqto
mysqto / getgo
Last active March 30, 2022 09:29
script to install latest go on linux
#!/usr/bin/env bash
function _realpath() {
python3 -c "import os; print(os.path.realpath('$1'))"
}
function installed() {
executable="$1"
command -v "$executable" >/dev/null 2>&1
}
@mysqto
mysqto / fcopy
Created May 24, 2021 02:27
copy files to clipboard
#!/usr/bin/osascript
use framework "Appkit"
property this : a reference to current application
property NSFileManager : a reference to NSFileManager of this
property NSImage : a reference to NSImage of this
property NSMutableArray : a reference to NSMutableArray of this
property NSPasteboard : a reference to NSPasteboard of this
property NSString : a reference to NSString of this
property NSURL : a reference to NSURL of this

Keybase proof

I hereby claim:

  • I am mysqto on github.
  • I am mysqto (https://keybase.io/mysqto) on keybase.
  • I have a public key ASDlzhUw8B3Fq5Mq7JOQ1t8o_q8JAau650codpdxbL8MIgo

To claim this, I am signing this object:

@mysqto
mysqto / kepbod
Created August 16, 2014 16:22
kepbod color scheme for mintty
ForegroundColour = 197,200,198
BackgroundColour = 39,40,34
CursorColour = 253,157,79
Blue = 102,217,239
BoldYellow = 244,191,117
BoldWhite = 249,248,245
BoldCyan = 18,207,192
Green = 166,226,46
Magenta = 174,129,255
BoldMagenta = 225,163,238