Skip to content

Instantly share code, notes, and snippets.

@Tynael
Tynael / README.md
Last active June 4, 2024 18:08
How to Set up an SSL Certificate in Localhost for XAMPP

How to Set up an SSL Certificate in Localhost for XAMPP

These files represent the content that has been modified during the tutorial.

To better understand the context, go through the video and/or written tutorial.

@ronsen
ronsen / wp-login.php
Last active June 25, 2024 18:33
Fake wordpress login page
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Log In</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
</head>
@dragonfire1119
dragonfire1119 / uptime-kuma-docker-compose.yml
Created August 10, 2023 12:48
Docker Compose Uptime Kuma
version: '3'
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: always
ports:
- "7200:3001"
volumes:
- /data/uptime-kuma/data:/app/data
@MRobertEvers
MRobertEvers / Python_Import_Other_Directories.md
Created May 6, 2018 19:41
Import Python Files From Another Directory Python 3

Import Python Files From Another Directory

I've come across various ways to include files from other directories in python. At this time, none of my python projects have ever scaled enough to warrant a nice directory structure but I find this information useful to know.

Module Search

The Python Docs 6.1.4 explain nicely what happens when you try to import a module.

When a module named spam is imported, the interpreter first searches for a built-in module with that name. If not found, it then searches for a file named spam.py in a list of directories given by the variable sys.path. sys.path is initialized from these locations:
- The directory containing the input script (or the current directory when no file is specified).
- PYTHONPATH (a list of directory names, with the same syntax as the shell variable PATH).
  • The installation-dependent default.
@nguyenanhtu
nguyenanhtu / SSLXampp.md
Last active July 12, 2024 19:06
Guide to configure SSL in XAMPP for Windows

How to test 'https' in XAMPP for localhost ? I will guide you

Menu

  • Create certificate
  • Config Apache to access https instead of http
  • Config mod rewrite to generate SSL url
  • Config Virtual host to test site

Step 1 : Create certificate

  • Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch file
@merolhack
merolhack / backup-mysql.bat
Created April 14, 2016 15:56
Windows: Backup all databases in a MySQL server.
@ECHO off
SETLOCAL ENABLEDELAYEDEXPANSION
REM Windows Batch script to backup all mysql databases in a server
REM @author: Lenin Meza <lenin.meza.externo@prodecon.gob.mx>
REM Database information
SET dbhost="127.0.0.1"
SET dbuser="root"