Skip to content

Instantly share code, notes, and snippets.

Eric Nemchik nemchik

Block or report user

Report or block nemchik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cecilemuller
cecilemuller / letsencrypt_2019.md
Last active Jul 15, 2019
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)
View letsencrypt_2019.md

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

View Bryce's_Cryptowall_Scanner.ps1
# I DID NOT CREATE THIS SCRIPT, /u/shaloham did on reddit.com/r/sysadmin
#SOURCE: https://www.dropbox.com/s/ucjoc9x7i768cji/Bryce's%20Cryptowall%20Scanner.ps1?dl=0
#REDDIT: https://www.reddit.com/r/sysadmin/comments/42t8f9/simple_shitty_cryptowall_scanner_script/
# Email notification settings
$smtpserver = "something" #replace
$smtpport = 25
# Main loop
while (1 -eq 1)
@JeremyMorgan
JeremyMorgan / states.sql
Last active May 16, 2019
An SQL Query to insert 50 U.S. States into a database. Make sure your auto increment is set in MySQL, and Identity_insert is set in MS-SQL.
View states.sql
CREATE TABLE [state](
[stateID] [int] IDENTITY(1,1) NOT NULL,
[stateCode] [nchar](2) NOT NULL,
[stateName] [nvarchar](128) NOT NULL,
CONSTRAINT [PK_state] PRIMARY KEY CLUSTERED
( [stateID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY])
ON [PRIMARY]
You can’t perform that action at this time.