Skip to content

Instantly share code, notes, and snippets.

Avatar

Yoander Valdés Rodríguez yoander

View GitHub Profile
View xmlpp.php
#!/usr/bin/env php
<?php
// Check the scripts is called with arguments
if (empty($argv[1])) {
die('You must specify a file!');
}
// Set the file name
$file = $argv[1];
@yoander
yoander / phpMyAdminConfig.php
Last active May 30, 2016
phpMyAdmin Configuration file
View phpMyAdminConfig.php
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.phpmyadmin.net>.
*
* @package phpMyAdmin
@yoander
yoander / file1.json
Last active Aug 4, 2016
For testing GithubGet wordpress plugin
View file1.json
{
"firstName": "John",
"lastName": "Smith",
"isAlive": true,
"age": 25,
"job": "Software Developer"
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
View gnu-manifesto.html
<strong>GNU Manifesto</strong><br/>
GNU, which stands for Gnu's Not Unix, is the name for the complete Unix-compatible software system which I am writing so that I can give it away free to everyone who can use it.<br/> Richard Stallman.
@yoander
yoander / anonymous-class.php
Last active Aug 7, 2016
New features of PHP 7
View anonymous-class.php
<?php
define('PLAYERS', [
'1' => ['Garry Kasparov', 2851],
'2' => ['Anatoly Karpov', 2780],
'3' => ['Magnus Carlsen', 2882],
'4' => ['Bobby Fischer', 2785]
]);
interface PlayerDetailsInterface
View en.gitconfig
[http]
proxy = http://user:pwd@proxy-url:proxy-port
# Useful if your proxy only allows known user agent
useragent = Mozilla/4.0
# Uncomment bellow line if your Repo provider provides
# a non root certificate for example a self generated
# certificate but be cautios your source must be a
# trusted source
# sslVerify = false
# This save your Repo credentials on ~/.git-credentials
View du-exclude.sh
awk '$1 !~ /(^#)|^$/ && $3 !~ /(none|swap)/ && $2 != "/" {print $2} END {print "/proc\n/run\n/var/run\n/dev"}' /etc/fstab > /tmp/du-exclude.txt && sudo du -sh -X /tmp/du-exclude.txt /*
View emails.txt
imperdiet.nec.leo@etmalesuadafames.net
molestie.in.tempus@nuncQuisque.edu
a.sollicitudin.orci@ut.edu
lorem.Donec.elementum@arcuNunc.ca
et.rutrum.eu@nisidictumaugue.ca
augue@Cumsociis.co.uk
adipiscing@convallisestvitae.com
Nunc.sed.orci@rhoncusDonecest.org
pede@tempuslorem.net
imperdiet@InloremDonec.ca
View dirs.txt
gnu linux/debian
gnu linux/ubuntu
cms
commands
editors/vim
editors/geany
games
nosql
unix
View fastcgi.conf
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;