Skip to content

Instantly share code, notes, and snippets.

Josué Artaud jartaud

Block or report user

Report or block jartaud

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jartaud
jartaud / index.html
Created Jun 2, 2019 — forked from jsanta/index.html
PWA index.html file for Android and iOS copy & paste enabled
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Ionic App</title>
<base href="/" />
<meta
name="viewport"
@jartaud
jartaud / install.bash
Created Sep 15, 2018 — forked from val-bubbleflat/install.bash
Install V8Js on Laravel Forge
View install.bash
sudo add-apt-repository ppa:pinepain/libv8-5.2
sudo apt-get update
sudo apt-get install libv8-5.2
sudo pecl install v8js
sudo su
echo "extension=v8js.so" >> /etc/php/7.1/fpm/php.ini
echo "extension=v8js.so" >> /etc/php/7.1/cli/php.ini
exit
sudo service nginx restart && sudo service php7.1-fpm restart
@jartaud
jartaud / gist:f02a4ef2b93a46666e119b2d9e9ccdd4
Created Dec 14, 2017 — forked from rolinger/gist:d6500d65128db95f004041c2b636753a
PHP => FCM Push notification tutorial for Android and iOS
View gist:f02a4ef2b93a46666e119b2d9e9ccdd4
Below is a full tutorial on how to setup and use Googles Firebase push notification API for both Android and iOS. It is based on this
earlier implementation of Googles GCM method: https://gist.github.com/prime31/5675017 - FCM is the new method and GCM will eventually be
retired.
## THE BELOW METHOD IS THE NEWER FCM METHOD:
Register your app in the FCM Console: https://console.firebase.google.com (add project)
1. Click on the newly added project, in the upper left menu is the "Overview" and Gear Settings.
2. Click on the GEAR settings icon, and then on "Project Settings"
3. In the main screen, click on "Cloud Messaging"
@jartaud
jartaud / CreateRouteTranslateLang.php
Last active Jan 14, 2016
Create lang array for arcanedev/localization package
View CreateRouteTranslateLang.php
<?php
// TODO: clean/extract
namespace app\Console\Commands;
use Illuminate\Console\Command;
class CreateRouteTranslateLang extends Command
{
View filters.php
<?php
// app/filters.php
App::before(function($request)
{
// get current host and replace . with _
$host = str_replace('.', '_', $request->getHost());
// get current config based on $host
You can’t perform that action at this time.