Photons are dying.
Eyelids are still blinking.
Clock is ticking.
Heart is slowly beating.
Parasites are rising.
Cerebral cells are colliding.
Troubles are spreading.
Ions are crackling.
Soul is screaming.
Brain is throttling.
Photons are dying.
Eyelids are still blinking.
Clock is ticking.
Heart is slowly beating.
Parasites are rising.
Cerebral cells are colliding.
Troubles are spreading.
Ions are crackling.
Soul is screaming.
Brain is throttling.
# coding:utf-8 | |
# Copyright 2011 litl, LLC. All Rights Reserved. | |
import httplib | |
import re | |
import urllib | |
import urlparse | |
from flask import Blueprint, request, Response, url_for | |
from werkzeug.datastructures import Headers |
#!/bin/bash | |
# | |
# Create a MariaDB user for the backups: | |
# | |
# CREATE USER 'backupuser'@localhost IDENTIFIED BY 'password'; | |
# GRANT SELECT ON *.* TO 'backupuser'@'localhost'; | |
# FLUSH PRIVILEGES; | |
# | |
# Tested for a MONARC installation: |
$ locate bin/postgres | |
/usr/lib/postgresql/10/bin/postgres | |
/usr/lib/postgresql/12/bin/postgres | |
/usr/lib/postgresql/9.5/bin/postgres | |
$ sudo pg_lsclusters | |
$ mkdir backup-pg | |
$ sudo cp -R /var/lib/postgresql/9.5 backup-pg |
# Configure and install pyenv: | |
# https://gist.github.com/cedricbonhomme/ababe00d0a675ea5c69d777276e8f375 | |
# Install apxs2: | |
sudo apt install apache2-dev | |
# Install Python with shared libraries support: | |
CONFIGURE_OPTS=--enable-shared pyenv install 3.10.0 |
#! /usr/bin/env python | |
# -*- coding: utf-8 - | |
import requests | |
import uuid | |
# The JSON object | |
json_object = { | |
"authors": ["Consortium GARR [www.garr.it]"], |
#!/bin/bash | |
# Defore executing this script you must install curl and jq: | |
# sudo apt-get install curl jq | |
set -e | |
# database user: |
name: "Close stale issues" | |
on: | |
schedule: | |
- cron: "15 4 * * 1,3,5" | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/stale@v3 |
# Installation of a decent editor, emacs | |
$ sudo apt install emacs | |
# Prerequisites to build Python | |
$ sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev liblzma-dev libxml2-dev libxslt-dev libpq-dev python3-openssl | |
sudo -u postgres createuser <username> | |
sudo -u postgres createdb <database> | |
sudo -u postgres psql | |
psql (11.2 (Ubuntu 11.2-1)) | |
Type "help" for help. | |
postgres=# alter user <username> with encrypted password '<password>'; | |
ALTER ROLE | |
postgres=# grant all privileges on database <database> to <username>; | |
GRANT |