Skip to content

Instantly share code, notes, and snippets.

View vmrob's full-sized avatar

Victor Robertson vmrob

  • Cruise Automation
  • San Francisco
View GitHub Profile
Jan 27 12:53:34 mavericks-devs-MacBook-Pro.local sudo[314]: mavericks-dev : TTY=ttys000 ; PWD=/Users/mavericks-dev ; USER=root ; COMMAND=/bin/rm -f /usr/bin/mosh /usr/bin/mosh-client /usr/bin/mosh-server /usr/share/man/man1/mosh-client.1 /usr/share/man/man1/mosh-server.1 /usr/share/man/man1/mosh.1
Jan 27 12:53:34 mavericks-devs-MacBook-Pro.local sudo[319]: mavericks-dev : TTY=ttys000 ; PWD=/Users/mavericks-dev ; USER=root ; COMMAND=/bin/chmod 777 /usr/share/man/man1
Jan 27 12:53:35 mavericks-devs-MacBook-Pro.local sudo[322]: mavericks-dev : TTY=ttys000 ; PWD=/Users/mavericks-dev ; USER=root ; COMMAND=/bin/rm /usr/share/man/man1/a2p.1
Jan 27 12:53:35 mavericks-devs-MacBook-Pro.local sudo[325]: mavericks-dev : TTY=ttys000 ; PWD=/Users/mavericks-dev ; USER=root ; COMMAND=/bin/rm /usr/share/man/man1/bunzip2.1
Jan 27 12:53:35 mavericks-devs-MacBook-Pro.local sudo[328]: mavericks-dev : TTY=ttys000 ; PWD=/Users/mavericks-dev ; USER=root ; COMMAND=/bin/rm /usr/share/man/man1/bzcat.1
Jan 27 12:53:35 mavericks-devs-Mac
@vmrob
vmrob / gist:8657231
Created January 27, 2014 21:01
fresh mavericks install
mavericks-devs-MacBook-Pro:~ mavericks-dev$ find /Library /System/Library -maxdepth 1 -type d
/Library
/Library/Application Support
/Library/Audio
/Library/Caches
/Library/ColorPickers
/Library/ColorSync
/Library/Components
/Library/Compositions
/Library/Contextual Menu Items
@vmrob
vmrob / c++1y.sublime-build
Created January 28, 2014 05:57
c++1y.sublime-build
{
"cmd": ["clang++-3.5", "--std=c++1y", "--stdlib=libc++", "-nostdinc++", "-I/usr/local/lib/llvm-3.5/include/c++/v1", "${file}", "-L/usr/local/lib/llvm-3.5/usr/lib", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"path": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin",
"variants":
[
{
"name": "Run",
@vmrob
vmrob / rw_deleted_system_files.log
Created January 29, 2014 22:39
rw_deleted_system_files.log
mavericks-devs-MacBook-Pro:~ mavericks-dev$ ./rw_deleted_system_files.sh
lrwxr-xr-x 1 root wheel 6 Jan 22 18:32 /usr/bin/tar -> bsdtar
lrwxr-xr-x 1 root wheel 8 Jan 22 18:56 /usr/bin/tclsh -> tclsh8.5
lrwxr-xr-x 1 root wheel 9 Jan 22 18:55 /usr/share/man/man1/a2p.1 -> a2p5.16.1
lrwxr-xr-x 1 root wheel 7 Jan 22 18:54 /usr/share/man/man1/bunzip2.1 -> bzip2.1
lrwxr-xr-x 1 root wheel 7 Jan 22 18:54 /usr/share/man/man1/bzcat.1 -> bzip2.1
lrwxr-xr-x 1 root wheel 8 Jan 22 18:54 /usr/share/man/man1/bzcmp.1 -> bzdiff.1
lrwxr-xr-x 1 root wheel 7 Jan 22 18:54 /usr/share/man/man1/bzip2recover.1 -> bzip2.1
lrwxr-xr-x 1 root wheel 8 Jan 22 18:54 /usr/share/man/man1/bzless.1 -> bzmore.1
lrwxr-xr-x 1 root wheel 10 Jan 22 18:53 /usr/share/man/man1/c2ph.1 -> c2ph5.16.1
@vmrob
vmrob / wally_deleted_system_files.log
Created January 29, 2014 22:44
wally_deleted_system_files.log
mavericks-devs-MacBook-Pro:~ mavericks-dev$ ./wally_deleted_system_files.sh
-rwxr-xr-x 1 root wheel 14240 Jan 22 18:53 /usr/bin/agvtool
ls: /usr/bin/ant: No such file or directory
lrwxr-xr-x 1 root wheel 6 Jan 22 18:54 /usr/bin/bzcmp -> bzdiff
lrwxr-xr-x 1 root wheel 6 Jan 22 18:54 /usr/bin/bzless -> bzmore
lrwxr-xr-x 1 root wheel 7 Jan 22 18:53 /usr/bin/c++ -> clang++
lrwxr-xr-x 1 root wheel 3 Jan 22 18:55 /usr/bin/captoinfo -> tic
lrwxr-xr-x 1 root wheel 5 Jan 22 18:53 /usr/bin/cc -> clang
-rwxr-xr-x 1 root wheel 14240 Jan 22 18:53 /usr/bin/clang++
lrwxr-xr-x 1 root wheel 3 Jan 22 18:56 /usr/bin/ex -> vim
@vmrob
vmrob / makefile
Created February 10, 2014 21:47
makefile template
SHELL = /bin/bash
EXENAME = foo
SRCDIR = src
OBJDIR = obj
NO_COLOR=\033[0m
OK_COLOR=\033[32;01m
ERROR_COLOR=\033[31;01m
#! /bin/bash
PATH=/C/MinGW/msys/1.0/bin
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
for f in $(find $DIR/common/mekanism -name '*.java'); do
# remove trailing whitespaces
if grep -E $'[\t ]+$' $f > /dev/null ; then
@vmrob
vmrob / remove_objects.py
Created April 15, 2014 22:18
script for space engineers game
# The MIT License (MIT)
#
# Copyright (c) 2014 Victor Robertson
#
# 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:
@vmrob
vmrob / count_objects.py
Created April 15, 2014 22:19
count objects script for space engineers game
# The MIT License (MIT)
#
# Copyright (c) 2014 Victor Robertson
#
# 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:
@vmrob
vmrob / remove_debris.py
Created April 19, 2014 05:22
Script for space engineers to remove debris
# The MIT License (MIT)
#
# Copyright (c) 2014 Victor Robertson
#
# 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: