Skip to content

Instantly share code, notes, and snippets.

View mlncn's full-sized avatar

Benjamin Melançon mlncn

View GitHub Profile
Running bash [-c /tmp/test_ddev.sh]
======= Existing project config =========
These config files were loaded for project refer-laaha: [/home/mlncn/Projects/github/unicef/refer-laaha/.ddev/config.yaml]
name: refer-laaha
type: drupal9
docroot: docroot
php_version: 8.1
webserver_type: apache-fpm
webimage: drud/ddev-webserver:v1.21.4
router_http_port: 80
@mlncn
mlncn / blt.yml
Created December 13, 2022 08:34
BLT yaml
# This file contains your BLT configuration. For a list of all available
# properties with current values run `blt config:dump`. Default values come
# from vendor/acquia/blt/config/build.yml.
#
# These values can be overridden at the command line using `--define`, i.e.:
# blt setup --define project.profile.name=minimal
#
# However, when tokens in this file are expanded, they will not use any such
# command-line overrides. For instance, `blt sync --define drush.aliases.local`
# will not modify `drush.default_alias`, even though `drush.default_alias` is
$ blt artifact:deploy --commit-msg "Deploy to build" --branch "build"
Commit message is set to Deploy to build.
Branch is set to build.
Preparing artifact directory...
Global .gitignore file is being disabled for this repository to prevent unexpected behavior.
Merging upstream changes into local artifact...
Generating build artifact...
For more detailed output, use the -v flag.
> source:build:frontend
> source:build:frontend-reqs
@mlncn
mlncn / keybase.md
Created April 10, 2020 03:00
keybase.md

Keybase proof

I hereby claim:

  • I am mlncn on github.
  • I am mlncn (https://keybase.io/mlncn) on keybase.
  • I have a public key ASCvmtF9wx5F7P6roj1Q4agS5VARB1FmHP5iE9Fwj_fTNAo

To claim this, I am signing this object:

@mlncn
mlncn / gist:0cd18395d00b68d8c68737fdfe6a87ae
Created July 25, 2018 01:32
Akaunting with SQLite install error
(1/1) SchemaException
There is no column with name 'attachment' on table 'bill_payments'.
in SchemaException.php line 86
at SchemaException::columnDoesNotExist('attachment', 'bill_payments')in Table.php line 671
at Table->getColumn('attachment')in Connection.php line 844
at Connection->getDoctrineColumn('bill_payments', 'attachment')in SQLiteGrammar.php line 225
at SQLiteGrammar->compileDropColumn(object(Blueprint), object(Fluent), object(SQLiteConnection))in Blueprint.php line 110
at Blueprint->toSql(object(SQLiteConnection), object(SQLiteGrammar))in Blueprint.php line 85
at Blueprint->build(object(SQLiteConnection), object(SQLiteGrammar))in Builder.php line 239
@mlncn
mlncn / togglefontsloadedclass.js
Last active December 8, 2016 13:32
Toggle fonts-loaded class
// ==UserScript==
// @name Toggle fonts-loaded
// @namespace agaric
// @description Toggle fonts loaded
// @include *.local
// @version 1
// @grant none
// ==/UserScript==
(function(){
@mlncn
mlncn / app.coffee
Last active December 17, 2015 01:38 — forked from jondot/app.coffee
class Thumb extends Backbone.Model
defaults:
uri: ''
state: ''
select: (state) ->
st = ''
st = 'selected' if state
@set('state' : st)
#!/bin/sh
# Pre-commit hook for git which removes trailing whitespace, converts tabs to spaces, and enforces a max line length.
if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
@mlncn
mlncn / tpl.html
Created September 3, 2011 00:32 — forked from jacine/tpl.html
hrm...
<span property="dc:date dc:created" content="2011-08-30T17:01:12-04:00" datatype="xsd:dateTime">
<time datetime="2011-08-30T21:01:12" pubdate="pubdate">30 Aug 2011</time>
</span>
@mlncn
mlncn / showspreadsheet.php
Created January 9, 2011 12:44 — forked from pamelafox/showspreadsheet.php
by Pamela Fox, a tiny code snippet for using PHP to render published Google spreadsheets as HTML, which she ported from (Ported from her similarly tiny Python + App Engine version here: https://github.com/pamelafox/pamelafox-site/blob/master/main.py
<?php
// Parsing this spreadsheet: https://spreadsheets.google.com/pub?key=0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc&hl=en&output=html
$url = 'http://spreadsheets.google.com/feeds/list/0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc/od6/public/values?alt=json';
$file= file_get_contents($url);
$json = json_decode($file);
$rows = $json->{'feed'}->{'entry'};
foreach($rows as $row) {
echo '<p>';