Skip to content

Instantly share code, notes, and snippets.

View vamshisuram's full-sized avatar

Vamshi Suram vamshisuram

View GitHub Profile
vamshisuram / delete_artifacts.groovy
Created April 7, 2022 17:44 — forked from perja12/delete_artifacts.groovy
Delete artifacts from Jenkins with Groovy script.
// Delete old artifacts that fills up the disk on the master node.
// Run this from the Jenkins console (Manage Jenkins, Manage Nodes, master, Script Console)
def project = Jenkins.get().getItemByFullName('your-project-id')
def jobs = project.getAllJobs()
def total_size = 0
jobs.each{ job ->
def builds = job.getBuilds()
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
vamshisuram / .tmux.conf
Created July 18, 2019 18:02 — forked from jexchan/.tmux.conf
my tmux configuration
unbind C-b
set -g prefix C-a
setw -g mode-keys vi
set -s escape-time 1
set -g base-index 1
set -g pane-base-index 1
bind r source-file ~/.tmux.conf \; display "reloaded config file!"
vamshisuram / schema.js
Created January 31, 2018 05:10 — forked from simenbrekken/schema.js
Firebase backed GraphQL schema
import firebase from 'firebase'
import { filter, map } from 'lodash'
import { makeExecutableSchema } from 'graphql-tools'
databaseURL: '',
const mapSnapshotToEntity = snapshot => ({ id: snapshot.key, ...snapshot.val() })
const mapSnapshotToEntities = snapshot => map(snapshot.val(), (value, id) => ({ id, ...value }))
vamshisuram / .eslintrc.js
Created September 25, 2017 10:27 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
"env": {
"browser": true,
"node": true,
"es6": true
"plugins": ["react"],
"ecmaFeatures": {
vamshisuram /
Created March 28, 2017 05:54 — forked from xem/
JS code golfing

codegolf JS

Mini projects by Maxime Euzière (xem), subzey, Martin Kleppe (aemkei), Mathieu Henri (p01), Litterallylara, Tommy Hodgins (innovati), Veu(beke), Anders Kaare, Keith Clark, Addy Osmani, bburky, rlauck, cmoreau, maettig, thiemowmde, ilesinge, adlq, solinca, xen_the,...

(For more info and other projects, visit

(Official Slack room: / join us on

vamshisuram /
Created September 15, 2016 15:19 — forked from mxstbr/
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
vamshisuram /
Last active August 29, 2015 14:23 — forked from ngryman/

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;

Chrome Web Development Extensions

  • AdBlock - The most popular Chrome extension, with over 10 million users! Blocks ads all over the web.
  • Blackline GPS JIRA/GreenHopper Tools - Tools for working with JIRA GreenHopper
  • Dev HTTP Client - Easily construct custom HTTP requests, save them permanently, take advantage of variables and contexts.
  • Edit This Cookie - Edit This Cookie is a cookie manager. You can add, delete, edit, search, protect and block cookies!
  • GitHub Notifier - Displays your GitHub notifications unread count
  • Hacker News - Displ