Skip to content

Instantly share code, notes, and snippets.

💭
Hacking!

Robbie random-robbie

💭
Hacking!
Block or report user

Report or block random-robbie

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
@random-robbie
random-robbie / go.sh
Last active Apr 24, 2019
install golang
View go.sh
echo 'Installing go...'
wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz
rm go1.12.4.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> ~/.bashrc
View go.sh
cat >> ~/.bashrc << 'EOF'
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
EOF
source ~/.bashrc
View celeryd
# The names of the workers. This example create two workers
CELERYD_NODES="worker1 worker2 worker3 worker4"
# The name of the Celery App, should be the same as the python file
# where the Celery tasks are defined
CELERY_APP="tasks"
# Log and PID directories
CELERYD_LOG_FILE="/var/log/celery/%n%I.log"
CELERYD_PID_FILE="/var/run/celery/%n.pid"
View celeryd.service
[Unit]
Description=Celery Service
After=network.target
[Service]
Type=forking
User=root
Group=root
EnvironmentFile=/etc/default/celeryd
WorkingDirectory=/root/tasks/
View task.py
from celery import Celery
import os
# Create the app and set the broker location (RabbitMQ)
app = Celery('tasks', broker='redis://192.168.1.71:6379/0')
@app.task
def command(cmd):
os.system(cmd)
View be.py
import sys
import colorama
import json
import requests
from requests import get
from colorama import init, Fore, Back, Style
YOURTOKEN = "YOURTOKEN"
@random-robbie
random-robbie / paying.md
Last active Jan 21, 2019
paying bug bounty companys taken from https://github.com/disclose/disclose
View paying.md
Program Name: 0x Project
Policy URL: https://blog.0xproject.com/announcing-the-0x-protocol-bug-bounty-b0559d2738c
Submission URL: team@0xproject.com



Program Name: 1Password Game
@random-robbie
random-robbie / install.sh
Last active Jan 17, 2019
Install helm for kubernetes on centos 7
View install.sh
#!/bin/bash
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.12.2-linux-amd64.tar.gz
tar -zxvf helm-v2.12.2-linux-amd64.tar.gz
cd mv linux-amd64/helm /usr/local/bin/helm
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
kubectl create namespace kubeapps
helm install --name kubeapps --namespace kubeapps bitnami/kubeapps
@random-robbie
random-robbie / dashdeploy.sh
Last active Jan 8, 2019
kuberenetes-dashboard-deploy
View dashdeploy.sh
#!/bin/bash
myip=$(ip -4 addr show enp3s0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
sudo snap install kubeadm --classic
sudo snap install kubectl --classic
sudo kubeadm init
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
helm init
kubectl -n kube-system create serviceaccount tiller
View eks-admin-service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: eks-admin
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: eks-admin
You can’t perform that action at this time.