Skip to content

Instantly share code, notes, and snippets.

View noizbuster's full-sized avatar
😎
Awesome

NoizBuster (Wonwoo) noizbuster

😎
Awesome
View GitHub Profile
@noizbuster
noizbuster / .sh
Created June 7, 2021 10:46
Create SSH Key Pair for Github deployment
ssh-keygen -m PEM -t rsa -b 4096 -f ./keyFileName -C "[email protected]"
@noizbuster
noizbuster / hyper_as_default_terminal.sh
Created June 11, 2021 18:06
hyper as default terminal of ubuntu
which hyper
# /usr/local/bin/hyper
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/hyper 0
sudo update-alternatives --set x-terminal-emulator /usr/local/bin/hyper
@noizbuster
noizbuster / localStorageAtom.ts
Created July 31, 2021 17:07
persistent recoil.js atom using local storage
import { atom, AtomEffect, AtomOptions, DefaultValue } from 'recoil';
export const localStorageEffect =
(key: string): AtomEffect<any> =>
({ setSelf, onSet }) => {
const savedValue = localStorage.getItem(key);
if (savedValue != null) {
setSelf(JSON.parse(savedValue));
}
@noizbuster
noizbuster / hookstate.helper.js
Created July 31, 2021 17:09
utilities for hookstate
import _ from 'lodash';
export function cloneState(stateValue, path) {
const value = path ? _.get(stateValue, path) : stateValue;
if (!value) {
return value;
}
return JSON.parse(JSON.stringify(value));
}
@noizbuster
noizbuster / ubuntu24.04.md
Last active July 16, 2024 07:05
Ubuntu 24.04

update ubuntu

sudo apt update
sudo apt dist-upgrade && sudo apt autoremove && sudo apt autoclean

ubuntu-restricted-extras (when you forgot installing extra softwares)