Skip to content

Instantly share code, notes, and snippets.

View efturtle's full-sized avatar

Alberto Cuevas efturtle

  • GlobalLogic
  • GDL, Jalisco
View GitHub Profile
@efturtle
efturtle / gist:5ea7919bb56e65a4bdf7c7e8169c8dc1
Created June 7, 2025 21:02
install phpmyadmin via release archive and apache
# steps for installation of the phpmyadmin software in server
# install php mysql package
sudo apt install php7.4-mysql
# navigate to
cd /var/www/html
# retrive the package
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.2.2/phpMyAdmin-5.2.2-all-languages.tar.gz
@efturtle
efturtle / settings.json
Last active April 14, 2023 03:09
PowerShell color scheme ComoVerLucesitas
{
"background": "#D4D4D8",
"black": "#9ca3af",
"blue": "#CA8A04",
"brightBlack": "#0F766E",
"brightBlue": "#308CBA",
"brightCyan": "#B91C1C",
"brightGreen": "#9A3412",
"brightPurple": "#AE636B",
"brightRed": "#BE185D",
@efturtle
efturtle / main.c
Last active June 25, 2021 02:09
crud with struct in C language
#include <stdio.h>
#include <string.h>
//definir variable global, aqui puedes incrementar o disminuir
#define USUARIOS 20
#define LIMITECHAR 20
/* */
struct Usuario {
int folio;
header('Content-Type: text/html; charset=UTF-8');
//variables
$nombre = $_POST['nombre'];
$file_name = $_FILES['fichero']['name'];
$file_tmp = $_FILES['fichero']['tmp_name'];
//convertir a minusculas
$nombre = strtolower($nombre);
$destinoBD = "$nombre.pdf";
$acceptedarr = array("pdf");
codigo para router 1
Copyright (c) 2010 by cisco Systems, Inc.
Total memory size = 512 MB - On-board = 512 MB, DIMM0 = 0 MB
CISCO2911/K9 platform with 524288 Kbytes of main memory
Main memory is configured to 72/-1(On-board/DIMM0) bit mode with ECC disabled
Readonly ROMMON initialized
@efturtle
efturtle / MainActivity.java
Created March 18, 2020 20:23
Aplicacion 1 del segundo parcial, Listado de sensores en un ListView
package com.example.listadesensores;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
@efturtle
efturtle / LetterFlipGame.xml
Created March 6, 2020 04:45
Memory Letter Game
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
@efturtle
efturtle / gameCode.java
Created February 26, 2020 06:39
codigo del Juego de Adivinanza
package com.example.juegoadivinanza;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AlertDialog;
import android.content.Intent;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
@efturtle
efturtle / layoutOfGame.xml
Created February 26, 2020 06:39
layout para juego de adivinanza
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:id="@+id/imageView"
@efturtle
efturtle / MainActivity.java
Last active February 24, 2020 04:05
Cientific Calculator mode 1
package com.example.calculadoramodo1;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import org.w3c.dom.Text;