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
#!/usr/bin/env bash | |
APACHE_USER=wwwhost | |
VHOSTS_DOMAINS=(example.com second.example.com) | |
sudo ufw allow in "OpenSSH" | |
# Install Apache | |
sudo apt-get update | |
sudo apt-get install apache2 | |
sudo nano /etc/apache2/apache2.conf # Add ServerName ... directive at bottom |
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
*****WINDOWS***** | |
//nslookup - subnet range | |
c:\>for /L %i in (1,1,255) do @nslookup 10.10.10.%i [server to resolve from] 2>nul | find "Name" && echo 10.10.10.%i && @echo [ctrl+g] | |
//nslookup - file of ip's | |
NAME c:\>for /F %i in ([file.txt]) do @nslookup %i [server to resolve from] 2>nul | find "Name" && echo %i | |
ADDRESS c:\>for /F %i in ([file.txt]) do @nslookup %i [server to resolve from] 2>nul | find "Address" && echo %i | |
Or just run c:\>nslookup and paste in the list |
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
function Get-ProductKey { | |
<# | |
.SYNOPSIS | |
Retrieves the product key and OS information from a local or remote system/s. | |
.DESCRIPTION | |
Retrieves the product key and OS information from a local or remote system/s. Queries of 64bit OS from a 32bit OS will result in | |
inaccurate data being returned for the Product Key. You must query a 64bit OS from a system running a 64bit OS. | |
.PARAMETER Computername |
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 | |
function green { | |
echo -e "\e[32m${1}\e[0m" | |
} | |
green 'Removing old kernels...' | |
yum install yum-utils -y | |
package-cleanup --oldkernel --count=2 |
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 | |
#================# | |
# For CentOS 7.0 # | |
#================# | |
######## CONFIG ########## | |
user="user" | |
router="index.php" |
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 | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <senko.rasic@dobarkod.hr> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
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
name | short_name | url | |
---|---|---|---|
GNU General Public License (GPL) version 3 | GNUGPLv3 | https://www.gnu.org/licenses/gpl.html | |
GNU General Public License (GPL) version 2 | GPLv2 | https://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
GNU Lesser General Public License (LGPL) version 3 | LGPLv3 | https://www.gnu.org/licenses/lgpl.html | |
GNU Lesser General Public License (LGPL) version 2.1 | LGPLv2.1 | https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html | |
GNU Affero General Public License (AGPL) version 3 | AGPLv3.0 | https://www.gnu.org/licenses/agpl.html | |
GNU All-Permissive License | GNUAllPermissive | https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html | |
Apache License, Version 2.0 | apache2 | http://directory.fsf.org/wiki/License:Apache2.0 | |
Artistic License 2.0 | ArtisticLicense2 | http://directory.fsf.org/wiki/License:ArtisticLicense2.0 | |
Clarified Artistic License | ClarifiedArtisticLicense | http://gianluca.dellavedova.org/2011/01/03/clarified-artistic-license/ |
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
#!/usr/local/bin/ansible-playbook -v | |
--- | |
- hosts: localhost | |
gather_facts: False | |
connection: local | |
vars: | |
rule_list: | |
- { proto: tcp, from_port: 80, to_port: up, cidr_ip: 10.0.0.1/32 } | |
- { proto: tcp, from_port: 443, to_port: 443, cidr_ip: 10.0.0.1/32 } |
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
- name: Install the required rpms | |
yum: name={{ item }} state=latest | |
with_items: | |
- wget | |
- git | |
- net-tools | |
- bind-utils | |
- iptables-services | |
- bridge-utils | |
- bash-completion |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/", | |
"Mappings" : { | |
"RegionMap" : { | |
"eu-central-1" : { | |
"AMI" : "ami-573ef338" | |
}, |
NewerOlder