This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
# --------------- |
OlderNewer