Skip to content

Instantly share code, notes, and snippets.

View aamnah's full-sized avatar
💭
the learning never stops

Aamnah aamnah

💭
the learning never stops
View GitHub Profile
@aamnah
aamnah / starttmux.sh
Created August 9, 2020 16:27 — forked from todgru/starttmux.sh
Start up tmux with custom windows, panes and applications running
#!/bin/sh
#
# Setup a work space called `work` with two windows
# first window has 3 panes.
# The first pane set at 65%, split horizontally, set to api root and running vim
# pane 2 is split at 25% and running redis-server
# pane 3 is set to api root and bash prompt.
# note: `api` aliased to `cd ~/path/to/work`
#
session="work"
@aamnah
aamnah / quick-actions-finder-macos-big-sur.md
Last active October 23, 2023 17:39 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add Quick Actions to Finde in macOS Big Sur to open a folder in VS Code
  • Open Automator
  • Choose Quick Action as the document type
  • Change Workflow receives current to files or folders in Finder.app
  • For Action, choose Open Finder items from the left hand sidebar
  • Change Open with to Visual Studio Code.app (find it in Other... )
  • For the Icon, change Image to "Choose..." and select the Visual Stuido Code app. It'll automatically pick the icon
  • Save it (Cmd+S) as something like "Open in VS Code"
@aamnah
aamnah / list-articles-by-collection.liquid
Last active January 9, 2022 00:44 — forked from nternetinspired/output-articles-by-collection.liquid
Loop through Jekyll collections and list their posts
{% comment %}
Loops though every collection you defined in _config.yml and grabs the pages they contain; outputting titles.
{% endcomment %}
{% for collection in site.collections %}
{% assign name = collection.label %}
<h1>{{ name }}</h1>
@aamnah
aamnah / table.css
Created January 26, 2017 06:50 — forked from colintoh/table.css
Table CSS
table { display: table }
tr { display: table-row }
thead { display: table-header-group }
tbody { display: table-row-group }
tfoot { display: table-footer-group }
col { display: table-column }
colgroup { display: table-column-group }
td, th { display: table-cell }
caption { display: table-caption }
@aamnah
aamnah / table.html
Last active December 23, 2016 10:12 — forked from morrxy/gist:7542124
Table HTML
<table>
<caption>Awesome caption</caption>
<thead>
<tr>
<th></th>
<th>million km</th>
<th>m</th>
</tr>
</thead>
<tbody>
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/
# On Mac, Homebrew with homebrew-dupes will allow you to easily upgrade nano to a newer version than the one that came with Mac OSX.
# [homebrew-dupes](https://github.com/Homebrew/homebrew-dupes):
# These formulae duplicate software provided by OS X, though may provide more recent or bugfix versions.
# Add the dupes formulae, then install a new version of nano.
brew tap homebrew/dupes
brew install nano