A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
FROM alpine | |
ENV \ | |
APP_DIR="/app" \ | |
APP_PORT="80" | |
# the "app" directory (relative to Dockerfile) containers your Laravel app... | |
COPY app/ $APP_DIR | |
RUN apk add --update \ |
To make Postman work with POST/PUT requests... | |
https://laravel.com/docs/5.2/routing#csrf-x-csrf-token | |
In addition to checking for the CSRF token as a POST parameter, the Laravel VerifyCsrfToken middleware will also check for the X-CSRF-TOKEN request header. | |
1. Store the token in a "meta" tag at the top of your root view file (layouts/app.blade.php)... | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
** If using jQuery, you can now instruct it to include the token in all request headers. | |
$.ajaxSetup({ |
I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).
The solution is to compile libimobiledevice and ifuse from source.
Who is this guide intended for?
fn sort(data: &mut Vec<i32>) { | |
for i in 0..data.len() { | |
for j in i..data.len() { | |
if data[i] > data[j] { | |
data.swap(i, j); | |
} | |
} | |
} | |
} |
Cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
This document describes making a self hosted nightscout instance, with SSL encryption and certificate with Let's Encrypt.
Make a fresh instance of Ubuntu 16.04.1 LTS as a VM or on a physical machine Download from http://www.ubuntu.com/download/server/thank-you?version=16.04.1&architecture=amd64
VIrtual machine host options :
#include "pin.H" | |
#include <iostream> | |
#include <map> | |
typedef long long LL; | |
typedef pair<int, int> pii; | |
#define forup(i, a, b) for (int i = (a); i < (b); ++i) | |
#define fordn(i, a, b) for (int i = (a); i > (b); --i) | |
#define rep(i, a) for (int i = 0; i < (a); ++i) |
alias gs='git status' | |
alias ga='git add' | |
alias gl='git pull' | |
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