Skip to content

Instantly share code, notes, and snippets.

View olssonm's full-sized avatar
🖥️
Working on some cool stuff

Marcus Olsson olssonm

🖥️
Working on some cool stuff
View GitHub Profile
@nikazooz
nikazooz / app Listeners AddArchivePages.php
Created August 29, 2018 22:12
Tags and archives with Jigsaw
<?php
namespace App\Listeners;
use TightenCo\Jigsaw\Jigsaw;
use App\PseudoCollectionGenerator;
use Illuminate\Support\Collection;
class AddArchivePages extends PseudoCollectionGenerator
{
@biojazzard
biojazzard / facebook_page_latest_post_no_php_sdk.php
Created March 6, 2016 11:32
Get Latest Post From a Facebook Page without PHP SDK (Graph Version v2.5)
<?php
/*
1.- Create an App.
2.- Go to: https://developers.facebook.com/tools/explorer/
+ Select your new created app on the right top.
+ Select "Get App Token"
@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active April 1, 2024 11:21
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@Antaru
Antaru / holidays.php
Last active December 6, 2022 00:35
Class to determine Swedish holidays based on year
<?php
class Holidays {
private $dates;
private $enum_dates = array(
'NEW_YEARS_DAY' => array('Nyårsdagen'),
'EPIPHANY' => array('Trettondedag jul', 'Trettondagen'),
'HOLY_THURSDAY' => array('Skärtorsdagen'),
'GOOD_FRIDAY' => array('Långfredag'),