Skip to content

Instantly share code, notes, and snippets.

View jayangshu84's full-sized avatar
🎯
Focusing

Jayangshu Saha jayangshu84

🎯
Focusing
View GitHub Profile
@jayangshu84
jayangshu84 / README.md
Created July 21, 2016 15:04 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@jayangshu84
jayangshu84 / virtual-users-defined-type
Created November 11, 2016 17:12 — forked from scottslowe/virtual-users-defined-type
Final (simplified) defined type for creating virtual user acounts
# Defined type for creating virtual user accounts
#
define accounts::virtual ($uid,$realname,$pass) {
user { $title:
ensure => 'present',
uid => $uid,
gid => $title,
shell => '/bin/bash',
home => "/home/${title}",
@jayangshu84
jayangshu84 / .kitchen.yml
Created March 29, 2017 14:21 — forked from drrk/.kitchen.yml
Chef TTD Azure Workshop Test Kitchen Config
---
driver:
name: azurerm
driver_config:
subscription_id: '4801fa9d-YOUR-GUID-HERE-b265ff49ce21'
location: 'West Europe'
machine_size: 'Standard_D1'
transport:
@jayangshu84
jayangshu84 / fixsudo.rb
Created March 29, 2017 14:34 — forked from drrk/fixsudo.rb
Fix Sudo Hack
delete_lines 'remove requiretty from sudoers' do
path '/etc/sudoers'
pattern '^.*requiretty'
end
@jayangshu84
jayangshu84 / Updatefork.md
Last active April 11, 2017 19:35 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@jayangshu84
jayangshu84 / boto_dynamodb_methods.py
Created June 27, 2017 15:43 — forked from martinapugliese/boto_dynamodb_methods.py
Some wrapper methods to deal with DynamoDB databases in Python, using boto3.
# Copyright (C) 2016 Martina Pugliese
from boto3 import resource
from boto3.dynamodb.conditions import Key
# The boto3 dynamoDB resource
dynamodb_resource = resource('dynamodb')
def get_table_metadata(table_name):
@jayangshu84
jayangshu84 / iterm2-solarized.md
Created January 14, 2018 18:13 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k