This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:*] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
# brew install gource ffmpeg | |
user=<github_user/org> | |
repos="<repo1> <repo2> ... <repoN>" | |
rm -rf repos logs out |
NewerOlder