Skip to content

Instantly share code, notes, and snippets.

View shadda's full-sized avatar
💭
Freaking out in a moon-age daydream, oh yeah.

Matt Wilson shadda

💭
Freaking out in a moon-age daydream, oh yeah.
View GitHub Profile
<?php
#########################
#TEN SECOND PDO TUTORIAL#
#########################
//Connect, providing any parameters your connection requires, along with username and password
$db = new PDO('mysql:host=localhost;db=ashleymadison.com;charset=uft8', 'user', 'pass');
//Set the error mode so that it throws exceptions rather outputting an error
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
@shadda
shadda / ccdl.command
Created November 17, 2021 03:30 — forked from ayyybe/ccdl.command
Adobe Offline Package Generator v0.1.2 (macOS only) --- No longer being updated.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear