Skip to content

Instantly share code, notes, and snippets.

View msuryaprakash's full-sized avatar

Murapaka SuryaPrakash msuryaprakash

View GitHub Profile
@msuryaprakash
msuryaprakash / Dockerfile
Created December 4, 2020 21:39 — forked from michaelneu/Dockerfile
docker-compose configuration for PHP with NGINX and MySQL, including sendmail, MailDev and phpmyadmin
# see https://github.com/cmaessen/docker-php-sendmail for more information
FROM php:5-fpm
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mysql mysqli sysvsem
RUN pecl install xdebug-2.5.5 \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@msuryaprakash
msuryaprakash / Dockerfile
Created September 2, 2020 14:33 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@msuryaprakash
msuryaprakash / docker_wordpress.md
Created July 7, 2020 07:27 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
# -----------------------------------------------------------------------------------
# Course: COSC-1436 - Python
# Student: physicsCat1983
# Assignment: Project - Restaurant Menu
# -----------------------------------------------------------------------------------
import tkinter # Need to import tkinter for making a GUI
import tkinter.messagebox # Needed for the tkinter messagebox
import time # Needed to display current time and date
@msuryaprakash
msuryaprakash / pyConversor.py
Created October 18, 2019 17:46 — forked from gustavorv86/number-conversion.py
Graphical user interface (aka GUI) to convert from/to binary, decimal, hexadecimal and IP address using Tkinter python modules.
#!/usr/bin/env python3
import ipaddress
import tkinter
import tkinter.ttk
import tkinter.messagebox
import sys
def bin2dec(value):
@msuryaprakash
msuryaprakash / passwordgen.py
Created October 18, 2019 17:39 — forked from Der-Eddy/passwordgen.py
Password Generator tkinter
import tkinter
import random
class PWGenGui(tkinter.Frame):
def __init__(self, master=None):
self.consonants = "bcdfghjklmnpqrstvwxz"
self.vowels = "aeuoiy"
self.numbers = "0123456789"
self.symbols = "§$%&?#+"
from multiprocessing import Process, Queue
import uavcan
from contextlib import closing
import tkinter
def node_status_callback(event):
print('#',event.transfer.source_node_id,': ', event.message.uptime_sec)
# Messages, service requests, service responses, and entire events
from PyQt5 import QtWidgets, QtGui, QtCore
font_but = QtGui.QFont()
font_but.setFamily("Segoe UI Symbol")
font_but.setPointSize(10)
font_but.setWeight(95)
class PushBut1(QtWidgets.QPushButton):
def __init__(self, parent=None):
@msuryaprakash
msuryaprakash / excel_to_json.py
Created September 13, 2019 11:42 — forked from dmahugh/excel_to_json.py
convert XLSX file to JSON
"""Example of how to convert an xlsx file to JSON.
Requirements:
- Python 3.7 or higher
- openpyxl (pip install openpyxl)
Assumptions:
- the active worksheet contains a rectangular array of data,
with column names in the first row
- the data fits in memory (makes the code below a bit simpler)
@msuryaprakash
msuryaprakash / randomcircles.py
Created September 13, 2019 11:42 — forked from dmahugh/randomcircles.py
WIN32 automation of PowerPoint
"""Requires pypiwin32 - see installation instructions at https://github.com/mhammond/pywin32
"""
import random
import win32com.client
# for other shape types, see MsoAutoShapeTypeEnumeration:
# https://msdn.microsoft.com/en-us/vba/office-shared-vba/articles/msoautoshapetype-enumeration-office
SHAPE_OVAL = 9
# for other layout options, see PpSlideLayout Enumeration: