Skip to content

Instantly share code, notes, and snippets.

View syntaxerrormmm's full-sized avatar

Emiliano Vavassori syntaxerrormmm

View GitHub Profile
@syntaxerrormmm
syntaxerrormmm / make.log
Created April 22, 2011 23:24
'make' log for 'rvm package install ncurses'
[2011-04-23 00:06:49] /usr/bin/make
make: *** No targets specified and no makefile found. Stop.
[2011-04-23 00:15:30] /usr/bin/make
cd man && /usr/bin/make DESTDIR="" all
sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail >terminfo.5
cd include && /usr/bin/make DESTDIR="" all
cat curses.head >curses.h
AWK=awk sh ./MKkey_defs.sh ./Caps >>curses.h
sh -c 'if test "chtype" = "cchar_t" ; then cat ./curses.wide >>curses.h ; fi'
cat ./curses.tail >>curses.h
[2011-04-23 01:55:56] /usr/bin/make install
cp libz.a /Users/syntaxerrormmm/.rvm/usr/lib
cp /Users/syntaxerrormmm/.rvm/usr/lib
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
make: *** [install-libs] Error 64
#include <stdio.h>
#define DIVISORE 10
int main(int argc, char *argv[]) {
int numero, contatore, operando, totcifre, zeri;
do scanf("%d %d", &numero, &totcifre);
while (numero <= 0 || totcifre <= 0);
contatore = 1;
#include <stdio.h>
int main(int argc, char *argv[]) {
int numeri[100];
int i = 0;
int n = 0;
int contatore = 0;
int prec, succ;
#!/bin/bash
name=doraemon
version=1.0.0
tmpdir=/tmp/src_build/${name}-${version}
function srcbuild() {
cwd=$(pwd)
mkdir -p ${tmpdir}
cp -r initrd doraemon.py doraemon.ini doraemon.logrotate README.md LICENSE defaults/ ${tmpdir}
<?php
namespace NethServer\Module\Dashboard\Applications;
/*
* Copyright (C) 2013 Nethesis S.r.l.
*
* This script is part of NethServer.
*
* NethServer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
<?php
namespace NethServer\Module\Dashboard\Applications;
/*
* Copyright (C) 2013 Nethesis S.r.l.
*
* This script is part of NethServer.
*
* NethServer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
#!/bin/bash
generate_random() {
RANDOM_NUMBER=`/usr/bin/perl -e 'print int(rand(60453));'`
}
gen_password() {
generate_random
randomWord1=`head -$RANDOM_NUMBER ./dizionario.txt | tail -1`
@syntaxerrormmm
syntaxerrormmm / exportMySQLUsersPDO.php
Created May 7, 2018 15:37 — forked from zaiddabaeen/exportMySQLUsersPDO.php
Exports MySQL Users and Privileges using PDO
<?php
# vim:sts=4:sw=4
/*
* Feel free to improve it.
* Original by Janich: https://gist.github.com/janich/6121771
*
* @requires PHP 5.3+
* @package ExportMySQLUsers
* @author Zaid Daba'een
* @license http://www.dbad-license.org/ DBAD license
#!/bin/bash
clientname=$1; shift
# Generate certificates
./easyrsa build-client-full ${clientname} nopass
# Generating all-in-one configuration
cat > configs/${clientname}.ovpn<<EOC
client