Skip to content

Instantly share code, notes, and snippets.

View barrycarton's full-sized avatar

Thomas Carton de Wiart barrycarton

  • Studio RVB
  • Brussels
View GitHub Profile
{# v2 #}
{# http://craftsnippets.com/articles/universal-language-switcher-for-craft-cms #}
{# logic #}
{% set currentElement = craft.app.urlManager.matchedElement %}
{% set sites = craft.app.getSites().getGroupById(currentSite.groupId).getSites() %}
{% set switcherLinks = [] %}
{% for site in sites if site.baseUrl is not empty %}
const header = {
headers: {'api-key': 'XXXXXXXXXXXXXXXXXXXX'}
};
axios.post('https://api.sendinblue.com/v3/contacts', {
listIds: ['4'],
email: this.state.inputVal
}, header).then(function(res){
console.log(res);
}).catch(function(error){
console.log(error)
<p style="text-align: center;"><a href="https://donate-kbs-frb-be.iraiser.eu/Fonds101Genomes/" target="_blank" rel="noopener"><strong>EFFECTUEZ UN DON EN LIGNE
Les dons en ligne sont collectés via le module sécurisé mis à notre disposition par la Fondation Roi Baudouin</strong></a></p>
<a href="https://donate-kbs-frb-be.iraiser.eu/9/~my-donation?context_form_id=form_81.240.253.104_5c112fdf88c0c8.83780470" target="_blank" rel="noopener"><img class="aligncenter wp-image-365" src="http://www.f101g.org/wp-content/uploads/2018/12/FRB.png" alt="" width="266" height="117" /></a>
@barrycarton
barrycarton / free-space-on-boot-disk.md
Created May 20, 2016 09:23 — forked from jbgo/free-space-on-boot-disk.md
Free up space on /boot disk (ubuntu)

Free disk space when /boot is full (Ubuntu)

TL;DR

dpkg -l linux-image*
uname -r
sudo apt-get remove linux-image-2.6.32-{21,37,38,39,40,41,42,43,44}-server
sudo apt-get autoremove
Verifying that +thomascarton is my openname (Bitcoin username). https://onename.com/thomascarton