Skip to content

Instantly share code, notes, and snippets.

View Silverbullet069's full-sized avatar

VH Silverbullet069

View GitHub Profile
@Silverbullet069
Silverbullet069 / lepton.md
Last active April 17, 2023 18:57
[Lepton UI Changing] This is a guide to modify UI inside Lepton application #Lepton #Guru

It's the egg of Columbus

You don't need to open DevTools, configure Local Overrides and a bunch of little-wizzle mini settings.

Just MODIFY ITS SOURCE CODE!!!!

D:\Development_Tools\Lepton\resources\app.asar

P/s: I don't say that we eliminate DevTools completely, you still need to identify the element using it.

@Silverbullet069
Silverbullet069 / mysql.md
Last active July 18, 2023 08:51
[MySQL Command] Some mysql commands that i wont remember tomorrow #mysql #guru

Running mysqldump in Git Bash on Windows

DO NOT USE >:

mysqldump -u root -p sakila > sakila_copy.sql

USE -r instead:

mysqldump -u root -p sakila -r sakila_copy.sql

@Silverbullet069
Silverbullet069 / find.md
Last active May 1, 2023 02:18
[find command] wont remember :v #linux

find can search for files/dirs in a dir hierarchy, based on various criteria such as name, type, size, time modified, ownership, ...

find PATH [OPTIONS] [EXPRESSIONS]

Some most common options

-name PATTERN: specify the name of the file/directory you want to search.

Note: dot . not represent a single character in this pattern?

Note 2: indeed, turns out:

@Silverbullet069
Silverbullet069 / zsh.md
Created April 18, 2023 17:03
[Zsh config] Some zsh configs i've learned on the internet #zsh

Lightning fast lazy load zfunctions directory just like fish.

Add this to .zshrc

export ZFUNCTIONS=${ZDOTDIR:-$HOME}/.zfunctions
[ -d $ZFUNCTIONS ] || mkdir -p $ZFUNCTIONS

for _zf in $ZFUNCTIONS/*(.N); do
  autoload -U $_zf
done
@Silverbullet069
Silverbullet069 / curl.md
Last active April 19, 2023 10:11
[curl command] alternate, more functionality than wget #linux

Basic command

-O

curl -O URL		# -O option

Change file's name and type

curl URL > filename
@Silverbullet069
Silverbullet069 / ln.md
Last active May 2, 2023 03:31
[ln command] symlink in linux is so easy #linux

ln [OPTION] TARGET DIR

Note: in order to create symbolic links on Windows, using Git Bash, ... (not PowerShell or CMD), install gsudo using Chocolatey first!

Options

-s: creates symbolic link instead of hard link

-f: goes with -s option, it overrides the file that have the same name as the symbolic link.

@Silverbullet069
Silverbullet069 / unzip.md
Created April 19, 2023 11:50
[unzip command] Don't forget this command! #linux

Extract to a particular destination folder

unzip file.zip -d destination_folder
@Silverbullet069
Silverbullet069 / subl.md
Created April 20, 2023 13:51
[Sublime Text 4] Hotkey, Custom setting, ... #sublimetext4

Hotkey

Expand selection on word

Ctrl + D

Expand selection on line

Ctrl + L

Expand selection to Scope

Ctrl + Shift + Space

@Silverbullet069
Silverbullet069 / node.md
Last active April 20, 2023 14:58
[Node NVM NPM] Some notes about node related #linux #node #nvm #npm

Versioning

You should only use LTS version for stable use, both for development and production.

Updated 20/04/2023, latest version of Node: v18.16.0

Do not use node without version control tool like nvm or n

Install latest version

nvm install node

@Silverbullet069
Silverbullet069 / .eslintrc.js
Created April 20, 2023 16:53
[ESLint Settings] Strict ESLint config for React, ES6 (based on Airbnb Code style) #linter #eslint
https://gist.github.com/nkbt/9efd4facb391edbf8048