Skip to content

Instantly share code, notes, and snippets.

View utx0's full-sized avatar
💭
What's the meaning this?

LUKE™ utx0

💭
What's the meaning this?
View GitHub Profile
@utx0
utx0 / set-chroot.sh
Created June 3, 2022 02:11 — forked from Tamal/set-chroot.sh
Setting up chroot from a live image in Fedora. Regenerate grub2 for Fedora.
$ # Use Live CD to boot
$ sudo su # Switch to root
$ fdisk -l # Get names of root, boot & EFI partition names. you can also use blkid
$ mount /dev/mapper/fedora_localhost--live-root /mnt # mount root partition
$ cat /mnt/etc/fedora-release
Fedora release 31 (Thirty One)
$ mount /dev/nvme0n1p2 /mnt/boot # mount boot partition
$ mount /dev/nvme0n1p1 /mnt/boot/efi # mount EFI partition
# Note: If you are not able to mount EFI partition ('Input/Output error'),
# You may have to repair ESP file system or format ESP.

Keybase proof

I hereby claim:

  • I am utx0 on github.
  • I am utx0_ (https://keybase.io/utx0_) on keybase.
  • I have a public key ASBdYgUXcsOU2mdSUlyvq0bMBz9NR1GAqSVWrp16kA6P2Ao

To claim this, I am signing this object:

Terraform v0.12.24
Initializing plugins and modules...
2020/04/16 02:45:32 [DEBUG] Using modified User-Agent: Terraform/0.12.24 TFC/c375d4d2eb
module.helm-stack.module.helm-mongodb-shared.helm_release.mongodb-sharded: Destroying... [id=mongodb-sharded]
module.helm-stack.module.helm-mongodb-shared.helm_release.mongodb-sharded: Still destroying... [id=mongodb-sharded, 10s elapsed]
module.helm-stack.module.helm-mongodb-shared.helm_release.mongodb-sharded: Still destroying... [id=mongodb-sharded, 20s elapsed]
module.helm-stack.module.helm-mongodb-shared.helm_release.mongodb-sharded: Destruction complete after 20s
module.helm-stack.module.helm-mongodb-shared.helm_release.mongodb-sharded: Creating...
module.helm-stack.module.helm-mongodb-shared.helm_release.mongodb-sharded: Still creating... [10s elapsed]
module.helm-stack.module.helm-mongodb-shared.helm_release.mongodb-sharded: Still creating... [20s elapsed][
@utx0
utx0 / main.go
Last active May 26, 2019 07:07
golang Binance API example
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
)
// exchangeInfoData is the primary json object
@utx0
utx0 / Makefile
Created May 26, 2019 05:40 — forked from TheHippo/Makefile
Golang Makefile example
OUT := binariy-name
PKG := gitlab.com/group/project
VERSION := $(shell git describe --always --long --dirty)
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/)
all: run
server:
go build -i -v -o ${OUT} -ldflags="-X main.version=${VERSION}" ${PKG}
This is a test
@utx0
utx0 / setup.sh
Last active March 21, 2019 08:04
Install my dotfiles please
#!/bin/bash
# git clone https
git clone https://github.com/lukekhamilton/KeyStore.git ~/.keystore
# cd
cd ~/.keystore
# decrypt
./decrypt.sh
Verifying my Blockstack ID is secured with the address 1LkdrBXqqtLN3CqQ4iCZT6CnxvU7DfaQFT https://explorer.blockstack.org/address/1LkdrBXqqtLN3CqQ4iCZT6CnxvU7DfaQFT
Verifying that "lukekhamilton.id" is my Blockstack ID. https://explorer.blockstack.org/name/lukekhamilton.id

Keybase proof

I hereby claim:

  • I am lukekhamilton on github.
  • I am lukekhamilton (https://keybase.io/lukekhamilton) on keybase.
  • I have a public key ASAcgUpCxYU3J_rJW5OeH3TxWqn8UdfM0LtOcJZPKmss1go

To claim this, I am signing this object: