To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
| package net.kristopherjohnson.util; | |
| import java.text.DateFormat; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.Locale; | |
| import java.util.TimeZone; | |
| /** | |
| * Methods for dealing with timestamps | 
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.BaseAdapter; | |
| /** | |
| * An implementation of {@link BaseAdapter} which uses the new/bind pattern and | |
| * view holder pattern for its views. | |
| * | 
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <string name="config_app_name">AVélib</string> | |
| <string name="config_authority">com.cyrilmottier.android.avelib.citybikes</string> | |
| <string name="config_com.google.android.maps.v2.api_key">XXX</string> | |
| </resources> | 
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| upstream plex-upstream { | |
| # change plex-server.example.com:32400 to the hostname:port of your plex server. | |
| # this can be "localhost:32400", for instance, if Plex is running on the same server as nginx. | |
| server plex-server.example.com:32400; | |
| } | |
| server { | |
| listen 80; | |
| # server names for this server. | 
| // Copyright 2012 Square, Inc. | |
| package com.squareup.test; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import com.actionbarsherlock.ActionBarSherlock; | |
| import com.actionbarsherlock.app.ActionBar; | |
| import com.actionbarsherlock.internal.ActionBarSherlockCompat; | 
| # From: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=86912 | |
| # 1. Prepare the USB disk | |
| # Create an ext3 partition using GParted for instance | |
| #2. Configure DD-WRT | |
| #Under Services->Services->Secure Shell: | |
| #* Enable SSHd | |
| #* Click Apply Settings | |
| # | 
| description "Upstart script to run a nodejs app as a service" | |
| author "Louis Chatriot" | |
| env NODE_BIN=/usr/local/bin/node | |
| env APP_DIR=/path/to/app/dir | |
| env SCRIPT_FILE="scriptfile.js" # Entry point for the nodejs app | |
| env LOG_FILE=/path/to/logfile.log | |
| env RUN_AS="anyuser" # Upstart can only be run nicely as root, need to drop privileges | |
| env SERVER_ENV="anything" # Usual apps can be run in different environments (development, test, production ...) | |
| # I typically use the environment variable NODE_ENV (see below) | 
| package annotations; | |
| import android.os.Build; | |
| import java.lang.annotation.ElementType; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| import java.lang.annotation.Target; | |
| /** | 
| #!/usr/bin/python -tt | |
| # (c) 2012, Stefan Midjich | |
| # Written by Stefan Midjich <[email protected]> | |
| # | |
| # This module was written for Ansible. | |
| # It doesn't support all of Homebrew yet. | |
| # | |
| # Ansible is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |