Skip to content

Instantly share code, notes, and snippets.

View cliffano's full-sized avatar
🎧
Hustlin' hustlin' hustlin' hustlin' hustlin'

Cliffano Subagio cliffano

🎧
Hustlin' hustlin' hustlin' hustlin' hustlin'
View GitHub Profile
@cliffano
cliffano / Google Calendar Notes
Last active August 19, 2024 07:24
Google Calendar Notes
Import ICS file
---------------
Gear icon -> Settings -> Import & Export -> Select file from your computer -> Import
Add from web page
-----------------
Install Add To Calendar Chrome extension
https://chromewebstore.google.com/detail/add-to-calendar/jnbpajadakhkpcncmbfhkgaaoioofkfd?hl=en
@cliffano
cliffano / gist:cc64fa581817ec7f3a4fdd2f2b0d620f
Last active February 8, 2024 00:03
Notes for future kludging...
> tflint
"Command line arguments support was dropped in v0.47. Use --chdir or --filter instead"
Replace
tflint <path>
with
tflint --chdir=<path>
> codebuild
"CLIENT_ERROR: authentication required for primary source and source version 2abebfd35cf690b52e3dae4331d8831b5ad3e662"
Edit source, disconnect from github, connect with oauth and follow prompt, select repository, update source.
@cliffano
cliffano / list-r53-records-multi-profiles.sh
Last active September 13, 2023 13:45
List all Route53 records across all hosted zones using multiple AWS profiles.
#!/bin/bash
AWS_PROFILES="profile1 profile2"
for aws_profile in ${AWS_PROFILES}; do
export AWS_PROFILE=${aws_profile}
for zone in `aws route53 list-hosted-zones | jq -r '.HostedZones[].Id'`; do
aws route53 list-resource-record-sets --hosted-zone-id $zone |
var fs = require('fs');
var parser = require('fast-xml-parser');
const file1 = process.argv[2]
const file2 = process.argv[3]
console.log("Comparing " + file1 + " to " + file2)
const xmlData1 = fs.readFileSync(file1, { encoding: 'utf-8' })
const xmlData2 = fs.readFileSync(file2, { encoding: 'utf-8' })
@cliffano
cliffano / repoman-notes.txt
Last active March 9, 2021 03:53
Utility scripts using repoman
Poor man's quick stats of git logs analysis
===========================================
Retrieve git logs across multiple repositories, then count the number of commits made by any author:
repoman exec 'git log' >> /tmp/gitlog.txt
grep "Author: " /tmp/gitlog.txt | wc -l
Count the commits by author:
@cliffano
cliffano / enable-crxde-64-inconsistency
Last active June 8, 2018 07:27
Enable CRXDE outputs AEM 6.2, 6.3, 6.4
Based on https://helpx.adobe.com/experience-manager/6-4/sites/administering/using/enabling-crxde-lite.html
================================================================================================
AEM 6.3 and AEM 6.2
================================================================================================
[aem-6.3] curl -u admin:admin -F "jcr:primaryType=sling:OsgiConfig" -F "alias=/crx/server" -F "dav.create-absolute-uri=true" -F "dav.create-absolute-uri@TypeHint=Boolean" http://localhost:4502/apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet
<html>
<head>
<title>Content created /apps/system/config/org.apache.sling.jcr.davex.impl.servlets.SlingDavExServlet</title>
@cliffano
cliffano / gpgcryptic.txt
Last active April 29, 2022 09:37
gpg cryptic errors
I started getting the error below after upgrading to gpg (GnuPG) 2.1.21 .
gpg: signing failed: Timeout
gpg: signing failed: Timeout
This was confusing at first, but the timeout was caused by gpg showing a password prompt that takes the full screen of the terminal, and after a period of time, it returned to the command line showing the timeout error.
I didn't notice the password prompt at first because I was working on multiple terminals and only saw the timeout error at the end.
Another error that I encountered earlier was:
@cliffano
cliffano / command-ps-gnuplot.script
Last active May 30, 2017 01:12
chart a process
set term png small size 800,600
set output "command-ps-graph.png"
set ylabel "%CPU"
set y2label "MEM"
set ytics nomirror
set y2tics nomirror in
set yrange [0:*]
@cliffano
cliffano / gource-multi-repos.sh
Created March 11, 2017 13:13
Gource shell script for visualizing multiple GitHub repositories
#!/bin/bash
set -e
set -u
# brew install gource ffmpeg
user=<github_user/org>
repos="<repo1> <repo2> ... <repoN>"
rm -rf repos logs out