I hereby claim:
- I am pkuczynski on github.
- I am piotrkuczynski (https://keybase.io/piotrkuczynski) on keybase.
- I have a public key ASBrkP2b6kl6uUoSolY5v3QoqGTIFNp_5KCa6LSshX38mAo
To claim this, I am signing this object:
gh run list --all -w "NAME GOES HERE" --json databaseId --jq '.[].databaseId' | xargs -I {id} gh run delete {id} |
// Requires `npm i jscodeshift @types/jscodeshift` | |
// Run: `npx jscodeshift -t react-intl-default-message.ts src/**/*.ts` | |
import en from './src/i18n/locales/en.json' | |
export const parser = 'tsx' | |
export default function transformer(file, api) { | |
const j = api.jscodeshift |
I hereby claim:
To claim this, I am signing this object:
kubectl get pods --all-namespaces \ | |
| awk -v GREEN='\033[01;32m' \ | |
-v NORMAL='\033[0m' \ | |
-v YELLOW='\033[01;33m' \ | |
-v RED='\033[01;31m' \ | |
--field-separator='\s' '{ | |
if (NR > 1) { | |
for (n=1; n<NF; n++) { | |
if (n == 3) { | |
split($n, ready, "/") |
# | |
# Add following code to your ~/.bash_profile, and then you can list files using command: | |
# lsmod /path/to/file | |
# | |
lsmod() { | |
ls -l $1 | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) *2^(8-i));if(k)printf("%0o ",k);print}' | |
} |
#!/bin/sh | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
desc 'Load data from SQL file' | |
task :load_data => :environment do | |
puts 'Loading db/data.sql' | |
sql = File.read("#{Rails.root}/db/data.sql") | |
statements = sql.split(/;$/) | |
statements.pop # the last empty statement | |
statements.each do |statement| | |
ActiveRecord::Base.connection.execute(statement) |
PLUGIN_NAME = 'Simple date' | |
PLUGIN_AUTHOR = 'Piotr Kuczynski' | |
PLUGIN_DESCRIPTION = 'Simplify album date to contain only year.' | |
PLUGIN_VERSION = "0.1" | |
PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15", "0.16"] | |
from picard.metadata import register_album_metadata_processor | |
import re | |