Do this once
sudo dseditgroup -o create brew
Create a brew group
Do this once
sudo dseditgroup -o create brew
Create a brew group#!/usr/bin/env bash | |
valet install | |
USER=$(whoami) | |
echo "Updating configuration for user '$USER'" | |
STR='Users\/[a-zA-Z0-9]*\/' | |
REPLACE="Users\/$USER\/" | |
REGEX="s/$STR/$REPLACE/g" |
Imagine you arrive to conference. You immediately get the brochure with timeline of all talks/workshops, venue map/plan etc. You use it to orientate in the event - you read the descriptions of all talks and the informaiton about the speakers to build you own timeline. This app should work as an venue brochure, which could receive updates, but could be accessible offline as well.
The app is meant to be universal across events - when you arrive to the event, you already have installed the app you are familiar with in your phone. You just scan QR code (+ optionally authenticate yourself) to load the data about current conference.
Some apps to get inspiration from: http://blog.venturepact.com/17-best-mobile-event-apps-for-conferences-and-corporate-events/
Oops! I accidentally deleted a local git branch, and I haven't pushed it to a remote server yet. The branch has several important commits, and it hasn't been merged with any other branches yet. How do I find the missing branch?
$ git fsck --full --no-reflogs --unreachable --lost-found
unreachable tree 4a407b1b09e0d8a16be70aa1547332432a698e18
unreachable tree 5040d8cf08c78119e66b9a3f8c4b61a240229259
unreachable tree 60c0ce61b040f5e604850f747f525e88043dae12
unreachable tree f080522d06b9853a2f18eeeb898724da4af7aed9
$in = "498,500-504,540,542-546,592,594-598,650-654,658,698,700-704,758,810,54-70"; | |
$r = explode(",", $in ); | |
$r2 = $r; | |
foreach ($r2 as $k => $v) { | |
if (strpos($v, "-") !== false) { | |
//var_dump($v); | |
$ab = explode("-", $v); | |
$r[$k] = $ab[0]; | |
for ($i = $ab[0]+1; $i <= $ab[1]; $i++) { |
javascript: (function(){ | |
document._ans=new Array(); | |
$('table[bgcolor="#CCCC66"] *').hide(); | |
$('table[bgcolor="#CCCC66"]').css({ | |
'border-bottom':'3px ridge','margin':'2px' | |
}); | |
$("form>p").hide(); | |
$("table[cellspacing='0'] tr").each( | |
function(i,b){ |
=============================== | |
SERVER (COMPILE AND SET UP GIT) | |
=============================== | |
1) Obtain 'gmake' binary and extract, since FreeBSD uses 'pmake' | |
curl -O ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.4-release/All/gmake-3.82_1.tbz | |
tar xjf ../gmake-3.82_1.tbz | |
2) Obtain 'git' sources and extract | |
... |