Skip to content

Instantly share code, notes, and snippets.

View VJftw's full-sized avatar

VJ Patel VJftw

View GitHub Profile
@VJftw
VJftw / keybase.md
Created September 9, 2022 12:23
keybase attestation

Keybase proof

I hereby claim:

  • I am vjftw on github.
  • I am vjftw (https://keybase.io/vjftw) on keybase.
  • I have a public key ASCd3YQ_djtQKD2WNBFRqEcuK5AOjRIkb0AV_cWgSiZf8wo

To claim this, I am signing this object:

@VJftw
VJftw / weave-proxy.service
Created June 17, 2017 18:24
WeaveWorks WeaveNET systemd units
[Unit]
Description=Weaveworks WeaveNET Proxy
Requires=weave-router.service
After=multi-user.target
[Service]
Type=simple
WorkingDirectory=/etc/weave
ExecStart=/bin/bash -c "/usr/local/bin/weave launch-proxy --hostname-from-label 'com.amazonaws.ecs.container-name' && sleep 5 && /usr/bin/docker logs -f weaveproxy"
ExecStop=/usr/local/bin/weave stop-proxy
@VJftw
VJftw / docker_swarm.py
Last active February 27, 2017 00:35
AWS EC2 ASG docker swarm script
import boto3
import botocore
import urllib.request
import subprocess
import time
import os
#
# Uses DyanmoDB to aid in initialising a Docker Swarm using locking.
#
@VJftw
VJftw / vjftw.cfg
Last active October 2, 2021 02:37
CSGO Config
//================================================== INTRODUCTION
//--------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------//
//------------------------------------------- FULL-AUTO! -------------------------------------------//
//----------------------------- A 2021 CSGO autoexec.cfg file by J-Pop -----------------------------//
//-------------------------- Ready for action, prepared for customisation --------------------------//
//--------------------------------------------------------------------------------------------------------//
//--------------------------------------------------------------------------------------------------------//
// VIEWING/EDITING
@VJftw
VJftw / ubuntu_14.04.sh
Last active October 29, 2019 12:36
Jenkins AWS EC2 Slave Plugin Init Script
# AMI: ami-f95ef58a (Standard Ubuntu 14.04)
# - Remote user: ubuntu
# - Remote FS root: /var/jenkins
# - Spot instance: true
sudo apt-get update -y
sudo apt-get install -y apt-transport-https ca-certificates
echo "--> Setting up Docker repository"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee -a /etc/apt/sources.list.d/docker.list
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@VJftw
VJftw / locust
Created March 25, 2015 11:19
Locust Slave Service script
### BEGIN INIT INFO
# Provides: vfp-locust
# Required-Start: $remote_fs $syslog $network $local_fs
# Required-Stop: $remote_fs $syslog $network $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start vfp-locust at boot time
# Description: Start vfp-locust service
### END INIT INFO