Skip to content

Instantly share code, notes, and snippets.

View josecelano's full-sized avatar

Jose Celano josecelano

View GitHub Profile
@josecelano
josecelano / keybase.md
Created December 11, 2023 22:32
Prrof

Keybase proof

I hereby claim:

  • I am josecelano on github.
  • I am josecelano (https://keybase.io/josecelano) on keybase.
  • I have a public key ASA6nwb4qqa8gSA5lHoCFaIKCBPKwzS9z4iwYf4S-eZBcAo

To claim this, I am signing this object:

@josecelano
josecelano / github-workflow-deploy-to-gh-pages.txt
Last active September 10, 2021 12:06
GitHub Workflow to deploy Svelte apps to GitHub Pages
# This is a basic workflow to automatically build a Svelte app and deploy it to GitHub Pages
name: Deploy to GitHub Pages
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#ifndef FRACT_STDLIB_H_
#define FRACT_STDLIB_H_
#ifdef __cplusplus
@josecelano
josecelano / currency_symbols.php
Created November 16, 2017 09:37 — forked from gibbs/currency_symbols.php
An array of currency symbols as HTML entities
<?php
$currency_symbols = array(
'AED' => '&#1583;.&#1573;', // ?
'AFN' => '&#65;&#102;',
'ALL' => '&#76;&#101;&#107;',
'AMD' => '',
'ANG' => '&#402;',
'AOA' => '&#75;&#122;', // ?
'ARS' => '&#36;',
'AUD' => '&#36;',
Verifying my Blockstack ID is secured with the address 1KcajFC1xmw6bEBdXBcyG5xTfuUFkGNW4F https://explorer.blockstack.org/address/1KcajFC1xmw6bEBdXBcyG5xTfuUFkGNW4F
#!/bin/sh -v
# Set directories permissions
# Set Apache user as group owner for directories which require write perms
# This script is running as jenkins user. Jenkins should belong to www-data group
find ./vendor/orchestra/testbench/fixture/storage -type d -exec chgrp -v www-data {} +
find ./vendor/orchestra/testbench/fixture/storage -type d -exec chmod ug+rw {} +
find ./vendor/orchestra/testbench/fixture/bootstrap/cache -type d -exec chgrp -v www-data {} +
find ./vendor/orchestra/testbench/fixture/bootstrap/cache -type d -exec chmod ug+rw {} +
chgrp -v www-data ./vendor/orchestra/testbench/fixture/bootstrap/cache/services.php
chmod ug+rw ./vendor/orchestra/testbench/fixture/bootstrap/cache/services.php
@josecelano
josecelano / pre-commit
Created February 17, 2016 12:31 — forked from raphaelstolt/pre-commit
A pre-commit for running PHPUnit
#!/usr/bin/php
<?php
printf("%sGit pre-commit hook %1\$s", PHP_EOL);
$projectName = basename(getcwd());
exec('phpunit --configuration phpunit.xml', $output, $returnCode); // Assuming cwd here
if ($returnCode !== 0) {
$minimalTestSummary = array_pop($output);
printf("Test suite for %s failed: ", $projectName);
printf("( %s ) %s%2\$s", $minimalTestSummary, PHP_EOL);
return false; // exit(1);
<?php
final class GetProjectsController extends Controller
{
/**
* @var QueryObjectFactory
*/
private $queryObjectFactory;
/**
@josecelano
josecelano / setup_selenium.sh
Last active November 9, 2015 16:51 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
@josecelano
josecelano / first.php
Last active October 20, 2019 17:45
Make First Call PHP File
<?php
// 1. Autoload the SDK Package. This will include all the files and classes to your autoloader
require __DIR__ . '/php-client/autoload.php';
// 2. Provide your Token. Replace the given one with your app Token
// https://accounts.blockcypher.com/dashboard
$token = 'c0afcccdde5081d6429de37d16166ead';
$apiContext = new \BlockCypher\Rest\ApiContext(
new \BlockCypher\Auth\SimpleTokenCredential($token)