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 / mime.types
Created Apr 10, 2018
Improved NGINX MIME Types
View mime.types
types {
# Data interchange
application/atom+xml atom;
application/json json map topojson;
application/ld+json jsonld;
application/rss+xml rss;
application/vnd.geo+json geojson;
application/xml rdf xml;
View mergesort.py
def merge(left, right):
result = []
i , j = 0 , 0
while i < len (left) and j < len (right): # iterate through both arrays and arrange the elements in sorted order
if left[i] <= right [j]:
result.append(left[i])
i+=1
else:
result.append(right[j])
j+=1
@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
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 ASBHVOMHYFAzfXPA2mGeqCSctL0lC6i_D2mJZqrw8CVCngo

To claim this, I am signing this object:

View manifest.json
{
"short_name":"IVAO TH",
"name":"IVAO Thailand Division",
"description":"IVAO Thailand Division website",
"icons":[
{
"src":"https://www.ivao.aero/images/svg_logos/TH.svg",
"sizes":"16x16 32x32 72x72 96x96 128x128 256x256 558x558"
}
],
View gist:5ceeb0d9b163454dfa69236554c5d51d
{
"userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/61.0.3116.0 Mobile Safari/537.36",
"lighthouseVersion": "2.2.1",
"generatedTime": "2017-07-08T15:09:26.576Z",
"initialUrl": "https://wynncraft.com/",
"url": "https://wynncraft.com/",
"audits": {
"is-on-https": {
"score": false,
"displayValue": "1 insecure request found",
View OrchidGazer Report
{
"userAgent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5 Build/MRA58N) AppleWebKit/537.36(KHTML, like Gecko) Chrome/59.0.3033.0 Mobile Safari/537.36",
"lighthouseVersion": "2.0.0",
"generatedTime": "2017-05-28T02:36:11.261Z",
"initialUrl": "https://orchidgazer.rayriffy.com/",
"url": "https://orchidgazer.rayriffy.com/",
"audits": {
"is-on-https": {
"score": true,
"displayValue": "",
You can’t perform that action at this time.