Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
#!/boot/bzImage | |
# Linux kernel userspace initialization code, translated to bash | |
# (Minus floppy disk handling, because seriously, it's 2017.) | |
# Not 100% accurate, but gives you a good idea of how kernel init works | |
# GPLv2, Copyright 2017 Hector Martin <[email protected]> | |
# Based on Linux 4.10-rc2. | |
# Note: pretend chroot is a builtin and affects the current process | |
# Note: kernel actually uses major/minor device numbers instead of device name |
# Python3 compatible | |
import http.server | |
from http.server import SimpleHTTPRequestHandler | |
import sys | |
import base64 | |
key = "" | |
class AuthHandler(SimpleHTTPRequestHandler): | |
''' Main class to present webpages and authentication. ''' |
Note: This just aligns the position of the textblock, not the text itself. |
########################################################################## | |
# THE MICRO MONGODB+PYTHON BOOK | |
# | |
# A simple adaptation to Python + summary of | |
# The Little MongoDB Book: https://github.com/karlseguin/the-little-mongodb-book | |
# | |
# javier arias losada | |
# twitter: @javier_arilos | |
# Usage suggestion: run line by line bu using pydemo project (https://github.com/pablito56/pydemo) |
#!/usr/bin/python3 | |
# Logout indicator for ubuntu Unity | |
# module of python3-gi (PyGI) | |
from gi.repository import GLib | |
from gi.repository import Gio | |
from gi.repository import Gtk | |
from gi.repository import AppIndicator3 | |
def dbus_logout(w, arg): |
A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
This Gist has been moved to https://github.com/lbgists/ttk-progressbar-example.py.
_CONTENT_TYPES = { '.png': 'image/png', '.gif': 'image/gif', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', '.jpe': 'image/jpeg' } | |
def _encode_multipart(**kw): | |
''' | |
Build a multipart/form-data body with generated random boundary. | |
''' | |
boundary = '----------%s' % hex(int(time.time() * 1000)) | |
data = [] | |
for k, v in kw.iteritems(): | |
data.append('--%s' % boundary) |
# -- coding: utf-8 -- | |
from win32api import * | |
from win32gui import * | |
import win32con | |
import sys, os | |
import struct | |
import time | |
class WindowsBalloonTip: |