AI-driven setup and optimization guide for Claude Code, OpenCode, and cross-platform tools
Quick Start: Share this gist and say:
Read this gist and set up my project: https://gist.github.com/senrecep/98d3583717581a4138bac62344261f6f
| const GMAIL_LABEL_NAME = 'NotionToSync'; | |
| const SYNCED_LABEL = 'SyncedToNotion'; | |
| // if you set this, the attachments will be copied over to google drive and the links added to the notion page | |
| const GDRIVE_FOLDER_ID = ''; | |
| const gmailToNotion = () => { | |
| const label = GmailApp.getUserLabelByName(GMAIL_LABEL_NAME); | |
| const successLabel = GmailApp.getUserLabelByName(SYNCED_LABEL); | |
| label.getThreads(0, 20).forEach((thread) => { |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
📹 Resources from the 'What is the Testing Pyramid even?' episode from Unmock's wtfuzz video series. 📹
📖 Succeeding With Agile by Mike Cohn
Where he described the testing pyramid and kick-started the hype.
📝 TestPyramid by Martin Fowler \
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start| #!/bin/bash | |
| function showUsage | |
| { | |
| echo -e "\nThis script is used to add a metadata schema in GeoNetwork for development" | |
| echo | |
| echo -e "Usage: ./`basename $0 $1` schema_name git_schema_repository git_schema_branch" | |
| echo | |
| echo -e "Example:" | |
| echo -e "\t./`basename $0 $1` iso19115-3 https://github.com/metadata101/iso19115-3 3.4.x" |
| #!/bin/sh | |
| # RDP into Azure VM / Windows machine using `xfreerdp` | |
| # | |
| # Reference: https://github.com/FreeRDP/FreeRDP/issues/2128#issuecomment-213505787 | |
| # | |
| # Required dependency: http://www.freerdp.com/ | |
| # | |
| # Preferred over `rdesktop` due to: https://github.com/rdesktop/rdesktop/issues/71 |
| function escapeAsCsv(str) { | |
| // Double up double quotes and quote the entire string if necessary | |
| if (str.includes(',') || str.includes('\n') || str.includes('"')) { | |
| return '"' + str.replace(/"/g, '""') + '"'; | |
| } | |
| return str; | |
| } | |
| // Export Confluence table as CSV | |
| // Select the tbody element in Chrome devtools Elements panel then run the |
| /* NOTICE: THIS WAS MADE BACK IN 2017, OF COURSE IT'S NOT GOING TO WORK WELL NOW THAT TWITTER'S FUCKED THINGS UP */ | |
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("twitter.com") { | |
| [data-component-context="suggest_recap"], | |
| [data-component-context="suggest_who_to_follow"], | |
| [data-component-context="suggest_activity"], | |
| [data-component-context="suggest_activity_tweet"], | |
| [data-component-context="suggest_recycled_tweet_inline"], | |
| [data-component-context="suggest_recycled_tweet"]{ |