Skip to content

Instantly share code, notes, and snippets.

View ritesh's full-sized avatar
💭
not writing code

Ritesh Sinha ritesh

💭
not writing code
View GitHub Profile
@ritesh
ritesh / gist:8985759
Created February 13, 2014 23:01
Grub boot for Debian 7.4
menuentry "Debian 7.4 Live" {
set isofile="/home/ritesh/Downloads/debian-live-7.4-amd64-xfce-desktop.iso"
# Change partition if needed to hd whatever
loopback loop (hd0,5)$isofile
linux (loop)/live/vmlinuz boot=live config toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}
~
@ritesh
ritesh / fort.go
Created January 8, 2015 23:16
Toy fortune server
package main
import (
"bytes"
"log"
"net/http"
"os/exec"
)
func fortune() []byte {
@ritesh
ritesh / keybase.md
Last active March 26, 2016 15:56
Keybase proof

Keybase proof

I hereby claim:

  • I am ritesh on github.
  • I am rsinha (https://keybase.io/rsinha) on keybase.
  • I have a public key whose fingerprint is B8FE 72DD F664 177E B159 AC4F 6215 1F5B 334B 1A7A

To claim this, I am signing this object:

@ritesh
ritesh / docker-compose.yml
Last active September 9, 2022 14:43
Docker compose for ZAP
target:
# The target application we want to scan
image: szsecurity/webgoat
# The port that the application is available on.
# If the application runs on a non-standard port,
# you can map it to 80 for convenience by using
# ports
# - "80:8080"
expose:
- "80"
Put the contents below in <Drive name>:\Steam\steamapps\common\dota 2 beta\dota\cfg in autoexec.cfg
con_enable "1" //enables console
developer "0" //Enables Top Left Console Printout
con_filter_enable "1" //Filtering of Console Printout
con_notifytime "2" //Leaves notifications up for 2 seconds
dota_force_right_click_attack "1" // Rightclick deny enabled (default 0)
dota_disable_range_finder "0" // Show spell range
dota_unit_fly_bonus_height "150" // Flying height of air units (Default 150)
@ritesh
ritesh / Dockerfile
Created September 19, 2016 20:59
JohnK
#
FROM alpine:3.4
MAINTAINER JohnK
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
file \
g++ \
<? phpinfo(); ?>
@ritesh
ritesh / buildspec.yml
Created January 3, 2017 15:41
Build site from AWS code commit
version: 0.1
phases:
install:
commands:
- echo Installing wget and downloading hugo to tmp
- apt-get install -y wget zip
- wget https://github.com/spf13/hugo/releases/download/v0.17/hugo_0.17_Linux-64bit.tar.gz && tar xzvf hugo_0.17_Linux-64bit.tar.gz -C /tmp/
- chmod +x /tmp/hugo_0.17_linux_amd64/hugo_0.17_linux_amd64
pre_build:
@ritesh
ritesh / policy.json
Created June 16, 2017 10:35
Disallow editing of certain security groups using Resource based policies
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DisallowEditingGroups",
"Effect": "Deny",
"Action": [
"ec2:AuthorizeSecurityGroupIngress",
"ec2:AuthorizeSecurityGroupEgress"
],
@ritesh
ritesh / main.go
Created January 16, 2018 19:09
Get brian lambda AWS go
package main
import (
"errors"
"log"
"math/rand"
"net/http"
"strconv"
"time"