Skip to content

Instantly share code, notes, and snippets.

View arindam89's full-sized avatar

Arindam Paul arindam89

  • Chief Architect at Safe Security
  • Bengaluru, India
  • 17:12 (UTC +05:30)
  • X @geek_paul
View GitHub Profile
@arindam89
arindam89 / PlayStationBIOSFilesNAEUJP.md
Created November 23, 2023 13:14 — forked from juanbrujo/PlayStationBIOSFilesNAEUJP.md
Files for PlayStation BIOS Files NA-EU-JP
@arindam89
arindam89 / dining.rb
Created September 22, 2018 12:23 — forked from egonSchiele/dining.rb
Dining philosophers in Ruby with Celluloid. Modified from https://gist.github.com/bugant/4984042
require 'rubygems'
require 'celluloid'
class Waiter
include Celluloid
FORK_FREE = 0
FORK_USED = 1
attr_reader :philosophers
attr_reader :forks
attr_reader :eating
@arindam89
arindam89 / dining_with_waiter.rb
Last active December 23, 2018 15:06 — forked from egonSchiele/dining_with_waiter.rb
[Dining philosophers using locks in Ruby. This implements a Waiter who is in charge of forks.] http://adit.io/posts/2013-05-11-The-Dining-Philosophers-Problem-With-Ron-Swanson.html
require 'thread'
class Waiter
def initialize
@mutex = Mutex.new
end
def can_eat? philosopher
left = philosopher.left_fork
right = philosopher.right_fork
@arindam89
arindam89 / .bash_profile
Created September 28, 2017 13:44 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@arindam89
arindam89 / tmux.conf
Last active August 8, 2018 06:24 — forked from shinzui/tmux.conf
My custom tmux configuration #tmux
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Change the default delay
@arindam89
arindam89 / .gitconfig
Last active December 27, 2015 13:18 — forked from pksunkara/config
[user]
name = Arindam Paul
email = arpaul@amazon.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[web]
browser = google-chrome
[alias]
@arindam89
arindam89 / 0_reuse_code.js
Created November 6, 2013 03:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@arindam89
arindam89 / html5_template.html
Created September 8, 2012 05:36 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>