git diff $(git rev-list -n1 --before="1 day ago" master)
remove a file from a git repository with:
git filter-branch --tree-filter 'rm file'
I hereby claim:
To claim this, I am signing this object:
| /usr/local/share/jre1.8.0_121/bin/java -server \ | |
| -d64 \ | |
| -Xmx14G \ | |
| -XX:NewRatio=3 -XX:+UseThreadPriorities \ | |
| -XX:SoftRefLRUPolicyMSPerMB=2048 \ | |
| -XX:CMSInitiatingOccupancyFraction=90 \ | |
| -XX:MaxGCPauseMillis=50 \ | |
| -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled \ | |
| -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking \ | |
| -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 \ |
bootstrap/app.php
+require_once __DIR__.'/../app/helpers.php';
require_once __DIR__.'/../vendor/autoload.php';
app/helpers.php
<?php
| // ==UserScript== | |
| // @name 取得貼罷的內容 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match *://tieba.baidu.com/p/*?see_lz=1* | |
| // @grant none | |
| // ==/UserScript== |
For some situation, test user could not create page through web, but using graph api explorer may do it.
https://developers.facebook.com/tools/explorer?method=POST&path=me%2Faccounts&version=v3.0&name=Bob%20Test%20Page%201&category=756092301147942&about=Bob%20test&picture=https%3A%2F%2Fbowwowinsurance.com.au%2Fwp-content%2Fuploads%2F2014%2F12%2Ffrench-bulldog-frenchie-700x700.jpg&cover_photo=%7B%22url%22%3A%22https%3A%2F%2Fbowwowinsurance.com.au%2Fwp-content%2Fuploads%2F2014%2F12%2Ffrench-bulldog-frenchie-700x700.jpg%22%7D
| #!/usr/local/bin/php | |
| <?php | |
| try { | |
| if (!isset($argv[1])) { | |
| throw new Exception("Missing target path", 1); | |
| } |
| #!/bin/bash | |
| ############################################### | |
| # To use: | |
| # chmod +x install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| version=5.0.0 |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot() |