Skip to content

Instantly share code, notes, and snippets.

View angezanetti's full-sized avatar
🏠
Remote work FTW

Xavier angezanetti

🏠
Remote work FTW
View GitHub Profile
@angezanetti
angezanetti / [..auth].js
Created May 27, 2022 16:31
Twitter auth with sveltekit & supabase
import supabase from '$lib/db';
import * as cookie from 'cookie';
import { TwitterApi } from 'twitter-api-v2';
const twitterClient = new TwitterApi({
appKey: 'xxx',
appSecret: 'xxxxx'
});
@angezanetti
angezanetti / fathom_to_heroku.md
Last active October 29, 2019 01:31 — forked from gmolveau/fathom_to_heroku.md
How to push Fathom analytics - https://github.com/usefathom/fathom to Heroku

Deploy Fathom on Heroku

Requirements

  • heroku cli (logged in)
  • git
  • curl
  • wget
  • tar are required
  • ~ openssl is required to generate the secret_key, but you're free to use what you want
@angezanetti
angezanetti / vagrantCaliopenBox.md
Last active August 29, 2015 14:06
Instal the caliopen box from VagrantCloud

Vagrant box of caliopen avaliable here https://vagrantcloud.com/dey/caliopen_full-ubuntu-14.04

Search and replace in include/_VagrantFile(:

config.vm.provider :virtualbox do |vb|
#   # Don't boot with headless mode
#     vb.gui = true
#
#   # Use VBoxManage to customize the VM. For example to change memory:

vb.customize ["modifyvm", :id, "--memory", "2048"]

@angezanetti
angezanetti / FromSPIPtoWordpress.sql
Last active November 1, 2019 13:19
Migrate SPIP to Wordpress with SQL
-- Source http://contrib.spip.net/Export-Spip-vers-Wordpress
-- Imports terms
REPLACE INTO wp_terms(term_id, name, slug, term_group)
SELECT id_rubrique, titre, CONCAT("rub",id_rubrique), 1 FROM spip_rubriques;
-- Update urls
UPDATE wp_terms, spip_urls