Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Sulim soulim

View GitHub Profile
@soulim
soulim / get-hugo.sh
Created Apr 20, 2021
Get the latest hugo
View get-hugo.sh
BIN_DIR="./bin"
TMP_DIR="./tmp"
wget --quiet \
--no-verbose \
--output-document=- \
"https://api.github.com/repos/gohugoio/hugo/releases/latest" \
| jq -r '.assets[].browser_download_url | select(test("hugo_[0-9]+.[0-9]+.[0-9]*_$(OS)-64bit.tar.gz"))' \
| xargs wget --quiet \
--no-verbose \
@soulim
soulim / reload-browser.sh
Created Feb 28, 2021
A cross-platform wrapper for reloading the current
View reload-browser.sh
#!/bin/sh
# reload-browser - A cross-platform wrapper for reloading the current
# browser tab
# Eric Radman, 2014
# http://eradman.com/entrproject/scripts/
usage() {
case `uname` in
Darwin)
# applescript needs the exact title
@soulim
soulim / Readme.md
Created Oct 4, 2020 — forked from txus/Readme.md
Minitest Runner
View Readme.md

MiniTest Runner

A basic runner for MiniTest as a shell script! Requires bash >= 4.0.

One-liner install

mkdir -p ~/bin && curl https://raw.github.com/gist/3705372/2f591ce427e21dab7685f7c743272827c8e8cf4f/minitest > ~/bin/minitest && chmod +x ~/bin/minitest

Put the ~/bin directory in your PATH.

View import.fish
#!/usr/bin/env fish
# bin/import: Import transactions via Actual API.
#
# Example:
#
# >_ bin/import --budget=My-Finances-7667d56 \
# --account=Checking \
# data/Checking-*.json
@soulim
soulim / Brewfile
Last active Mar 26, 2020
Dotfiles and etc
View Brewfile
brew 'fish'
brew 'asdf'
@soulim
soulim / git-goto
Last active Mar 4, 2020
Switch to any git branch interactively
View git-goto
#!/usr/bin/env sh
# git-goto: Switch to any git branch interactively.
#
# If the script is discoverable via PATH, then git will pick it up and make it
# available as `goto` subcommand.
#
# Dependencies:
#
# - fzf, https://github.com/junegunn/fzf
@soulim
soulim / base.puml
Last active Dec 22, 2020
styles.puml
View base.puml
@startuml base
skinparam {
ArrowColor #8898aa
BackgroundColor #f6f9fc
DefaultFontColor #363660
DefaultFontName "JetBrains Mono"
RoundCorner 8
Shadowing false
}
@enduml
View 1-side-project-marketing-checklist.md

Setup Work

  • Make a list of competitive/alternative services: See competitors.md file
  • Set up Google News alerts for "side project marketing" and "startup marketing".
  • Make list of blogs, subscribe to RSS feeds in Feedbin:
    • Startup marketing blogs
    • Side project blogs
    • Small business marketing blogs
    • Chicago small business/startup bloggers
  • Come up with a name and domain name
View keybase.md

Keybase proof

I hereby claim:

  • I am soulim on github.
  • I am soulim (https://keybase.io/soulim) on keybase.
  • I have a public key ASCMjtEg7xLP0dUeddWf3TceR7lqxvB98NJe5EC0eGhgOgo

To claim this, I am signing this object:

@soulim
soulim / HOWTODMG.md
Created Sep 20, 2017 — forked from jadeatucker/HOWTODMG.md
How to create a "DMG Installer" for Mac OS X
View HOWTODMG.md

Creating a "DMG installer" for OS X

A DMG Installer is convenient way to provide end-users a simple way to install an application bundle. They are basically a folder with a shortcut to the Applications directory but they can be customized with icons, backgrounds, and layout properties. A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders providing compression, encryption, and read-only to the package.

##Creating the DMG file #Disk Utility