Skip to content

Instantly share code, notes, and snippets.

View jlorper's full-sized avatar
🏠
Working from home

Jose Lorenzo jlorper

🏠
Working from home
View GitHub Profile
@jlorper
jlorper / gawk-parse-csv.sh
Created April 14, 2021 17:18
gawk parse csv with quoted commas
gawk -vFPAT='[^,]*|"[^"]*"' '{print $1}' filename
@jlorper
jlorper / asana-tasks-to-markdown.user.js
Last active February 7, 2022 05:24
Converts selected tasks in Asana to a list of Markdown links and copies them onto the clipboard
// ==UserScript==
// @name asana-tasks-to-markdown.user.js
// @namespace http://tampermonkey.net/
// @version 0.3.6
// @downloadUrl https://gist.githubusercontent.com/jlorper/6221b84ba76fec4ccfa4167a9ab38d97/raw/asana-tasks-to-markdown.user.js
// @updateUrl https://gist.githubusercontent.com/jlorper/6221b84ba76fec4ccfa4167a9ab38d97/raw/asana-tasks-to-markdown.user.js
// @description Converts selected tasks into a list of markdown links, puts the result in the clipboard
// @author Jose Lorenzo @jlorper
// @require https://code.jquery.com/jquery-3.4.0.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
******************* gcloud compute stdout *******************
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
hadoop-w-0 us-central1-b n1-standard-2 10.240.0.4 104.154.160.90 RUNNING
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
hadoop-m us-central1-b n1-standard-2 10.240.0.5 130.211.215.24 RUNNING
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
hadoop-w-1 us-central1-b n1-standard-2 10.240.0.6 104.197.160.226 RUNNING
******************* gcloud compute stderr *******************
WARNING: Image aliases are deprecated and will be removed in a future version. Please use --image-family=debian-8 and --image-project=debian-cloud instead.