<?php
namespace App\Auth\Middleware
class TwoFactor
{
//Store the page route/url where we retrieve the input from
$inputPage;
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/sh | |
# sendmail-aws | |
# | |
# Installation instructions | |
# Copy the content of this file to /usr/sbin/sendmail-aws | |
# Modify line #69 with your S3 bucket name | |
# | |
# AWS | |
# --------------- |
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 | |
declare(strict_types=1); | |
namespace App\Contracts; | |
interface HasPublicClassName | |
{ | |
/** | |
* @return string |
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 | |
namespace App\Http\Middleware; | |
use App\Admin; | |
use Closure; | |
use Illuminate\Support\Facades\Auth; | |
class AuthGuard | |
{ |
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
param($global:RestartRequired=0, | |
$global:MoreUpdates=0, | |
$global:MaxCycles=10) | |
function Check-ContinueRestartOrEnd() { | |
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | |
$RegistryEntry = "InstallWindowsUpdates" | |
switch ($global:RestartRequired) { | |
0 { | |
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry |
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 | |
$ec = Bitcoin::getEcAdapter(); | |
$key = PrivateKeyFactory::fromWif('YOUR_WIF'); | |
$outpoint = new OutPoint(Buffer::hex('YOUR_TRANSACTION', 32), 0); | |
$scriptPubKey = ScriptFactory::scriptPubKey()->payToPubKeyHash($key->getPublicKey()); | |
$value = 0; |
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/bash | |
#Ask some info | |
echo -n "Enter ELK Server IP or FQDN: " | |
read eip | |
echo -n "Enter Admin Web Password: " | |
read adpwd | |
#Update System | |
sudo apt-get update | |
sudo apt-get upgrade -y |
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
pid t pid; | |
pid = fork(); | |
if (pid == 0) { | |
/* child process */ | |
fork(); | |
thread create( . . .); | |
} | |
fork(); |
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
/* ThreadEx1.java:A simple program creating and invoking a thread object by extending the standard Thread class. */ | |
class MyThread extends Thread { | |
public void run() { | |
System.out.println(“ this thread is running ... ”); | |
} | |
} | |
class MAINPROGRAM { | |
public static void main(String [] args ) { |
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
-Example.com | |
--Users | |
---Default Domain GPO - Runs script `domain.bat` at login | |
---Users OU | |
----Default Users GPO - Runs script `users.bat` at login | |
----Admins | |
-----Default Admins GPO - Runs script `admin.bat` at login | |
-----Admin Account 1 | |
-----Admin Account 2 | |
-----Admin Account 3 |
NewerOlder