This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* UUID class | |
* | |
* The following class generates VALID RFC 4122 COMPLIANT | |
* Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
* | |
* UUIDs generated validates using OSSP UUID Tool, and output | |
* for named-based UUIDs are exactly the same. This is a pure | |
* PHP implementation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Joomla! External authentication script | |
* @author usantisteban <usantisteban@othercode.es> | |
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
if (version_compare(PHP_VERSION, '5.3.1', '<')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Joomla! External cat dispatcher | |
* @author usantisteban <usantisteban@othercode.es> | |
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
if (version_compare(PHP_VERSION, '5.3.1', '<')) { | |
die('Your host needs to use PHP 5.3.1 or higher to run this version of Joomla!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.skewangled { | |
background: #000; | |
color: #fff; | |
padding: 2em; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
position: relative; | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Downloading lastest Postman version..." | |
wget https://dl.pstmn.io/download/latest/linux64 -O /tmp/postman.tar.gz | |
echo "Installing..." | |
sudo tar -xzf /tmp/postman.tar.gz -C /opt | |
rm /tmp/postman.tar.gz | |
echo "done!" | |
if [ ! -f /usr/bin/postman ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Small script to display dialog to switch between PHP verion. | |
# Tested on Ubuntu 16.04 LTS | |
# | |
# Execution: | |
# $ sudo ./phpswitch.sh | |
# | |
# You can also create a softlink to the /usr/bin directory | |
# $ sudo ln -s ~/phpswitcher.sh /usr/bin/phpswitch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# PHP Installer (REMI) | |
# | |
# Install all PHP versions and some extensions, it also install | |
# the IonCube Loaders for each version of PHP. | |
# | |
# Tested on CentOS Linux release 7.5.1804 (Core) | |
# | |
# Execution: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# PHP Installer (RH) | |
# | |
# Install all PHP versions and some extensions. | |
# | |
# Tested on CentOS Linux release 7.5.1804 (Core) | |
# | |
# Execution: | |
# $ sudo ./phprhinstaller.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { | |
jQuery(window).enllax(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const assert = require('assert') | |
const id = x => x | |
const compose = (...fns) => fns.reduce((acc, f) => x => acc(f(x)), id) | |
const add = x => y => x + y | |
const times = x => y => x * y | |
const validSubs = x => x > 3 | |
const skus = [1, 2, 3, 4, 5] |
OlderNewer