Skip to content

Instantly share code, notes, and snippets.

@damenleeturks
damenleeturks / open-iterm-from-finder.md
Last active April 12, 2018 21:00 — forked from jonschlinkert/open-iterm-from-finder.md
Add an icon to your finder toolbar to open iTerm in the current folder.

Open iTerm iTerm2 from Finder

The code and instructions in this gist are from http://peterdowns.com/posts/open-iterm-finder-service.html. I've had to do this a few times and wanted to distill it the basics. Update: Replaced the first script with one from http://hohonuuli.blogspot.de/2016/02/iterm2-version-3-open-iterm-here-script.html (thanks @smith64fx for the link)

  1. Open Automator
  2. Create an Application
  3. Choose Actions > Utilities > Run Applescript
  4. Paste the contents of open_in_iterm.app into the window.
  5. Save the script somewhere convenient
@damenleeturks
damenleeturks / blockquote.md
Last active April 15, 2019 18:59 — forked from Wilto/blockquote.md
Of Blockquotes and Outlines
@damenleeturks
damenleeturks / smart-quotations.css
Last active August 19, 2019 15:41
**Adding Quotation Marks to Quotes:** Because the quotation marks around a quote are a stylistic addition to set it off from the unquoted text, and thus not semantic content themselves, they can be added to your page via CSS (instead of including them in the content of your document).
/*
Because the quotation marks around a quote are a stylistic addition to set it off from the unquoted text, and thus not semantic content themselves, they can be added to your page via CSS (instead of including them in the content of your document).
Note, though, that this means you must use <q> and <blockquote> tags.
*/
/* Quotation marks on both sides of nested quotes (e.g., <blockquote><q></q></blockquote>) */
q,
blockquote {
quotes: "\201C""\201D""\2018""\2019";
@damenleeturks
damenleeturks / sectioning.css
Created September 16, 2019 16:12
Help show semantic structure via sectioning. Adds automatic numbers to sections (including nested sections)
section,
aside {
padding: 1em;
border: 1px solid black;
margin: 1em;
}
aside {
background-color: rgba(100, 100, 100, 0.2);
}
@damenleeturks
damenleeturks / new-folder-with-selection.applescript
Created April 7, 2020 22:26
new-folder-with-selection.applescript
on run {input, parameters}
tell application "System Events"
tell process "Finder"
set menuList to name of every menu item of menu "File" of menu bar 1
repeat with itemName in menuList
if itemName contains "New Folder with Selection" then
click menu item itemName of menu "File" of menu bar 1
return
end if
end repeat
@damenleeturks
damenleeturks / hide-glo-popup-menu.user.css
Created April 9, 2020 18:26
That pop-up menu gets in the way *way* too much
/* ==UserStyle==
@name Hide GLO's annoying popup menu
@namespace github.com/damenleeturks
@version 1.0.0
@description That pop-up menu that appears when you highlight something. It gone.
@author damenleeturks
==/UserStyle== */
@-moz-document url-prefix("https://www.churchofjesuschrist.org/study") {
.callout-EaEKb {
@damenleeturks
damenleeturks / jq-cheetsheet.md
Last active December 1, 2020 21:47 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@damenleeturks
damenleeturks / index.html
Created January 21, 2023 15:46
Terran ID Card
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
<div class="id-card-wrapper">
<div class="id-card">
<div class="profile-row">
<div class="dp">
<div class="dp-arc-outer"></div>
<div class="dp-arc-inner"></div>
<img src="https://cdn.discordapp.com/attachments/972896211369603134/1064966291829555320/holoportrait_small.gif" />
</div>
<div class="desc">