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 / 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 / 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
@Silverbullet069
Silverbullet069 / sublime-linter-error.md
Created April 21, 2023 02:16
[SublimeLinter Error] After one month i won't remember this, noted #sublimetext

/usr/bin/env: ‘node’: No such file or directory

@Silverbullet069
Silverbullet069 / nvm.md
Last active April 21, 2023 03:37
[Some common errors] I've spent so many hours identifying this shjt, DO NOT forget #fish #nvm

At the start of a Fish Shell, by default it doesn't source nvm to preserve speed.

=> By default, $PATH don't have /bin directory /home/darkswordman/.nvm/versions/node/v18.16.0/bin

Common error

Since there are programs, plugins (e.g. plugins in SublimeLinter), sometimes they need to know where node is to run some node command.

Since we only source NVM when we use one of the aliases (function aliases, NOT binary aliases), and these function aliases only exists in Fish Shell.

@Silverbullet069
Silverbullet069 / java.md
Created April 22, 2023 05:05
[Java] Some notes worth to take #java

Adding action listener

Nested class implements ActionListener and overrides actionPerformed.

public class Foo{
    Foo(){
        something.addActionListener(new ButtonListener());
    }
 //...