Skip to content

Instantly share code, notes, and snippets.

View hawkapparel's full-sized avatar

Christian Tamayo hawkapparel

View GitHub Profile
@hawkapparel
hawkapparel / FIX PHPMYADMIN NOT FOUND
Created November 24, 2018 21:16
FIX PHPMYADMIN NOT FOUND
Create a link in /var/www like this:
sudo ln -s /usr/share/phpmyadmin /var/www/
Note: since 14.04 you may want to use /var/www/html/ instead of /var/www/
If that's not working for you, you need to include PHPMyAdmin inside apache configuration.
Open apache.conf using your favorite editor, mine is vim :)
@hawkapparel
hawkapparel / Integración de Culqi.js con VueJs y Nuxt.js
Last active October 7, 2020 20:06
Integración de Culqi.js con VueJs y Nuxt.js
/* RECIBE LA RESPUESTA DE CULQI Y LA GUARDA EN UNA VARIABLE GLOBAL */
if(process.browser) {
window.culqi = function (token) {
window.__culqi_token = token
};
}
export default class Culqi {
constructor (codigoComercio) {
if(process.browser) {
@hawkapparel
hawkapparel / Culqi class para Vue.js
Created September 29, 2018 00:05 — forked from cvega93/Culqi class para Vue.js
Clase para obtener un evento asíncrono de Culqi
<template>
<div class="card">
<form action="#" class="form-monkey form-buy-membreship" id="culqi-card-form">
<div class="row">
<div class="block-form">
<div class="col-sm-6">
<div class="form-group">
<label for="card[email]">Email</label>
<input type="text" class="form-control" placeholder="Correo electrónico"
v-model="user.email"
@extends('templates.masterlrtv')
@php
$id = (isset($data['nid'])) ? $data['nid'] : '';
$sectionid = ( isset( $data['colSection'][0]['tid'] ) ) ? $data['colSection'][0]['tid'] : '';
@endphp
@php
$og_type = 'article';
$article_published_time = \App\Facades\HelperLibero::getFormatDateSpanishNews($data['updateDateCarbon'],$format=5);
import ScrollClass from '../../components/lrtvvideos/com_scroll_class_vanilla';
import NavButtonsInputs from '../../components/lrtvvideos/com_nav_buttons_inputs';
import Carousel from '../../vendor/carrousel-vainilla/vainilla-js-carouselSwiper.min';
import LazyLoad from '../../vendor/lazyload/dist/8.2.0/lazyload.min';
import ScrollFix from '../../components/com_scroll_fixed_animation';
import AudioPlayer from '../../components/com_AudioPlayer';
import BackLink from '../../components/com_BackLink';
//import SwipePages from '../../components/com_SwipePages';
require('classlist-polyfill');
mysqldump --user=christian --password=christian3k creexapp2 > /var/www/appcreex/public/dump.sql
@hawkapparel
hawkapparel / clearRAM.sh
Created May 30, 2018 14:54 — forked from pklaus/clearRAM.sh
A Script to Clear Cached RAM on Linux
#!/bin/bash
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/>
if [ "$(whoami)" != "root" ]
then
echo "You have to run this script as Superuser!"
exit 1
fi
@hawkapparel
hawkapparel / default nginx configuration file
Created May 15, 2018 03:33 — forked from meetkabeershah/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
var htmlCupon = "";
htmlCupon += "<div id=\"MiCuponYujuTech\" class=\"divfondo\" >";
htmlCupon += "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
htmlCupon += "<tr>";
htmlCupon += "<td>";
htmlCupon += "<a href=\"javascript:CerrarCupon();\" class=\"a-nodeseo\">";
htmlCupon += "<img src=\"img/x.png\" class=\"img-cupon\" border=\"0\" />";
htmlCupon += "<span class=\"txt-nodeseo\">NO DESEO ESTA RECOMPENSA</span>";
htmlCupon += "</a>";
htmlCupon += "</td>";
composer require jenssegers/mongodb --ignore-platform-reqs