Skip to content

Instantly share code, notes, and snippets.

View Fuitad's full-sized avatar

Pierre-Luc Brunet Fuitad

  • Montreal, Quebec, Canada
View GitHub Profile
@adamwathan
adamwathan / 1-add-macros.php
Last active June 11, 2022 19:55
Multiformat Endpoints in Laravel
<?php
namespace App\Providers;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Support\ServiceProvider;
use App\Http\Middleware\CaptureRequestExtension;
class AppServiceProvider extends ServiceProvider
@yesnault
yesnault / utilSinceDB.sh
Created January 26, 2014 16:18
Logstash - Query Sincedb for Processed Files
#!/bin/bash
#
#
# Usage
# This script do nothing, it juste show files that are scanned or not by
# Logstash and plugin File. 3 outputs
#
# ./utilSinceDB.sh
# ./utilSinceDB.sh | grep "not found in sincedb"
# ./utilSinceDB.sh | grep "to delete"
@tott
tott / ip_in_range.php
Created November 27, 2013 22:46
php check if IP is in given network range
/**
* Check if a given ip is in a network
* @param string $ip IP to check in IPV4 format eg. 127.0.0.1
* @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed
* @return boolean true if the ip is in this range / false if not.
*/
function ip_in_range( $ip, $range ) {
if ( strpos( $range, '/' ) == false ) {
$range .= '/32';
}
まず
iCloudログイン
AppStoreで以下をインストール (購入済みタブからまとめてインストールできる)
Xcode
Slack
Sketch
LINE
sourceTree
@kageroh
kageroh / shingeki.user.js
Created May 10, 2012 09:43
神撃のバハムート,戦国サーガ,バトルスピリッツ 覇者の咆哮をGoogle Chromeで遊ぶためのUserScript(チュートリアル対応版)(ついでにモンハン カードマスターもできる)
// ==UserScript==
// @name shingeki.js
// @namespace http://twitter.com/amasawa
// @include http://sp.pf.mbga.jp/12007160*
// @include http://sp.pf.mbga.jp/12008054*
// @include http://sp.pf.mbga.jp/12009496*
// @include http://sp.pf.mbga.jp/12008982*
// @run-at document-start
// ==/UserScript==
@furugomu
furugomu / proxy.js
Created February 14, 2012 12:22
神撃のバハムートを PC で遊ぼう!
// usage: node proxy.js
var http = require('http'),
httpProxy = require('http-proxy');
var userScripts = [
// 神撃のバハムートの PC 拒否を突破
function() {
window.ontouchstart = function(){};
window.orientation = 0;