A Pen by Edwin Clement on CodePen.
This file contains 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
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
This file contains 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 | |
openssl genrsa -des3 -out rootCA.key 2048 | |
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem | |
echo "Trust the Certificate; Ctrl-C when Done" | |
while true; do printf ""; sleep 1; done | |
sudo cp rootCA.pem /etc/ca-certificates/trust-source/anchors/rootCA_local.cert |
This file contains 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 | |
echo QUIT | openssl s_client -connect $DOMAIN_TO_FETCH_FROM:443 | sed -ne '/BEGIN CERT/,/END CERT/p' > my-cert | |
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n my-cert -i my-cert | |
certutil -d sql:$HOME/.pki/nssdb -L | |
This file contains 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 |
This file contains 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 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 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 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 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") ' |
OlderNewer