Skip to content

Instantly share code, notes, and snippets.

⌨️
Slamming keyboard

Phumrapee Limpianchop rayriffy

⌨️
Slamming keyboard
Block or report user

Report or block rayriffy

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
View keybase.md

Keybase proof

I hereby claim:

  • I am rayriffy on github.
  • I am rayriffy (https://keybase.io/rayriffy) on keybase.
  • I have a public key whose fingerprint is E9DB 85FE 488F 1776 A86E AEDD A00E DA35 934E AD9A

To claim this, I am signing this object:

@rayriffy
rayriffy / _security.conf
Created May 7, 2018
Security headers for NGINX server blocks
View _security.conf
# STRICT ORIGIN WHEN CROSS ORIGIN
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
@rayriffy
rayriffy / start.sh
Created Mar 9, 2018
Automatic restart minecraft when server goes down
View start.sh
#!/bin/sh
while true
do
echo "##########STARTING###########"
java -Xms100M -Xmx8G -jar spigot.jar
echo ""
echo ""
echo "Restarting in:"
for i in 5 4 3 2 1
do
@rayriffy
rayriffy / Install NVIDIA Driver and CUDA.md
Created Mar 1, 2018 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
View Install NVIDIA Driver and CUDA.md
You can’t perform that action at this time.