I find that many apps use different versions of Electron, and I'm left with residual Electron versions no longer used.
sudo pacman -Qqtd | grep electron | sudo pacman -Rs -
#!/bin/bash | |
ARCH="x86_64" | |
DOWNLOAD_URL_PAGE="https://batocera.org/download" | |
get_downloader () { | |
which -a curl wget | head -n 1 | |
} | |
read_url_cmd () { |
Inspired by Kubernetes, this document aims to articulate some core principles that make APIs scalable, extensible, and flexible for long-term evolution. Hopefully these concepts will be useful to you in designing your next application.
This is a living document. Please feel free to comment with ideas/feedback.
function(){ | |
// Sets and gets a sample ID for bucket selection in A/B and related testing methodologies. | |
var ckPattern = /sampleId=(\d+)/g; | |
var sampleId = -1; | |
// TODO: adopt a different method for selecting the corp top level domain | |
var domain = document.location.hostname; | |
document.cookie.replace(ckPattern, function($0, $d){ |
#!/usr/bin/env python | |
# Loads a CSV file, assuming it has header names, and prints only the specified columns. | |
# ... like selecting two columns of a 7-column table. | |
# | |
# Arguments: | |
# - field names, comma-separated | |
# - input filename | |
# | |
# Output: | |
# - the header row for the specified columns, and those fields for all input records. |
#!/usr/bin/env bash | |
# USAGE | |
# bash kubescan.sh kubeconfig.yaml > state.yaml | |
# Goal: | |
# - Provide a quick way to dump the state of a cluster for analysis | |
# - Simplify verification of live state of the cluster | |
# Example dynamic selection of Python requirements files | |
dependencies: $(shell python requirements.py) | |
for req in $^; do \ | |
pip install --upgrade -r $$req ; \ | |
done | |
test: dependencies | |
echo run your tests. |
#!/bin/sh | |
# Sets up a wide array of my development environment on a Mac... | |
fail(){ | |
err=$1; shift 1; | |
echo "$@" >&2 | |
exit $err | |
} |
{% if first_time_accessed %} | |
<script> | |
(function(dataLayer){ | |
var customer_type = ({{customer.orders_count}} > 1) ? 'repeatcustomer' : 'newcustomer'; | |
var discounts = "{{ order.discounts | map: 'code' | join: ',' | upcase}}"; | |
function strip(text){ | |
return text.replace(/\s+/, ' ').replace(/^\s+/, '').replace(/\s+$/, ''); | |
} |