Skip to content

Instantly share code, notes, and snippets.

View Tydewest's full-sized avatar
👨‍💻
Building The Future

Lachy Schuamcher Tydewest

👨‍💻
Building The Future
View GitHub Profile
@Tydewest
Tydewest / strappy.css
Last active September 18, 2022 13:46
Strappy CSS is based on Bootstrap
/*! * Bootstrap v4.3.1 (https://getbootstrap.com/) * Copyright 2011-2019 The Bootstrap Authors * Copyright 2011-2019 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */
:root{
--blue:#007bff;
--indigo:#6610f2;
--purple:#6f42c1;
--pink:#e83e8c;
--red:#dc3545;
--orange:#fd7e14;
--yellow:#ffc107;
--green:#28a745;
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
@Tydewest
Tydewest / base64topdf-working.php
Created November 23, 2021 04:18 — forked from rogeriotaques/base64topdf-working.php
Converts base64 string back to a pdf file
<?php
public function uploadFileFromBlobString($base64string = '', $file_name = '', $folder = '')
{
$file_path = "";
$result = 0;
// Convert blob (base64 string) back to PDF
if (!empty($base64string)) {
@Tydewest
Tydewest / USBReset.sh
Last active February 21, 2021 11:59
Resets MacOS USB Controller, rectifying USB power issues for connected external devices such as Phones & Drives
#!/bin/bash
sudo killall -STOP -c usbd
echo "USB Reset Complete\n"
mysql -u USERNAME -p;
UPDATE mysql.user SET Host='%' WHERE Host='localhost' AND User='root';
UPDATE mysql.db SET Host='%' WHERE Host='localhost' AND User='root';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'HeatWaves2020';
FLUSH PRIVILEGES;
@Tydewest
Tydewest / ProductKey.vbs
Created June 16, 2020 02:09
ProductKey.vbs returns current Windows product key in a message box. Save code with the file extension .vbs the save to desktop & open the file.
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
curl -s 'https://api.tskfce.com/bugsmash.sql' | mysql -u root -p