I provide you with 3 jq lib functions that will help you in converting between snake_case and CamelCase.
I want to change keys in my json from camelcase to snake_case.
package main | |
import ( | |
"fmt" | |
"log" | |
"strconv" | |
"github.com/miekg/dns" | |
) |
notify: | |
if: always() | |
name: Notify | |
needs: | |
- job1 | |
- job2 | |
- job11 | |
- job3 | |
- job4 | |
runs-on: ubuntu-latest |
#!/bin/bash | |
BITLOCKER_PARTITION="${1}" | |
BITLOCKER_PASSWORD="${2}" | |
function usage() { | |
echo "$(basename ${0}) <partition> <password>" | |
echo "Unlocks and mounts a bitlocker partition as read-only" | |
} | |
if [ -z "${BITLOCKER_PARTITION}" ] |
echo "****************************************************" | |
echo "* *" | |
echo "* CONVERT BARE REPO TO NORMAL REPO *" | |
echo "* *" | |
echo "****************************************************" | |
echo " -> untar repo.tar.gz" | |
tar -zxf repo.tar.gz | |
for user in $(ls repositories/); do | |
for repo in $(ls repositories/$user/); do | |
pathRepo="repositories/$user/$repo/"; |
[Unit] | |
Description=Scheduled Reboot | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/systemctl --force reboot |
import os.path | |
import requests | |
import shutil | |
import hashlib | |
import logging | |
def validate_file(file_path, hash): | |
""" | |
Validates a file against an MD5 hash value | |
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
The Sierra MC7355 can run configurations for several North American carriers. These cards are easy to find on eBay and notable for their support for the Sprint LTE network. Unless you're luck out, you may find you need to flash a new carrier configuration onto the card you purchased before using it.
These procedures are specific to the setup I had to perform this on. Most notably, the only system I had with a mini-PCI-e slot was the target pfSense system, a PCengines APU1d with no VGA port (serial console only). If you're able to obtain a
--[[ | |
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol v0.1 | |
Copyright (c) 2012 Ilya Voronin <[email protected]> | |
Based on Code Aurora Forum's BSD/GPL licensed code: | |
http://www.codeaurora.org/contribute/projects/gobi/ | |
Short howto for using this script: |