Skip to content

Instantly share code, notes, and snippets.

View arcanisgk's full-sized avatar
🏦
looking for a job

Walter Nuñez arcanisgk

🏦
looking for a job
  • Icaros Net S.A
  • Panamá
View GitHub Profile
@arcanisgk
arcanisgk / apache-php
Created April 3, 2022 20:18
Learning to setup multiple apache-php project with mysql and phpmyadmin implemente nginx proxy reverse for multiple local domain.
FROM php:7.4-apache
# RUN docker-php-ext-install opcache && docker-php-ext-enable opcache
RUN a2enmod rewrite
RUN apt-get update && apt-get upgrade -y
# install dependencies
RUN apt-get install -y --no-install-recommends \
build-essential \
```C#
namespace CreateImageClass
{
public sealed class ImageControlOnFly
{
public Main MainForm;
public Bitmap Bmp = new Bitmap(1, 1);
@arcanisgk
arcanisgk / project.txt
Last active September 24, 2022 02:47
What to know and do, before and during the development of a php framework?
Hello friends; if you got here you already know a little about what this is about, I am trying to create a roadmap to develop my own framework with your ideas and opinions, since I believe that there is no absolute truth.
Objective: create a framework from scratch; with a graphical environment for its setup/configuration; with CMS capabilities to establish the different areas of development: Maintenance, Processes, Reports.
What I want to avoid: dependencies on external libraries.
What I need from you: your opinions, to know what you consider to be good and bad in the other frameworks, what things would change, but first I need to know in what order it should be developed.
What to know and do, before and during the development of a php framework (The Roadmap)?
<?php
class DataBaseManager
{
public function GetData($query, $user, $pass)
{
try {
$db_result = [];
$conn = new PDO("mysql:host=localhost;dbname=test", $user, $pass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
@arcanisgk
arcanisgk / new method
Created December 2, 2022 21:29
new method
new method
@arcanisgk
arcanisgk / array.php
Created December 14, 2022 21:27
result of json
<?php
$array = [
'card_list' => [
0 => [
'name' => 'Effect Veiler',
'details' => ['some text', 'some text'],
'set' => [
'ETCO-EN100' => [
'release' => '2020-01-19',
@arcanisgk
arcanisgk / structure.sql
Created December 22, 2022 16:44
structure.sql
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost
-- Tiempo de generación: 22-12-2022 a las 16:43:21
-- Versión del servidor: 8.0.30
-- Versión de PHP: 8.1.10
SET FOREIGN_KEY_CHECKS=0;
@arcanisgk
arcanisgk / list.txt
Created December 24, 2022 04:35
list card image yu-gi-oh database
https://images.ygoprodeck.com/images/cards/34541863.jpg
https://images.ygoprodeck.com/images/cards/64163367.jpg
https://images.ygoprodeck.com/images/cards/91231901.jpg
https://images.ygoprodeck.com/images/cards/73262676.jpg
https://images.ygoprodeck.com/images/cards/37478723.jpg
https://images.ygoprodeck.com/images/cards/64867422.jpg
https://images.ygoprodeck.com/images/cards/90861137.jpg
https://images.ygoprodeck.com/images/cards/44256816.jpg
https://images.ygoprodeck.com/images/cards/86988864.jpg
https://images.ygoprodeck.com/images/cards/11714098.jpg
$srcfile = "C:\Users\wnune\OneDrive\Escritorio\imagenes\cardlist.txt"
$urls = Get-Content $srcfile
$lines = 0
switch -File $srcfile { default { ++$lines } }
$i = 0
$urls |
ForEach-Object -Parallel {
try {
$url = $_
$filename = Split-Path $url -Leaf
@arcanisgk
arcanisgk / quick_search.json
Created December 29, 2022 14:46
quick_search
This file has been truncated, but you can view the full file.
[["2511","Labrynth Cooclock","TAMA-EN020"],["10000","Ten Thousand Dragon","BLAR-EN10K"],["27551","Limit Reverse","LODT-EN063"],["27551","Limit Reverse","YS11-EN039"],["27551","Limit Reverse","YS12-EN037"],["27551","Limit Reverse","5DS2-EN037"],["32864","The 13th Grave","LOB-014"],["32864","The 13th Grave","LOB-E010"],["32864","The 13th Grave","LOB-EN014"],["35699","SPYRAL Sleeper","MACR-EN086"],["39015","Assault Sentinel","DANE-EN011"],["41546","D\/D Savant Thomas","MP17-EN065"],["41546","D\/D Savant Thomas","GFP2-EN078"],["41546","D\/D Savant Thomas","TDIL-EN010"],["41777","Gem-Enhancement","DT05-EN049"],["41777","Gem-Enhancement","HA05-EN029"],["44818","Starry Knight Orbitael","BODE-EN027"],["50755","Magician's Circle","CP04-EN011"],["50755","Magician's Circle","LCYW-EN100"],["50755","Magician's Circle","LDK2-ENY38"],["50755","Magician's Circle","LDS3-EN097"],["50755","Magician's Circle","SS01-ENA16"],["50755","Magician's Circle","SDSC-EN035"],["50755","Magician's Circle","SR08-EN039"],["50755","Magician's