Skip to content

Instantly share code, notes, and snippets.

2018-03-01T22:27:18.184875Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-03-01T22:27:18.930583Z 0 [Warning] InnoDB: New log files created, LSN=45790
2018-03-01T22:27:19.025386Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2018-03-01T22:27:19.089713Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: b3f3ad61-1d9f-11e8-aabe-0242ac110002.
2018-03-01T22:27:19.091232Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2018-03-01T22:27:19.091957Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2018-03-01T22:52:56.293609Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2018-03-01T22:52:56.311311Z mysqld_safe Starting mysqld daemon with databases from /var/lib/
@claudiodangelis
claudiodangelis / ▲▼ HN Is Down (news.ycombinator.com)
Last active December 26, 2015 23:29
▲▼ HN Is Down (news.ycombinator.com)
#!/bin/bash
MAX_DOCUMENTS=100
MAX_PAGES=300
for model in CO CR GX PX; do
mkdir out/$model
case $model in
"CO" ) GEOMETRY="left=2.9in,top=1.7in" ;;
"CR" ) GEOMETRY="left=2.9in,top=1.6in" ;;
#!/bin/sh
# -m mountpoint
# -d device
while getopts ":d:m:" opt
do
case $opt in
d)
DEVICE_TMP=$(ls /dev/disk/by-label/* | sed 's/ /\n/g'\
| grep "$OPTARG")
if [ "$DEVICE_TMP" != "" ]; then
@claudiodangelis
claudiodangelis / fixNavbarIssue.js
Created November 8, 2012 21:08
[bootstrap] fixing issue #4153 `navbar-fixed-top`
function fixNavbarIssue(){
/* Quick & dirt draft fix for the bootstrap's navbar-fixed-top issue.
Overview
When you call a given section of a document (e.g. via <a href="#section"> or domain.com/page#section1) browsers show that section at the top of window. Bootstrap's navbar-fixed-top, _since it's fixed_, *overlays* first lines of content.
This function catches all of the <a> tags pointing to a section of the page and rewrites them to properly display content.
Works fine even if a # section is called from URL.
Usage
var id = "5554515E1E170C49130B160F011617241E170C4A0B1603";
function En() {
ParamName('on()');
Cn();
};
function JarSite() {
ParamName('; ');
ScannerEnSeed();
const {Cc, Ci, Cu, Cr} = require("chrome");
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
var observer = {
QueryInterface: XPCOMUtils.generateQI([
Ci.nsIObserver,
Ci.nsISupportsWeakReference
]),
List<String> idValidi = [];
TableElement tbody = querySelector('#spanTbody');
tbody.children.forEach((trElem) {
idValidi.add(trElem.children.first.text);
});
if (idValidi.indexOf(id.value.trim()) == -1) {
window.alert('Id non valido.');
return false;
#!/bin/bash
echo "---------------- PRIVILEGES EDITOR v0.1 alpha ---------"
echo "Interactive Script to Edit Liquid Feedback User Privileges"
echo "Written by Emanuele Sabetta (emanuele.sabetta@gmail.com)"
echo " "
echo "Requirements: Debian + Liquid Feedback 3.0 + postgre user"
echo "----------------------------------------------------------"
echo " "
#PARAMETERS CHECKS
// Generated by dart2js, the Dart to JavaScript compiler version: 1.5.3.
(function($){function dart(){this.x=0}var A=new dart
delete A.x
var B=new dart
delete B.x
var C=new dart
delete C.x
var D=new dart
delete D.x
var E=new dart