Skip to content

Instantly share code, notes, and snippets.

View jessedobbelaere's full-sized avatar
🚢
Ship all the features!

Jesse Dobbelaere jessedobbelaere

🚢
Ship all the features!
View GitHub Profile
@jessedobbelaere
jessedobbelaere / userstyle.css
Last active June 1, 2017 19:14
Flowdock Classic (<May 2017) theme
/**
* On 2017-05-30, Flowdock did some UI changes. This is an attempt to ease the pain.
* Save this file as userstyle.css and put it inside ~/Library/Application Support/Flowdock/, then hit CMD+R to reload Flowdock.
*
* https://gist.github.com/jessedobbelaere/95c02699b2e0acd35762d204797b74f9
* @author Jesse Dobbelaere (@JesseDobbelaere)
*/
/* Improve the font */
body {
@jessedobbelaere
jessedobbelaere / Default.tpl
Last active August 29, 2015 14:08
Fork CMS Triton with shopping cart & profiles
{include:Core/Layout/Templates/Head.tpl}
<body class="{$LANGUAGE}" itemscope itemtype="http://schema.org/WebPage">
{include:Core/Layout/Templates/Cookies.tpl}
<div id="topWrapper">
<header id="header">
<div class="container">
{* Logo *}
@jessedobbelaere
jessedobbelaere / uninstall.sql
Last active June 21, 2016 19:03
Fork CMS 3.6.6 uninstall.sql demo
-- Execute these queries to uninstall the module (used for development)
-- Use PHPMyAdmin's search functionality to see if all references to your module got deleted.
-- Drop module tables
DROP TABLE IF EXISTS video;
-- Remove from backend navigation
DELETE FROM backend_navigation WHERE label LIKE '%video%';
DELETE FROM backend_navigation WHERE url LIKE '%video%';
@jessedobbelaere
jessedobbelaere / README.md
Created May 1, 2014 00:53
Fork CMS 3.6 -> 3.7 upgrade script

Fork CMS DB upgrade (3.6 -> 3.7).

Description

I wondered if you could just convert your old database and make it work with Fork CMS 3.7. I gave it a try...

This php script will convert your Fork CMS 3.6 database (in the best way possible) to Fork CMS 3.7 using mysql UPDATE queries. I used Kaleidoscope, a file comparing app, to see the db changes between a 3.6 dump and 3.7 mysql dump and I wrote the appropriate queries and some php code to deserialize the arrays.

Note: I've tested this script with a fresh Fork install of 3.7 where I used the database of a Fork 3.6 installation. The script converted the db and I could use the fork backend & frontend without problems. I also tried this on an existing 3.6.6 website that I made. A fresh fork install where I copied the theme & files folders, upgraded the theme to 3.7 and finally converted my old database to a working 3.7 version.

@jessedobbelaere
jessedobbelaere / model.php
Last active August 29, 2015 13:58
Fork CMS projects module - Show more than 1 spotlight item
<?php
/**
* Get related items based on tags
*
* @param int $id
* @param int[optional] $limit
* @return array
*/
public static function getSpotlightProject()
@jessedobbelaere
jessedobbelaere / script.py
Created May 8, 2013 15:10
Check-in script
#!/usr/bin/python
from time import sleep
from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate
import requests
import os
# Variables
baseURL = 'http://127.0.0.1'
@jessedobbelaere
jessedobbelaere / Twitter.php
Created November 5, 2012 19:08
Twitter oAuth problem
<?php
/*
* This file is part of the FOSTwitterBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/