Skip to content

Instantly share code, notes, and snippets.

View lukeawyatt's full-sized avatar
👁️‍🗨️
Pridubante ĉion

Luke Wyatt lukeawyatt

👁️‍🗨️
Pridubante ĉion
View GitHub Profile
@lukeawyatt
lukeawyatt / ASCII.Skull.motd
Last active February 22, 2021 17:56
Shell: ASCII
.ed"""" """$$$$be.
-" ^""**$$$e.
." '$$$c
/ "4$$b
d 3 $$$$
$ * .$$$$$$
.$ ^c $$$$$e$$$$$$$$.
d$L 4. 4$$$$$$$$$$$$$$b
@lukeawyatt
lukeawyatt / Ubuntu.Provisioning.sh
Last active October 22, 2023 11:50
System: Ubuntu
#!/bin/bash
# ENVIRONMENT SETUP, CURRENT UBUNTU 20.04
cd ~
mkdir Packages
cd Packages
# GNOME STYLING
wget -L -O gtk.css https://gist.githubusercontent.com/lukeawyatt/870c6af8e2f546164cdb1b1b4804fad1/raw/gtk.css
cp ./gtk.css ~/.config/gtk-3.0/gtk.css
@lukeawyatt
lukeawyatt / Docker.BashOnUbuntu.sh
Last active January 8, 2021 21:20
Shell: Docker
docker run –i –t --rm ubuntu sh –c /bin/bash
@lukeawyatt
lukeawyatt / Fork.RegisterContextMenu.reg
Last active January 8, 2021 20:50
Shell: Windows Registry
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Fork]
@="Open with Fork"
"Icon"="C:\\Users\\<username>\\AppData\\Local\\Fork\\Fork.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Fork\command]
@="\"C:\\Users\\<username>\\AppData\\Local\\Fork\\Fork.exe\" \"%V\""
@lukeawyatt
lukeawyatt / Windows.ServiceInstaller.vbs
Last active June 30, 2022 06:44
System: Windows Service Installer
Option Explicit
Dim oShell, WshShell, Title, strInputIU, strInputPATH, executeString, objShell, strCurrentDir, result, filesys
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objShell = CreateObject("WScript.shell")
Set filesys = CreateObject("Scripting.FileSystemObject")
strCurrentDir = objShell.CurrentDirectory
If WScript.Arguments.Named.Exists("elevated") = False Then
CreateObject("Shell.Application").ShellExecute "wscript.exe", """" & WScript.ScriptFullName & """ /elevated", "", "runas", 1
# FROM REMOTE TO LOCAL
scp -r user@ipaddress:/remote/path/to/directory /local/directory/to/copy/to
# FROM LOCAL TO REMOTE
scp -r /local/directory/to/copy/from user@ipaddress:/remote/path/to/directory
using System;
using System.IO;
using CsvHelper;
namespace CsvHelperTest
{
// THIS USES CsvHelper FROM NUGET
public class Program
{
@lukeawyatt
lukeawyatt / Mirth.Debugging.js
Last active January 8, 2021 20:23
Application: Mirth
// WRITES TO THE MAIN LOG
logger.info('MESSAGE');
// WRITES TO THE MAIN LOG
java.lang.System.err.println("MESSAGE");
<?php
if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "" || $_SERVER['HTTPS'] == "off"){
$redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
header('Status: 301 Moved Permanently', true);
header("Location: $redirect", true, 301);
}
?>
SELECT percent_complete, start_time, status, command, estimated_completion_time, cpu_time, total_elapsed_time
FROM sys.dm_exec_requests;