This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(preg_match("/^; <\?php die\(\); \?>".PHP_EOL."([\w\d]+=[#$\w\d\/\"\\\]+".PHP_EOL.")*(\[[\w\d]+\]".PHP_EOL."([\w\d]+=[#$\w\d\/\"\\\]+".PHP_EOL.")*)*\$/im", @file_get_contents('conf.php') )){ | |
echo ("match"); | |
} | |
else{ | |
echo ("didn't match");} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class db_driver_mySQL{ | |
private $connection; | |
private $handle=false; | |
public function __construct($connection){ | |
if(is_string($connection)){ | |
if(preg_match('/mySQL:\/\/\w+(:\w+)?@\w+(:\d+)?(\/\w+)?/',$connection)){ | |
$connection=@parse_url($connection); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data.SqlTypes; | |
using System.IO; | |
using System.Text; | |
using Microsoft.SqlServer.Server; | |
[Serializable] | |
[SqlUserDefinedAggregate( | |
Format.UserDefined, | |
IsInvariantToNulls = true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[string]$dll = (gi HKLM:\SOFTWARE\Saitek\DirectOutput).GetValue('DirectOutput_Saitek').Replace('\', '\\') | |
Add-Type -Namespace Saitek -Name "DirectOutput" -UsingNamespace "System.Collections.Generic" -MemberDefinition @" | |
[UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void Pfn_DirectOutput_EnumerateCallback(IntPtr hDevice, IntPtr pCtxt); | |
[UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void Pfn_DirectOutput_DeviceChange(IntPtr hDevice, bool bAdded, IntPtr pCtxt); | |
[UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void Pfn_DirectOutput_PageChange(IntPtr hDevice, uint dwPage, bool bSetActive, IntPtr pCtxt); | |
[UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void Pfn_DirectOutput_SoftButtonChange(IntPtr hDevice, uint dwButtons, IntPtr pCtxt); | |
[DllImport("$dll", SetLastError = true, CharSet = CharSet.Ansi)] public static extern IntPtr DirectOutput_Initialize([MarshalAs(UnmanagedType.LPWStr)]System.Text.StringBuilder wszPluginName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Frontend for BigBlueButton conferencing system | |
After=network.target | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
# Directory where greenlight is installed | |
WorkingDirectory=/opt/greenlight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=letsencrypt/acme client implemented as a shell-script | |
After=network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/dehydrated -c | |
ExecStartPost=!/bin/systemctl reload nginx.service | |
Restart=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=REST API for any Postgres database | |
After=postgresql.target network.target | |
Documentation=https://postgrest.org/en/stable/ | |
[Service] | |
Type=exec | |
ExecStart=/usr/bin/postgrest /etc/postgrest/%i.conf | |
ExecStop=/bin/kill -s HUP $MAINPID | |
ExecReload=/bin/kill -s SIGUSR2 $MAINPID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=The PHP 7.4 FastCGI Process Manager for %I | |
Documentation=man:php-fpm7.4(8) | |
After=network.target | |
[Service] | |
Type=notify | |
PIDFile=/run/php-fpm/%i/main.pid | |
ExecStart=/usr/sbin/php-fpm7.4 --nodaemonize --fpm-config /etc/php/7.4/fpm/sites/%i/php.conf --php-ini /etc/php/7.4/fpm/sites/%i/php.ini --pid /run/php-fpm/%i/main.pid --force-stderr | |
ExecReload=/bin/kill -USR2 $MAINPID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
IMAGE=$(mktemp -t swaylock-$USERNAME-XXXXX.png) | |
trap "rm -f ${IMAGE}" EXIT | |
# grim creates a screenshot of eDP-1. You may have to adjust your output specifier. | |
# convert (ImageMagick / GraphicsMagick) applies glur filter. Be creative! | |
grim -o eDP-1 - | \ | |
convert - \ |