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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int myNumber = 0; | |
int tries = 0; | |
int zahl = 0; | |
int main() { | |
srand((unsigned int) time(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
#!/bin/bash | |
docker stop portainer | |
docker rm portainer | |
docker pull portainer/portainer-ce:2.14.0 | |
docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 --name=portainer --restart=always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v portainer_data:/data \ | |
portainer/portainer-ce:2.14.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
<?php | |
//Cloudflare IP Reset | |
//See if ip fits in IP range | |
function ip_in_network($ip, $net_addr, $net_mask){ | |
if($net_mask <= 0){ return false; } | |
$ip_binary_string = sprintf("%032b",ip2long($ip)); | |
$net_binary_string = sprintf("%032b",ip2long($net_addr)); | |
return (substr_compare($ip_binary_string,$net_binary_string,0,$net_mask) === 0); | |
} | |
//See if the "Cloudflare IP" is really a cloudflare IP |
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
/* | |
* smc_read.c: Written for Mac OS X 10.5. Compile as follows: | |
* | |
* gcc -Wall -o smc_read smc_read.c -framework IOKit | |
*/ | |
#include <stdio.h> | |
#include <IOKit/IOKitLib.h> |
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 | |
/** | |
* Sort an array by the nested arrays it contains. Helper function for getMatchingBlocks | |
* | |
* @param array $aArray First array to compare. | |
* @param array $bArray Second array to compare. | |
* | |
* @return int -1, 0 or 1, as expected by the usort function. | |
*/ | |
public static function tupleSort(array $aArray, array $bArray): int |
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 | |
/** | |
* LDAP Auth Handler | |
*/ | |
class LdapAuth | |
{ | |
/** | |
* @var false|resource | |
*/ | |
private $handle; |
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
Acquire::http::Pipeline-Depth "0"; | |
Acquire::http::No-Cache=True; | |
Acquire::BrokenProxy=true; |
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
echo off | |
:: Handle CLI Args | |
IF [%1]==[] ( | |
echo No wallpaper path provided, please provide a full qualified path. Ex: C:\dir1\dir2\wallpaper.jpg | |
exit /b 1 | |
) | |
:: Commands | |
echo Changing wallpaper to: %1 |
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 | |
$output = "# changelog\n\n"; | |
$previousTag = 0; | |
$gitTags = shell_exec("git tag --sort=-creatordate"); | |
$gitTagsArray = explode("\n", $gitTags); | |
foreach ($gitTagsArray as $gitTag) { |
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
[global] | |
read raw = Yes | |
write raw = Yes | |
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 | |
min receivefile size = 16384 | |
use sendfile = true | |
aio read size = 16384 | |
aio write size = 16384 | |
protocol = SMB3 |