Skip to content

Instantly share code, notes, and snippets.

View hawkapparel's full-sized avatar

Christian Tamayo hawkapparel

View GitHub Profile
@hawkapparel
hawkapparel / Install Play on Linux and Wine HQ
Created January 9, 2018 17:14
Install Play on Linux and Wine HQ
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
wine
wine --version
sudo apt-get install playonlinux
sudo apt-get install -y build-essential
@hawkapparel
hawkapparel / gist:7af6df9d1fe692e5812dfa40bbedf5e8
Created January 3, 2018 22:19
Error ENOSPC npm + laravel MIX + WEBPACK
ERROR MESSAGE
events.js:160
throw er; // Unhandled 'error' event
^
Error: watch /var/www/Libero/app ENOSPC
at exports._errnoException (util.js:1020:11)
at FSWatcher.start (fs.js:1451:19)
at Object.fs.watch (fs.js:1478:11)
Copiar los certificados en: (.crt)
/usr/local/share/ca-certificates
Install PHP 5.6 On linux (Debian, Ubuntu, Mint ...)
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php5.6
heck Installed PHP Version
php -v
@hawkapparel
hawkapparel / .js
Created April 8, 2017 02:41
Calculadora de cuadrados
function checkLong(n, m, a, b, l){
console.log("entro a la function");
if( l*n < a){
console.log("entro a l*n es menor a A");
n++;
console.log(n);
checkLong(n, m, a, b, l);
}else{
console.log("entro a l*n es mayor a A");
//It's not available, but if you really would like to have this property,
//then you could extend the native prototype of the Event object like so:
if (!("path" in Event.prototype))
Object.defineProperty(Event.prototype, "path", {
get: function() {
var path = [];
var currentElem = this.target;
while (currentElem) {
path.push(currentElem);
function transliterateString($txt) {
$transliterationTable = array('á' => 'a', 'Á' => 'A', 'à' => 'a', 'À' => 'A', 'ă' => 'a', 'Ă' => 'A', 'â' => 'a', 'Â' => 'A', 'å' => 'a', 'Å' => 'A', 'ã' => 'a', 'Ã' => 'A', 'ą' => 'a', 'Ą' => 'A', 'ā' => 'a', 'Ā' => 'A', 'ä' => 'ae', 'Ä' => 'AE', 'æ' => 'ae', 'Æ' => 'AE', 'ḃ' => 'b', 'Ḃ' => 'B', 'ć' => 'c', 'Ć' => 'C', 'ĉ' => 'c', 'Ĉ' => 'C', 'č' => 'c', 'Č' => 'C', 'ċ' => 'c', 'Ċ' => 'C', 'ç' => 'c', 'Ç' => 'C', 'ď' => 'd', 'Ď' => 'D', 'ḋ' => 'd', 'Ḋ' => 'D', 'đ' => 'd', 'Đ' => 'D', 'ð' => 'dh', 'Ð' => 'Dh', 'é' => 'e', 'É' => 'E', 'è' => 'e', 'È' => 'E', 'ĕ' => 'e', 'Ĕ' => 'E', 'ê' => 'e', 'Ê' => 'E', 'ě' => 'e', 'Ě' => 'E', 'ë' => 'e', 'Ë' => 'E', 'ė' => 'e', 'Ė' => 'E', 'ę' => 'e', 'Ę' => 'E', 'ē' => 'e', 'Ē' => 'E', 'ḟ' => 'f', 'Ḟ' => 'F', 'ƒ' => 'f', 'Ƒ' => 'F', 'ğ' => 'g', 'Ğ' => 'G', 'ĝ' => 'g', 'Ĝ' => 'G', 'ġ' => 'g', 'Ġ' => 'G', 'ģ' => 'g', 'Ģ' => 'G', 'ĥ' => 'h', 'Ĥ' => 'H', 'ħ' => 'h', 'Ħ' => 'H', 'í' => 'i', 'Í' => 'I', 'ì' => 'i', 'Ì' => 'I', 'î' => 'i',
Legal, mas esteja atento para a necessidade de refazer o processo ao atualizar/utilizar outro kernel.
Se quiser fazer via repositório, para não ter retrabalho, siga:
https://wiki.debian.org/rtl819x?action=fullsearch&context=180&value=RTL8723&titlesearch=...
------------------------------------------------------
¿? -> keyboard Error: No Keyboard Present, PRESS F1 to continue.
$external_link = 'http://www.example.com/example.jpg';
if (@GetImageSize($external_link)) {
echo "image exists ";
} else {
echo "image does not exist ";
}