Skip to content

Instantly share code, notes, and snippets.

View kilip's full-sized avatar
🏠
In Search of Enlightenment

Anthonius Munthi kilip

🏠
In Search of Enlightenment
View GitHub Profile
@kilip
kilip / sign-old-commit.md
Last active April 25, 2024 01:44
Git Sign old commit

Example

To sign two specific commits that are respectively 4 and 5 commits back in Git, you can use the git rebase command with the --exec option to sign the commits as they are being rebased. Here are the steps:

  1. Get the hash of the first (older) commit you want to sign by running git log.

  2. Run git rebase -i HEAD~5.

  3. This will open up a text editor with a list of the last 5 commits. Replace the word "pick" with "edit" for the first commit (5) you want to sign.

@kilip
kilip / multipass-on-bridged-network.md
Created February 5, 2023 01:25 — forked from ynott/multipass-on-bridged-network.md
Instructions for running multipass on a bridge network

1. Environmental information

  • OS: Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-59-generic x86_64)
  • Network: 192.168.xxx.0/24
  • Ubuntu multipass host machine IP: 192.168.xxx.yyy(static IP)
  • NIC: enp2s0(bridge host NIC)
  • Bridge NIC:br0

2. Prerequisites

@kilip
kilip / instructions.md
Created May 27, 2022 03:08 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@kilip
kilip / Makefile
Created May 18, 2022 03:19 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@kilip
kilip / heroku.md
Created August 22, 2021 07:27
Heroku Configuration
$ git remote add heroku git@heroku.com:project.git
$ heroku git:remote -a project
@kilip
kilip / truenas-kubernetes.md
Last active October 22, 2020 03:55
TrueNAS Scale Kubernetes Step
midclt call -job kubernetes.update '{"pool": "hd1","cluster_cidr":"10.42.0.0/16", "service_cidr": "10.43.0.0/16","cluster_dns_ip":"10.43.0.10","route_v4_interface":"enp0s3","route_v4_gateway": "10.0.60.1"}'
@kilip
kilip / led_strip_controller_44button_remote_protocol.txt
Last active January 21, 2020 08:06 — forked from Derpidoo/led_strip_controller_44button_remote_protocol.txt
RGB LED Strip Controller 44 Button IR Remote Codes
RGB LED Strip Controller w/44 Button IR Remote Protocol
E.g. https://www.amazon.com/Flexible-Changing-Non-Waterproof-Controller-Included/dp/B01EWBZW0A/
"Hue hue hue" -you, after saving hundreds on your smart lighting
IR Wavelength: 940nm
Code Type: NEC
Code Length: 32 bit
## Function Code
===.====================.=======
@kilip
kilip / docker.md
Created January 17, 2020 12:08
docker shortcut
docker system prune -fa --volumes
@kilip
kilip / php-phpdbg-proxy.sh
Created June 8, 2019 15:24 — forked from VeryStrongFingers/php-phpdbg-proxy.sh
PHPStorm - PHP-PHPDBG Interpreter proxy
#!/bin/bash
#### Dirty/Fake PHP Interpreter to trick PHPStorm into using PHPDBG for running tests with/without code coverage
## For Mac/Linux only, Window's ubuntu subsystem theoretically would work too
##
##
## Related JetBrain's issues/feature requests
## https://youtrack.jetbrains.com/issue/WI-21414
## https://youtrack.jetbrains.com/issue/WI-29112
##