Skip to content

Instantly share code, notes, and snippets.

View vishnups1's full-sized avatar
๐Ÿ‘‹

Vishnupradeep vishnups1

๐Ÿ‘‹
  • Yahoo India
  • Bangalore
View GitHub Profile
@vishnups1
vishnups1 / python_cheats.md
Last active June 25, 2020 13:11
python_cheats

python requests

  • get request example:

    r = requests.get("url", params={}, auth=(username, password))
  • dir(r) to get response object attributes.

  • post request example:

@vishnups1
vishnups1 / ruby_cheatsheet_1.md
Last active May 2, 2020 14:00
ruby_cheatsheet
# This is a single line comment.

=begin
	This is a multiline comment.
=end

x = 10

print "#{x}\n"
@vishnups1
vishnups1 / chef_cheatsheet.md
Last active April 29, 2020 13:25
chef_cheatsheet
  • Chef provides a Domain Specific Language (DSL) for specifying Infrastrcture as a Code and the automation necessary to deploy, configure, and manage servers based on that code.
  • Allowing the specification of what the final configuration should be and not the steps necessary to make that happen.
  • Multiparts: ChefDK (Development Kit), Chef Server and Chef Client.
  • Desired State Configuration:
    • Specify a server configuration's end result, not the steps to go there.
    • "Test and Repair" approach allows chef to only make changes necessary to get the server back to the desired state configuration.
    • If server is already in desired state, no changes will occur.
  • Two ways of applying configuration (Imperative & Declarative style)
    • Imperative Approach (This applies to an single entity and it's gonna differ based on entities)
@vishnups1
vishnups1 / consul.md
Last active February 17, 2020 05:58 — forked from g0t4/glossary.md
Consul and related terms
  • Node - a physical or virtual machine that hosts services
    • Nodes also referred to as members.
    • Examples
      • Your computer
      • An AWS EC2 instance
      • A bare metal machine in your private data center
  • Service - executing software that provides utility via an interface
    • Typically long-lived process listening on a port(s)
    • Examples
  • A web server (nginx, apache, iis)
@vishnups1
vishnups1 / Display_response_header.md
Last active November 2, 2021 17:58 — forked from subfuzion/curl.md
curl POST examples
@vishnups1
vishnups1 / crypto.md
Last active September 6, 2019 15:34 — forked from dreikanter/encrypt_openssl.md
Crypto & Network Security Stuffs

Algorithm Types

Encryption Algorithms       (AES, DES, RSA...)
Authentication Algorithms   (MD5, SHA-256, SHA-512, HMAC ...)

Security

Encryption Types:
Symmentric      Single key (K) will be used for Encryption and Decryption (AES, DES)

Asymmentric Two keys (KU, KR) will be used for Encryption and Decryption (RSA)