Skip to content

Instantly share code, notes, and snippets.

@RobertChalmers
RobertChalmers / fix_twitter_warnings.sh
Created April 7, 2019 11:13 — forked from npu3pak/fix_twitter_warnings.sh
This script fixes all TwitterKit related warnings in XCode 10.1. Add new run script build phase with this code:
readonly MODULEMAP="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap"
readonly HEADER="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Headers/TwitterCore.h"
if ! grep -q "TwitterCore_Private" "${MODULEMAP}"; then
cat >"${MODULEMAP}" <<EOL
module TwitterCore_Private {
}
EOL
fi
@RobertChalmers
RobertChalmers / gist:0cafe30897b499175e3a5232d2508e66
Created August 29, 2018 16:36
Verifying my Blockstack ID is secured with the .org/address/1BFeXmWHqLiatQKapBMJuPi6srXvf7zgX3
Verifying my Blockstack ID is secured with the address 1BFeXmWHqLiatQKapBMJuPi6srXvf7zgX3 https://explorer.blockstack.org/address/1BFeXmWHqLiatQKapBMJuPi6srXvf7zgX3
#!/bin/bash
# --- Version history ---
# 0.4: added variable to store file path, and $2 for base file name
# added variable to store desired reporting interval
# 0.3: added $1 to send in process ID at run time.
# 0.2: switched to $SECONDS for the loop. works.
# 0.1: didn't work well at all.
# --- Version history ---
# Usage: cputrack [PID] [filename]