I hereby claim:
- I am siddhpant on github.
- I am siddhpant (https://keybase.io/siddhpant) on keybase.
- I have a public key ASDmk_dNxLBn4NwJ0Xj7jtrPMyHaErfTMz0I7xKtPonQaQo
To claim this, I am signing this object:
| CASK='codex' | |
| VER_COMMIT='5ca3f4a5532be3c3c1597d3364a9ac2c56267112' | |
| URL='https://raw.githubusercontent.com/Homebrew/homebrew-cask/${VER_COMMIT}/Casks/c/${CASK}.rb'' | |
| brew uninstall --cask ${CASK} | |
| brew tap-new local/${CASK} | |
| CASK_DIR="$(brew --repository local/${CASK})/Casks" | |
| mkdir -p "${CASK_DIR}" | |
| curl -fsSL ${URL} -o "${CASK_DIR}/${CASK}.rb" |
| update-alternatives-install() { | |
| read -p "Enter command name whose alternative is being set: " cmd_name | |
| echo | |
| read -p "Enter path of the link to '$cmd_name': " cmd_link | |
| echo | |
| read -p "Enter path to the actual executable which is being set as alternative: " alt_path | |
| echo | |
| read -p "Enter the priority of the alternative: " alt_priority | |
| echo | |
| echo |
| # For homebrew. The shell script prepends to path instead of appending, | |
| # overriding system tools, so we have to do a dance. | |
| old_PATH="$PATH" | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)" | |
| new_PATH_prefix="${PATH%":$old_PATH"}" | |
| new_PATH_prefix="${new_PATH_prefix:+:$new_PATH_prefix}" # Handle prefix == ":" | |
| export PATH="$old_PATH$new_PATH_prefix" |
| import asyncio | |
| import contextlib | |
| import sys | |
| from shutil import rmtree | |
| import time | |
| from pathlib import Path | |
| from uuid import uuid4 | |
| from aiofile import AIOFile | |
| from aiofiles import open as aio_open |
| # SPDX-License-Identifier: MIT | |
| # Copyright (c) 2025 Siddh Raman Pant <@siddhpant on GitHub> | |
| # Design skeletal inspired from Kali Linux theme PS1: https://superuser.com/a/1781707 | |
| # ----------------------------------------------------------------------------- | |
| # Check add_starting_line() and add_ending_line() | |
| ____custom_ps1_separator="─" |
| #!/usr/bin/env sh | |
| # ONLY FOR DEBIAN, NOT FOR UBUNTU! | |
| # ONLY FOR DEBIAN, NOT FOR UBUNTU! | |
| # ONLY FOR DEBIAN, NOT FOR UBUNTU! | |
| # ONLY FOR DEBIAN, NOT FOR UBUNTU! | |
| # ONLY FOR DEBIAN, NOT FOR UBUNTU! | |
| set -eux pipefail |
| #!/bin/sh | |
| exec tail -n +3 $0 | |
| # This file provides an easy way to add custom menu entries. Simply type the | |
| # menu entries you want to add after this comment. Be careful not to change | |
| # the 'exec tail' line above. | |
| submenu "Reboot / Shutdown" --class restart { | |
| menuentry "Reboot" --class restart { | |
| reboot |
I hereby claim:
To claim this, I am signing this object:
| myproxy() | |
| { | |
| read -p "Username: " USER | |
| read -s -p "Password: " PW | |
| echo | |
| hostname="proxy.example.com" | |
| port="3128" | |
| PROXY="$(jq -rn --arg x $USER '$x|@uri'):$(jq -rn --arg x $PW '$x|@uri')@$hostname:$port" |
| [ 186.842598] fmc: loading out-of-tree module taints kernel. | |
| [ 186.842635] fmc: module verification failed: signature and/or required key missing - tainting kernel | |
| [ 186.857994] spec 0000:01:00.0: probe for device 0001:0000 | |
| [ 186.858002] spec 0000:01:00.0: enabling device (0000 -> 0002) | |
| [ 186.888160] spec 0000:01:00.0: got file "fmc/spec-init.bin", 1484404 (0x16a674) bytes | |
| [ 187.079632] spec 0000:01:00.0: FPGA programming successful | |
| [ 187.427747] spec 0000:01:00.0: mezzanine 0 | |
| [ 187.427749] Manufacturer: CERN | |
| [ 187.427750] Product name: FmcDio5cha | |
| [ 187.443343] spec 0000:01:00.0: got file "fmc/wr_nic_dio.bin", 1484960 (0x16a8a0) bytes |