Skip to content

Instantly share code, notes, and snippets.

View prayagupa's full-sized avatar
💭
Neta

Prayag prayagupa

💭
Neta
View GitHub Profile
@prayagupa
prayagupa / 1-Jenkins_Linux_rhel.md
Last active November 13, 2023 15:46
jenkins, CI, CD, gocd, cicd, ci, cd

Installation

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
@prayagupa
prayagupa / Chef.md
Last active December 8, 2016 08:19
chef

chef chef-apply chef-client chef-shell chef-solo chefstyle chef-zero

root@y0319t10971:~# chef-apply --version Chef: 12.13.37

Intallation

@prayagupa
prayagupa / systemD.md
Last active December 29, 2017 09:15
systemD
@prayagupa
prayagupa / mp3.js
Created October 17, 2016 03:59 — forked from dtrce/mp3.js
streaming mp3 using nodejs
var http = require('http'),
fileSystem = require('fs'),
path = require('path')
util = require('util');
http.createServer(function(request, response) {
var filePath = 'path_to_file.mp3';
var stat = fileSystem.statSync(filePath);
response.writeHead(200, {
@prayagupa
prayagupa / Windows.md
Created September 23, 2016 17:46
windows issues

The driver detected a controller error on \Device\Ide\IdePort0.

The 1E Shopping Agent service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.

@prayagupa
prayagupa / 2.Example.md
Last active July 22, 2016 16:15 — forked from varemenos/1.README.md
Git log in JSON format

Here is an example in Javascript based on a package I'm working on for Atom:

var format = '{%n  "commit": "%H",%n  "abbreviated_commit": "%h",%n  "tree": "%T",%n  "abbreviated_tree": "%t",%n  "parent": "%P",%n  "abbreviated_parent": "%p",%n  "refs": "%D",%n  "encoding": "%e",%n  "subject": "%s",%n  "sanitized_subject_line": "%f",%n  "body": "%b",%n  "commit_notes": "%N",%n  "verification_flag": "%G?",%n  "signer": "%GS",%n  "signer_key": "%GK",%n  "author": {%n    "name": "%aN",%n    "email": "%aE",%n    "date": "%aD"%n  },%n  "commiter": {%n    "name": "%cN",%n    "email": "%cE",%n    "date": "%cD"%n  }%n},';

var commits = [];

new BufferedProcess({
    command: 'git',
 args: [
@prayagupa
prayagupa / Julia.md
Last active May 15, 2017 23:08
julia, ML
wget https://s3.amazonaws.com/julialang/bin/osx/x64/0.4/julia-0.4.5-osx10.7+.dmg
alias juliaConsole='/Applications/Julia-0.4.5.app/Contents/MacOS/Julia'
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.4
BuildVersion: 15E65
required
-------------
http://www.leptonica.org/download.html
@prayagupa
prayagupa / README.md
Created April 2, 2016 18:27 — forked from elben/README.md
Using core.async for Producer-consumer Systems

Using core.async for Producer-consumer Systems

# Set up input file
repeat 10000 echo "." >> input

# Run inline
time lein run inline < input > output

# Run async