Skip to content

Instantly share code, notes, and snippets.

View vamshisuram's full-sized avatar
🎯
Focusing

Vamshi Suram vamshisuram

🎯
Focusing
View GitHub Profile
@vamshisuram
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
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@vamshisuram
vamshisuram / yarn
Created October 15, 2019 05:41
yarn
#!/bin/bash
# PREFIX="/usr/local" NPM_CONFIG_PYTHON="/usr/bin/python" exec "/usr/local/Cellar/yarn/1.19.1/libexec/bin/yarn.js" "$@"
@vamshisuram
vamshisuram / yarn
Last active October 15, 2019 05:42
yarn symlink updated
#!/bin/bash
# PREFIX="/usr/local" NPM_CONFIG_PYTHON="/usr/bin/python" exec "/usr/local/Cellar/yarn/1.19.1/libexec/bin/yarn.js" "$@"
PREFIX="/usr/local" NPM_CONFIG_PYTHON="/usr/bin/python" exec "/usr/local/Cellar/hadoop/3.2.1/bin/yarn" "$@"
@vamshisuram
vamshisuram / logs-symlinks
Created October 15, 2019 05:33
brew-symlinks
@vamshisuram
vamshisuram / brew-install-hadoop
Last active October 15, 2019 05:15
working with Yarn (NodeJs) and Yarn (Hadoop)
$ brew install hadoop
Updating Homebrew...
...
...
Error: Cannot install hadoop because conflicting formulae are installed.
yarn: because both install `yarn` binaries
Please `brew unlink yarn` before continuing.
@vamshisuram
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
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'
firebase.initializeApp({
databaseURL: 'https://grafire-b1b6e.firebaseio.com',
})
const mapSnapshotToEntity = snapshot => ({ id: snapshot.key, ...snapshot.val() })
const mapSnapshotToEntities = snapshot => map(snapshot.val(), (value, id) => ({ id, ...value }))
@vamshisuram
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
vamshisuram / codegolf.md
Created March 28, 2017 05:54 — forked from xem/codegolf.md
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 http://xem.github.io)

(Official Slack room: http://jsgolf.club / join us on http://register.jsgolf.club)