This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# _ | |
# ___ ___ ._ _ ___ _ _ ___ _| |_ ___ ___ _ _ _ ___ _ _ ___ ___ | |
# / . |/ ._>| ' |/ ._>| '_><_> | | | / ._>|___|| | | |<_> || | |/ ._><_-< | |
# \_. |\___.|_|_|\___.|_| <___| |_| \___. |__/_/ <___||__/ \___./__/ | |
# <___' | |
# Made with love by Alessandro Aresta on Sun Jan 06 2019 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Requires: audiowaveform (https://github.com/bbc/audiowaveform), metaflac, sox | |
zoom_start=60 | |
zoom_duration=4 | |
zoom_end=$((zoom_start + zoom_duration)) | |
if [ $# -lt 1 ] || [ "$1" == "--help" ] || [ "$1" == "-h" ]; then | |
echo "Generates spectrogram and waveform images from flac files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xcrun --sdk macosx swift | |
import Foundation | |
enum Configuration: String { | |
case debug = "Debug" | |
case release = "Release" | |
} | |
// Get Info.plist path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#colorLiteral(red: 0.4593629837, green: 0.909394145, blue: 0.9056461453, alpha: 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
buildNumber=$(($buildNumber + 1)) | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If Homebrew was updated on Aug 10-11th 2016 and brew update always says Already up-to-date. you need to run: | |
cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌─────────────────────────────────────────────────────────────────────────────┐ | |
│ __ │ | |
│.-----.---.-.-----.--.--.-----.-----| |_ .-----.-----.----.--.--.-----.----.│ | |
│| -__| _ |__ --| | | -__|__ --| _||__ --| -__| _| | | -__| _|│ | |
│|_____|___._|_____|___ |_____|_____|____||_____|_____|__| \___/|_____|__| │ | |
│ |_____| │ | |
│ │ | |
└─────────────────────────────────────────────────────────────────────────────┘ | |
# python -m SimpleHTTPServer 8000 python 2.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo " ██████ ██████ ███████ ██ ██ ██ ██ ███████ ██████ ███████"" | |
echo " ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██"" | |
echo " ██████ ██████ █████ ██ █ ██ █████ █████ ██ ███ ███████"" | |
echo " ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██ ██"" | |
echo " ██████ ██ ██ ███████ ███ ███ ██ ██ ███████ ██████ ███████"" | |
echo "" | |
echo "" | |
echo " ███ ███ ███████ ██████ █████ ███████ ██ ██ ██"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
enabled=$? | |
if [ "$1" = "off" ]; then | |
if [ $enabled -eq 1 ]; then | |
defaults write com.apple.finder CreateDesktop false | |
osascript -e 'tell application "Finder" to quit' | |
open -a Finder |