Skip to content

Instantly share code, notes, and snippets.

View shredthaGNAR's full-sized avatar

Me shredthaGNAR

View GitHub Profile
@shredthaGNAR
shredthaGNAR / Get Title and URL.applescript
Created December 11, 2023 04:45 — forked from vitorgalvao/Get Title and URL.applescript
AppleScript and JavaScript for Automation to get frontmost tab’s url and title of various browsers.
-- AppleScript --
-- This example is meant as a simple starting point to show how to get the information in the simplest available way.
-- Keep in mind that when asking for a `return` after another, only the first one will be output.
-- This method is as good as its JXA counterpart.
-- Webkit variants include "Safari", "Webkit", "Orion".
-- Specific editions are valid, including "Safari Technology Preview".
-- "Safari" Example:
tell application "Safari" to return name of front document
@shredthaGNAR
shredthaGNAR / urlsafari
Created November 16, 2023 03:41 — forked from kshiteesh/urlsafari
This AppleScript saves all the tabs open in all Safari windows to a Markdown file.
(*
Export All Safari Tabs in All Open Windows to a Markdown File
July 13, 2015
// SCRIPT PAGE
http://hegde.me/urlsafari
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file

How to setup iCloud+ Custom Domain Catch All email with Gmail

I've recently tested on how to move the custom domain catch all email from G Suite to the new iCloud+ Catch All feature and wanted to share my experience.

The end result is having Custom Domain email and Catch All routing, that can be fully used via Gmail, including receiving and sending emails.


The steps

  • Setup your Custom Domain (or subdomain) with iCloud+
@shredthaGNAR
shredthaGNAR / custom-chrome.css
Created September 18, 2023 21:30
tab stat styles
/*** photon-like Menu Colors (14 Jan 2022) ***/
/* Bookmarks Toolbar folders *
#PersonalToolbar menupopup,
/* Right-click context menus *
#mainPopupSet menupopup,
/* Top menu bar on Windows (not sure about others) *
#toolbar-menubar menupopup,
/* Sidebar/Library bookmark/history context menus *
#placesContext,
@import url(uc-globals.css);
/*@import url(uc-variables.css);*/
@import url(uc-panels.css);
@import url(uc-app-menu.css);
@import url(uc-findbar.css);
@import url(uc-ctrl-tab.css);
@import url(uc-bookmarks.css);
@import url(resources/in-content/library.css);
@import url(resources/in-content/downloads.css);
@import url(uc-popups.css);
/*** photon-like Menu Colors (14 Jan 2022) ***/
/* Bookmarks Toolbar folders *
#PersonalToolbar menupopup,
/* Right-click context menus *
#mainPopupSet menupopup,
/* Top menu bar on Windows (not sure about others) *
#toolbar-menubar menupopup,
/* Sidebar/Library bookmark/history context menus *
#placesContext,
@shredthaGNAR
shredthaGNAR / tab-states.md
Created September 18, 2023 03:21
userchrome tab actions WIP
modified title
2023-09-18 03:22:03 UTC

/_ photon-like Menu Colors (14 Jan 2022) _/

/_ Bookmarks Toolbar folders _

@shredthaGNAR
shredthaGNAR / roundedcornersgradientborders.css
Created March 27, 2023 19:46
[Rounded Corners Gradient Gradient Borders CSS] Create rounded corners with borders CSS code #css
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: content-box, border-box;
}
@shredthaGNAR
shredthaGNAR / zshrc Cheatsheet
Last active November 22, 2022 01:54
zshrc-cheatsheet.md
# zshrc-cheat-sheet
### DIRECTORY
```bash
%d # full working directory
%/ # same as %d
%~ # working directory starting from the home dir
%x~ # same as %~but only shows x(int) amount of the lowest directories
```
### NAMES
```bash