Skip to content

Instantly share code, notes, and snippets.

View AlexR1712's full-sized avatar
🏠
Working from home

Alexander J. Rodriguez D. AlexR1712

🏠
Working from home
View GitHub Profile
@AlexR1712
AlexR1712 / file.io.upload.php
Created September 1, 2016 03:04
File.io PHP File Upload up to 5GB
<?php
// Use composer
// composer require guzzlehttp/guzzle:~6.0
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client();
@camaleaun
camaleaun / fb-feed-placeholder.markdown
Created August 17, 2016 02:17
FB Feed Placeholder
@joemiller
joemiller / php-sock-test.sh
Created May 1, 2014 14:46
test connection to all running php-fpm's local unix sockets on a host
#!/bin/sh
for uid in $(ps aux | grep php-fpm | grep master | grep bindings | awk '{print $1}'); do
home=$(getent passwd $uid | awk -F: '{print $6}')
if echo /dev/null | socat UNIX:$home/run/php-fpm.sock - ; then
echo "$home/run/php-fpm.sock connect OK"
else
echo "$home/run/php-fpm.sock connect ERROR"
fi
done
import { Injectable } from '@angular/core';
import { Http, Response, Headers } from '@angular/http';
import * as jwt_decode from 'jwt-decode';
export const TOKEN_NAME: string = 'jwt_token';
@Injectable()
export class AuthService {
private url: string = 'api/auth';
@francoisTemasys
francoisTemasys / installJitsiTMS.sh
Last active December 14, 2018 16:38
This script will deploy a jitsi.meet webserver (running on nginx) and a jitsi.videobridge XMPP component (running on Prosody). No TURN server is installed and no NAT server configuration is created.
#/bin/bash
#(c) Copyright 2014 Temasys Communication, Pte Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
// ==UserScript==
// @name TagPro Timers
// @version 0.2.3
// @include http://tagpro-*.koalabeast.com:*
// @include http://tangent.jukejuice.com:*
// @include http://*.newcompte.fr:*
// @author Some Ball -1
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
@MrJmpl3
MrJmpl3 / ApiTrait.php
Last active July 18, 2019 13:35
ApiTrait - Trait helpers to Laravel API Resources
<?php
/**
* Copyright (c) 2018.
* Archivo desarrollado por Jose Manuel Casani Guerra bajo el pseudonimo de MrJmpl3
*
* Email: jmpl3.soporte@gmail.com
* Twitter: @MrJmpl3
* Pagina Web: https://mrjmpl3-official.es
*/
@GhazanfarMir
GhazanfarMir / routes.php
Last active September 5, 2019 09:45
Multi site routing in Laraval 5
/*
|--------------------------------------------------------------------------
| Multi Sites Laravel Routing
|--------------------------------------------------------------------------
|
| You may setup single laravel application to serve multiple applications
| hosting on different domains and/or subdomain using the following
| routing feature provided by laravel easily. Just define routes
| as given below.
@Underdoge
Underdoge / commonCharacterCount.js
Created February 25, 2017 23:26
commonCharacterCount
function commonCharacterCount(s1, s2) {
var string1=s1.split('');
var string2=s2.split('');
var common=0;
for(var i=0;i<string1.length;i++){
if(string2.indexOf(string1[i])>=0){
common++;
string2.splice(string2.indexOf(string1[i]),1);
}
@AlexR1712
AlexR1712 / bancos
Created December 27, 2017 20:17 — forked from xombra/bancos
Codigo y Bancos correspondientes de Venezuela
Banco:
<select name="banco">
<option value=""></option>
<option value="0156">100%BANCO</option>
<option value="0196">ABN AMRO BANK</option>
<option value="0172">BANCAMIGA BANCO MICROFINANCIERO, C.A.</option>
<option value="0171">BANCO ACTIVO BANCO COMERCIAL, C.A.</option>
<option value="0166">BANCO AGRICOLA</option>
<option value="0175">BANCO BICENTENARIO</option>
<option value="0128">BANCO CARONI, C.A. BANCO UNIVERSAL</option>