Skip to content

Instantly share code, notes, and snippets.

View rasoibam's full-sized avatar

Ra Soibam rasoibam

  • India
  • 12:23 (UTC +05:30)
View GitHub Profile
@rasoibam
rasoibam / nginx.conf
Created August 17, 2018 06:53 — forked from v0lkan/nginx.conf
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@rasoibam
rasoibam / install-tmux
Created August 20, 2018 17:43 — forked from philipsd6/install-tmux
Install tmux 2.3 on rhel/centos 7
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local
@rasoibam
rasoibam / index.html
Created August 25, 2018 07:27 — forked from gaearon/index.html
Multiple React components on a single HTML page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@rasoibam
rasoibam / nginx.conf
Created October 10, 2018 12:01 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
@rasoibam
rasoibam / webdev_online_resources.md
Created October 30, 2018 14:02 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@rasoibam
rasoibam / killadobe.sh
Created November 11, 2018 19:03 — forked from CyberPunkCodes/killadobe.sh
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
#!/bin/bash
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n"
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
echo "\n\n--- Done! ---\n\n"

Source

How To Use Nmap to Scan for Open Ports on your VPS

Introduction


Networking is an expansive and overwhelming topic for many budding system administrators. There are various layers, protocols, and interfaces, and many tools and utilities that must be mastered to understand them.

Source

Nmap Cheat Sheet and Pro Tips

Nmap has a multitude of options and when you first start playing with this excellent tool it can be a bit daunting. In this cheat sheet you will find a series of practical example commands for running Nmap and getting the most of this powerful tool.

Keep in mind that this cheat sheet merely touches the surface of the available options. The [Nmap Documentation portal][1] is your reference for digging deeper into the options available.

![][2]

@rasoibam
rasoibam / golang_job_queue.md
Created December 10, 2018 09:43 — forked from harlow/golang_job_queue.md
Job queues in Golang
package main
const MaxLength = 1 << 20
var (
addr = flag.String("listen", ":8000", "listen for requests")
numprocs = flag.Int("p", runtime.NumCPU(), "number of workers to start")
maxqueue = flag.Int("q", runtime.NumCPU()*2, "largest queue size")
jobs chan Job