Skip to content

Instantly share code, notes, and snippets.

View louiscklaw's full-sized avatar
😀
life finds a way ... LEARN !!!

Louis Law, louiscklaw louiscklaw

😀
life finds a way ... LEARN !!!
View GitHub Profile

LAST UPDATE FEDORA 38 (2023-06-25)

grubby change default kernel

$ sudo grubby --info=ALL

$ sudo grubby --default-index

$ sudo grubby --set-default 1

My fedora setup journal

tmux

$
cd
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
#!/usr/bin/env bash
# curl https://gist.githubusercontent.com/louiscklaw/3914ffc1c51bf6741b1b56ce37685537/raw/87efd520bd06a7b5a5fac5650ef5bffd8b1b9fe8/rpi_bootstrap.sh | bash
set -ex
sudo apt install -y git wget curl openssh-server
#!/usr/bin/env bash
set -ex
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
git clone https://github.com/zearp/Nucintosh.git
git clone https://github.com/corpnewt/gibMacOS.git
git clone https://github.com/corpnewt/ProperTree.git
git clone https://github.com/corpnewt/GenSMBIOS.git
#!/usr/bin/env bash
set -ex
echo 'helloworld'
sw_vers
mkdir -p workdir
@louiscklaw
louiscklaw / bootstrap.sh
Last active May 7, 2021 10:13
bootstrap
#!/bin/bash
# curl -L http://bit.ly/louislabs-bootstrap |sh
echo "helloworld"
cd ~
mkdir -p _workspace
pushd $HOME/_workspace
You can do that with a few git commands. Please back up your repo before doing this:
First create the new history:
`git checkout --orphan new-master`
Then create the first commit:
`git commit`
@louiscklaw
louiscklaw / ZreBbmKtOoE_viewer_count.json
Last active August 10, 2020 07:07
json-host-tryout
[{"time":"2020-08-09T13:16:51.342Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"81"},{"time":"2020-08-09T13:16:55.090Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"83"},{"time":"2020-08-09T13:16:57.360Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"81"},{"time":"2020-08-09T13:21:51.701Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"85"},{"time":"2020-08-09T13:21:55.182Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"86"},{"time":"2020-08-09T13:26:15.305Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"92"},{"time":"2020-08-09T13:26:32.628Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"92"},{"time":"2020-08-09T13:26:50.022Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"93"},{"time":"2020-08-09T13:27:07.332Z","url":"https://www.youtube.com/watch?v=ZreBbmKtOoE","viewer_count":"94"},{"time":"2020-08-09T13:27:26.857Z","url":"https://w
#!/usr/bin/env bash
# set -x
#blablabla11111
source ~/.credentials.rc
MkCd () {
mkdir -p $1
{
"hello": "world"
}