Add admin user for Homebrew management and a standard user for daily work.
As admin user:
0. umask 002
sudo mkdir /usr/localsudo chown root:admin /usr/local- Install Homebrew in
/usr/local
| #!/usr/bin/env bash | |
| if (( $# == 1 )); then | |
| declare proc="$(ps axc | grep "$1")" | |
| read -ra pid <<< "$proc" | |
| if (( $pid )); then | |
| echo $pid | |
| exit 0 | |
| else |
| function! CreateSpacer() | |
| if &number || &relativenumber | |
| return repeat(" ", &numberwidth + 1) | |
| endif | |
| return "" | |
| endfunction | |
| set statusline= | |
| set statusline+=%{CreateSpacer()} |
| function! functions#store_highlight_attrs(group) | |
| " Wants: Str | |
| " Returns: Dict | |
| " Does: Stores all attribute of the given highlight group | |
| " and returns them as a dictionary. | |
| if has('gui_running') | |
| let l:ui_type = 'gui' | |
| else | |
| let l:ui_type = 'cterm' |
| UPDATE `tx_dam` | |
| SET | |
| `title`='title', | |
| `loc_country`='country', | |
| `loc_city`='city', | |
| `description`='description', | |
| `alt_text`='alt_text', | |
| `caption`='caption', | |
| `abstract`='abstract' | |
| WHERE `sys_language_uid`=1 (AND `file_mime_type`='image') |
| /** | |
| * A chainable function to fade in a number of elements one | |
| * after another. | |
| * | |
| * @param {Object} timing | |
| * | |
| */ | |
| $.fn.leVader = function( timing ) { | |
| this.each(function( index ) { | |
| $( this ).delay( index * timing.delay ).fadeIn( timing.duration ); |
| # An openrc init script (local.d) which sets the io scheduler in "/sys/block/sd?/queue/scheduler" | |
| # for a custom list of known solid state drives. | |
| enable=false | |
| local_start() | |
| { | |
| local ssd_scheduler | |
| local -a ssd_devices |
| #!/usr/bin/env bash | |
| paths=( | |
| "/bin" | |
| "/sbin" | |
| ) | |
| backup="/root/bbbackup" | |
| if [[ ! -d "$backup" ]]; then |
| # Get raw encoder value | |
| ffprobe -v quiet -print_format compact=print_section=0:nokey=1:escape=csv -show_entries format_tags=encoder "$input_file" | |
| # Get raw duration value | |
| ffprobe -v quiet -print_format compact=print_section=0:nokey=1:escape=csv -show_entries format=duration "$input_file" | |
| # Generate spectrogram | |
| ffmpeg -ss "$start_position" -t "$duration" -i "$input_file" -f sox - | sox -t sox - -n spectrogram -o "${output_name}.png" | |
| # Generate raw data used in spectrogram |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |