Skip to content

Instantly share code, notes, and snippets.

View sekayasin's full-sized avatar
🎯
Every git commit counts! #Topooooowa

sekayasin sekayasin

🎯
Every git commit counts! #Topooooowa
View GitHub Profile
@sekayasin
sekayasin / README.md
Created December 12, 2019 06:18 — forked from matijs/README.md
Solarized Dark profile for macOS Terminal.app

Solarized Dark profile for Terminal.app on macOS High Sierra

Based on the excellent Solarized (Dark) created by Ethan Schoonover. For source code, check the main Solarized repository on GitHub.

Installation

Open and save Solarized Dark.terminal.

Import from the “Profiles” tab in the settings of Terminal.app or just double-click the file after downloading.

@sekayasin
sekayasin / iterm2-solarized.md
Created October 1, 2019 11:21 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@sekayasin
sekayasin / packer-ami-id
Created March 29, 2019 10:06 — forked from danrigsby/packer-ami-id
Get AMI ID from a packer build
packer build packer.json 2>&1 | sudo tee output.txt
tail -2 output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }' > sudo ami.txt
@sekayasin
sekayasin / gist:fc28e772a5609830ced88ec350941de9
Created September 30, 2018 05:34 — forked from lxneng/gist:741932
install PostgreSQL 9 in Mac OSX via Homebrew
install PostgreSQL 9 in Mac OSX via Homebrew
Mac OS X Snow Leopard
System Version: Mac OS X 10.6.5
Kernel Version: Darwin 10.5.0
Install notes for PostgreSQL 9.0.1 install using Homebrew:
sh-3.2# brew install postgresql
@sekayasin
sekayasin / index.html
Created September 3, 2018 06:11 — forked from CodeMyUI/index.html
Responsive Navigation Menu Using Only CSS
<h1><span>Responsive Navigation Menu</span> Using Only CSS</h1>
<header>
<section>
<a href="https://www.linkedin.com/in/sutharmayur" id="logo" target="_blank">Mayur Suthar</a>
<label for="toggle-1" class="toggle-menu"><ul><li></li> <li></li> <li></li></ul></label>
<input type="checkbox" id="toggle-1">
<nav>
@sekayasin
sekayasin / ubuntu_agnoster_install.md
Created December 2, 2017 08:28 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

/*
Swift Programming Language Guide
"A Swift Tour" Solutions
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2-XID_1
These are the solutions to all the "experiments" in the pre-release Swift Programming Guide.
You should be able to copy-paste it into your own playground. Let me know if I screwed
any of them up, and I'll be happy to update this gist.
*/
{
"files":
{
"Backbone.js": "http://backbonejs.org/backbone.js",
"CSS-reset": "http://meyerweb.com/eric/tools/css/reset/reset.css",
"Less.js": "https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.min.js",
"RegEx: xregexp.com": "http://cdnjs.cloudflare.com/ajax/libs/xregexp/2.0.0/xregexp-min.js",
"cycle": "http://malsup.github.com/jquery.cycle.all.js",
"html5shiv": "https://raw.github.com/aFarkas/html5shiv/master/dist/html5shiv.js",
"infinite_scroll": "https://raw.github.com/paulirish/infinite-scroll/master/jquery.infinitescroll.min.js",

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after