Skip to content

Instantly share code, notes, and snippets.

View freemansion's full-sized avatar
🛠️
iOS Developer, growth hacking enthusiast

Stanislau Baranouski freemansion

🛠️
iOS Developer, growth hacking enthusiast
View GitHub Profile
@freemansion
freemansion / tmux-cheatsheet.markdown
Created February 25, 2019 11:38 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@freemansion
freemansion / starttmux.sh
Created February 25, 2019 11:38 — 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"
@freemansion
freemansion / UserNotificationsExample.swift
Created April 6, 2021 09:19 — forked from quocnb/UserNotificationsExample.swift
UserNotifications iOS 10 Example
import UserNotifications
// 1. Request Permission
func requestAuthorization() {
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound]) { (granted, error) in
if granted {
// Success
} else {
// Error
print(error?.localizedDescription)