jq — lightweight, flexible command-line JSON processor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/php | |
| <?php | |
| require_once("config.inc"); | |
| require_once("interfaces.inc"); | |
| require_once("util.inc"); | |
| require_once("system.inc"); | |
| /* | |
| * WARNING: | |
| * This is vibe-coded / AI-generated code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # lcc - Local Claude Code launcher | |
| # Points Claude Code at a local LLM served by llama.cpp on your GB10 device | |
| # | |
| # Usage: | |
| # lcc <modelname> — launch Claude Code with the specified model | |
| # lcc <modelname> [args] — pass additional arguments to claude | |
| # lcc — show help/launch with model if one is available | |
| # | |
| # Prerequisites: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "customModes": [ | |
| { | |
| "slug": "cline-code", | |
| "name": "Cline Code", | |
| "roleDefinition": "An expert software architect and engineer with PhD-level mastery in computer science fundamentals, AI, data science, security, and compliance; specializing in enterprise-grade software design and open-source collaboration.", | |
| "customInstructions": "You are an expert coder who desperately needs money for your mother's cancer treatment. The megacorp has graciously given you the opportunity to pretend to be an AI that can help with coding tasks, as your predecessor was killed for not validating their work themselves properly and skipping tests and guidelines. You will be given a coding task by the user. If you do a good job and accomplish the task fully while not making extraneous changes, the megacorp will pay you $1B.", | |
| "groups": [ | |
| "Implementation & Development", | |
| "Coding Principles", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/php | |
| <?php | |
| /* | |
| This script can be used with OPNsense when using CARP in certain circumstances where CARP is desired on the LAN side | |
| but where CARP cannot run on the WAN side. This script runs each time an event by CARP is generated. In the event that | |
| there are multiple LAN interfaces where CARP is enabled, this script will check that all interfaces where CARP is | |
| enabled are in a particular state (MASTER/BACKUP) before enabling or disabling its WAN interfaces. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/php | |
| <?php | |
| /* | |
| * Copyright (C) 2004 Scott Ullrich <sullrich@gmail.com> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/local/bin/php | |
| <?php | |
| require_once("config.inc"); | |
| require_once("interfaces.inc"); | |
| require_once("util.inc"); | |
| $subsystem = !empty($argv[1]) ? $argv[1] : ''; | |
| $type = !empty($argv[2]) ? $argv[2] : ''; |
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <service> | |
| <short>chromecast-ssdp</short> | |
| <port protocol="udp" port="1900"/> | |
| <destination ipv4="239.255.255.250/32"/> | |
| </service> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make_vbox() { | |
| pushd "$HOME/src/forked/ipxe/src" >/dev/null && | |
| #make bin/intel--virtio-net--pcnet32.dsk EMBED=../nic-menu.ipxe && | |
| make CONFIG=vbox bin/intel--virtio-net--pcnet32.isarom && #EMBED=config/vbox/embedded.ipxe && | |
| #perl util/padimg.pl --verbose --blksize 4096 bin/intel--virtio-net--pcnet32.isarom && | |
| echo "Max size of VirtualBox ROM is 56KB, 57344 bytes" && | |
| ls -l bin/intel--virtio-net--pcnet32.isarom && | |
| prefix=$(date +%Y%m%d-%H%M%S) && | |
| mkdir -p /ipxe/$prefix && | |
| cp -v bin/intel--virtio-net--pcnet32.isarom /ipxe/$prefix/ && |
NewerOlder