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 | |
# deal with pre-requisites | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | |
# install public signature for docker repo and setup repo | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
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.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Text; | |
using System.Threading.Tasks; | |
public class TarGzExtractor | |
{ |
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 | |
//abstract class curl { | |
class curl { | |
private $error_codes; | |
private $_headers; | |
private $_options; | |
public $headers; |
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 | |
/* Absolute path to the WordPress directory. */ | |
if ( !defined('ABSPATH') ) { define('ABSPATH', dirname(__FILE__) . '/'); } | |
/* Debug Mode */ | |
error_reporting(E_ALL); | |
@ini_set('display_errors', false ); | |
define( 'WP_DEBUG', false ); | |
define( 'WP_DEBUG_LOG', false ); | |
define( 'WP_DEBUG_DISPLAY', false ); |
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
// tested with jQuery 3.x | |
$(document).ready(function(){ | |
$("[name^=entry]").each(function(){ | |
switch($(this).prop("type")) { | |
case "radio": | |
$(this).prop("checked", true); | |
break; | |
case "checkbox": | |
$(this).prop("checked", true); | |
break; |
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 | |
if [ "$#" -lt 1 ]; then | |
echo " | |
Command Syntax: | |
pfx2pem <cert> <optional:password> | |
" |
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 | |
# ************************************ | |
# * SETTINGS * | |
# ************************************ | |
FIREWALL_DYNDNS=""; | |
FIREWALL_GEOIP_ACCOUNT=""; | |
FIREWALL_GEOIP_LICENSE=""; | |
# Set value to 1 to install that feature. Otherwise set to 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 | |
# ************************************ | |
# * SETTINGS * | |
# ************************************ | |
FIREWALL_DYNDNS=""; | |
FIREWALL_GEOIP_ACCOUNT=""; | |
FIREWALL_GEOIP_LICENSE=""; | |
# Set value to 1 to install that feature. Otherwise set to 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/sh | |
CSF="/etc/csf/csf.conf" | |
# set the values as you wish them to be set in the running version of csf | |
RESTRICT_UI='2' | |
RESTRICT_SYSLOG='3' | |
LF_SPI='1' | |
TCP_IN='25,80,110,443,465,587,995,2083' | |
TCP_OUT='20,21,22,25,37,43,53,80,110,113,443,587,873,993,995,2086,2087,2089,2703' | |
UDP_IN='33434:33523' |
NewerOlder