Skip to content

Instantly share code, notes, and snippets.

View Airr's full-sized avatar
🎯
Focusing

Airr

🎯
Focusing
View GitHub Profile
@Airr
Airr / makeSwiftSoup.py
Created October 30, 2016 04:13 — forked from muxuezi/makeSwiftSoup.py
Web crawler of Swift iOS&OSX
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# Name: The-Swift-Programming-Language
# Purpose: Web crawler of Swift, Python is slow-------
#
# Author: [email protected]
#
# Created: 10/27/2014
# Copyright: (c) muxuezi 2014
# Licence: <All licence>
@Airr
Airr / strings `which diskutil` | grep Usage
Created November 2, 2016 04:37
OS X Lion diskutil commands (documented and hidden)
Usage: diskutil coreStorage list
Usage: diskutil coreStorage info[rmation] [-plist]
Usage: diskutil coreStorage convert
Usage: diskutil coreStorage revert
Usage: diskutil coreStorage create lvgName
Usage: diskutil coreStorage delete lvgUUID
Usage: diskutil coreStorage addDisk lvgUUID NewMemberDeviceName
Usage: diskutil coreStorage removeDisk pvUUID
Usage: diskutil coreStorage deleteVolume lvUUID
Usage: diskutil coreStorage resizeVolume lvUUID size
@Airr
Airr / Gadget.pb
Last active December 5, 2016 00:26
Purebasic OSX Gadget Resize Demo
;
; ------------------------------------------------------------
;
; PureBasic - Gadget example file
;
; (c) Fantaisie Software
;
; ------------------------------------------------------------
;
IncludeFile "anchor.pbi"
@Airr
Airr / ST3-with-iCloud-Drive.sh
Created April 24, 2017 23:35 — forked from joeshub/ST3-with-iCloud-Drive.sh
Sync your Sublime Text 3 Settings using iCloud Drive on multiple Macs
# Notes
# Using iCloud Drive, you can sync your Sublime Text 3
# plugins and prefs so you can always have the same setup
# Prerequisites
# Make sure both machines have the latest version of OSX 10.10.x with
# Yosemite or higher and iCloud Drive turned on
# Quit ST3
@Airr
Airr / README.md
Created January 13, 2018 18:36 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@Airr
Airr / MenuletDemo.m
Created June 1, 2018 21:56
"Menulet Demo": A Single Source CONSOLE OSX Objective C StatusBar App (NO IB/NIB/XIB/XCODE)
// "Menulet Demo": A Single Source CONSOLE OSX Objective C StatusBar App (NO IB/NIB/XIB)
// Copyright (c) 2018 Armando Rivera
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
@Airr
Airr / OS X network optimize.sh
Last active March 5, 2020 11:05 — forked from snoby/OS X network optimize.txt
OSX Sierra Network Performance Tweaks #macOS
#
# Reboot into recovery mode (cmd +r ) and in the terminal
#
nvram boot-args="serverperfmode=1 ncl=262144"
#reboot
#
# In regular mode
@Airr
Airr / PowerShell-profile.ps1
Created October 9, 2018 23:48 — forked from PierreMage/PowerShell-profile.ps1
Make your Windows command line better with doskey
# http://technet.microsoft.com/en-us/library/ee692685.aspx
# F7 = history
# Alt+F7 = history -c
# F8 = Ctrl+R
Set-Location C:
# Easier navigation
Set-Alias o start
function oo {start .}
@Airr
Airr / downloadFile.go
Last active March 6, 2019 23:04
[go-downloadFile] Download file with realtime status #go
/*
Original code: https://golangcode.com/download-a-file-with-progress/
I added Filesize field to WriteCounter struct, and set that
field to the ContentLength of the file to download.
Changed download file to 100MB test file
Changed status to show amount downloaded and total size of download
*/
@Airr
Airr / publicIP.go
Created March 8, 2019 08:07
PublicIP
// LINUX - MACOS ONLY
package main
import (
"fmt"
"log"
"os/exec"
"strings"
)