Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function now() { | |
const tzoffset = new Date().getTimezoneOffset() * 60; | |
return (new Date(Date.now()/1000 - tzoffset)).getTime(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array.push(array.splice(array.indexOf(obj), 1)[0]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VID_URL=$1 | |
VID_OUT_PATH=$2 | |
START_TIME=$3 | |
DURATION_TIME=$4 | |
ffmpeg -ss $START_TIME -i $VID_URL -to $DURATION_TIME -vcodec copy -acodec copy -avoid_negative_ts make_zero $VID_OUT_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Genrate keys | |
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com" | |
----------------------------------------------------------- | |
# Edit ~/.ssh/config | |
Host your.hostname.com | |
Hostname github.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env GOOS=linux GOARCH=arm GOARM=5 go build <file> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -type l -print | perl -nle '-e || print' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' https://www.youtube.com/watch?v=SLOBmN2iN60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ============================================================================= | |
" Filename: autoload/lightline/colorscheme/zfarbp_lightline_theme.vim | |
" Author: zfarbp | |
" License: MIT License | |
" Last Change: 2020/03/15 | |
" ============================================================================= | |
" color definitions | |
" [ "gui", cterm ] | |
let s:base03 = [ '#242424', 235 ] |
OlderNewer