A Pen by Edwin Clement on CodePen.
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
| # Disable Commercial Repo | |
| sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list | |
| apt-get update | |
| # Add PVE Community Repo | |
| echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list | |
| apt-get update | |
| # Remove nag | |
| echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script |
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
| #!/bin/sh | |
| if [ $# -ne 2 ] | |
| then | |
| echo "Pass 2 params" | |
| echo -e "show_app.sh <Window Title to check for> <app to open>" | |
| echo -e "\nNotes\n\t<Window url> should be an exact string match" | |
| echo -e "\t<app to open> should be path to the executable" | |
| exit | |
| fi |
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 php | |
| <?php | |
| if ($argc < 3) { | |
| die("Usage: ./jtt.php ISSUE-1 30m optional comment here\n"); | |
| } | |
| $username = 'EMAIL_GOES_HERE'; | |
| $token = 'API_KEY_HERE'; // see https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/ | |
| $team = 'TEAM_NAME_HERE'; |
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
| virsh dumpxml Manjaro | xq '.domain.devices.hostdev | .[] | select( ."@type" == "usb") | .source | (.vendor."@id" + ":" + .product."@id") ' |
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
| // ==UserScript== | |
| // @name Add some delta info to summary_logs page | |
| // @namespace Violentmonkey Scripts | |
| // @match https://www.browserstack.com/admin/summary_logs | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description 14/04/2021, 14:16:19 | |
| // ==/UserScript== |
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
| #include QMK_KEYBOARD_H | |
| #ifndef KEYMAP_PRE_CUSTOM | |
| #define KEYMAP_PRE_CUSTOM | |
| uint16_t cmd_tab_timer = 16960; | |
| uint16_t cmd_tab_wait_delay = 700; | |
| bool in_state = false; | |
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
| #!/bin/sh | |
| if [ $# -ne 1 ] | |
| then | |
| echo "Pass a single parameter, that is the location of qmk config json" | |
| exit | |
| fi | |
| FILE=$1 | |
| if [ ! -f $FILE ]; then | |
| echo "Config File $FILE does not exist." |
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
| group_id = 4404657 | |
| latest_order = 556451 | |
| latest_cancellation_order = 556452 | |
| subscription_number = 'A-S00052771' | |
| # InvoicePosted, Order Processed | |
| bcs_invoice_posted = '1219450' | |
| bcs_order_processed = '1219447' | |
| billing_communications = [bcs_invoice_posted, bcs_order_processed] | |
| subs_ssn_info = 199457 |
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
| #!/bin/bash | |
| for file in queries/*.sql | |
| do | |
| echo $file; | |
| \cat $file | egrep -o '{{[a-zA-Z\. _]*}}' | awk '{print "\t", NR, $0}'; | |
| done |