An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| import com.google.common.cache.CacheBuilder; | |
| import org.springframework.cache.Cache; | |
| import org.springframework.cache.annotation.EnableCaching; | |
| import org.springframework.cache.guava.GuavaCache; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import java.util.concurrent.TimeUnit; | |
| @Configuration |
| import com.google.common.cache.CacheBuilder; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.cache.CacheManager; | |
| import org.springframework.cache.annotation.CachingConfigurer; | |
| import org.springframework.cache.annotation.EnableCaching; | |
| import org.springframework.cache.guava.GuavaCache; | |
| import org.springframework.cache.interceptor.CacheErrorHandler; | |
| import org.springframework.cache.interceptor.CacheResolver; | |
| import org.springframework.cache.interceptor.KeyGenerator; |
| include Rails.application.routes.url_helpers | |
| default_url_options[:host] = "localhost" |
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
File locations:
nginx.conf to /usr/local/etc/nginx/default and default-ssl to /usr/local/etc/nginx/sites-availablehomebrew.mxcl.nginx.plist to /Library/LaunchDaemons/| # How to find out where a method comes from. | |
| # Learned this from Dave Thomas while teaching Advanced Ruby Studio | |
| # Makes the case for separating method definitions into | |
| # modules, especially when enhancing built-in classes. | |
| module Perpetrator | |
| def crime | |
| end | |
| end | |
| class Fixnum |