<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
var aws = require('aws-sdk'); | |
var s3 = new aws.S3(); | |
exports.handler = (event, context, callback) => { | |
var srcBucket = event.Records[0].s3.bucket.name; | |
var srcKey = event.Records[0].s3.object.key; | |
// Process file, maybe some CSV parse or image resize, etc. | |
// Delete file |
if ($request_uri = /) { | |
set $test A; | |
} | |
if ($host ~* teambox.com) { | |
set $test "${test}B"; | |
} | |
if ($http_cookie !~* "auth_token") { | |
set $test "${test}C"; |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
server { listen 80; | |
server_name example.com; | |
access_log /var/log/example.com/nginx.access.log; | |
error_log /var/log/example.com/nginx.error.log; | |
root /var/www/apps/example.com/public; | |
charset utf-8; | |
location / { | |
rewrite ^ https://$host$request_uri? permanent; | |
} |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
<style> | |
.inner-addon .glyphicon { | |
position: absolute; | |
padding: 10px; | |
pointer-events: none; | |
} | |
</style> | |
<div class="inner-addon right-addon"> | |
<a href="#" style="display:block;"><i class="glyphicon glyphicon-search"></i></a> |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# Originaly from http://ironco.de/bare-minimum-git/ | |
# ver 20150130 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
// | |
// main.cpp | |
// patty | |
// | |
// Created by Juanca on 2/12/13. | |
// Copyright (c) 2013 Juancarlos Cruz. All rights reserved. | |
// | |
#include <iostream> | |
#include <iomanip> |
<?php | |
remove_action( 'wp_head', 'wp_generator' ); | |
remove_action( 'wp_head', 'rsd_link' ); | |
remove_action( 'wp_head', 'wlwmanifest_link' ); | |
remove_action( 'wp_head', 'start_post_rel_link' ); | |
remove_action( 'wp_head', 'index_rel_link' ); | |
remove_action( 'wp_head', 'wp_shortlink_wp_head' ); | |
remove_action( 'wp_head', 'adjacent_posts_rel_link' ); |