Coder Social home page Coder Social logo

gists's Introduction

gists - WARNING: PUBLIC REPO

...because org based gists isn't a thing on github :(

Please don't add any sensitive data in here.

Great centralized place to put in tidbits of scripts that can be ran from anywhere:

  • Bash using source <(curl -s https://raw.githubusercontent.com/PageUpPeopleOrg/gists/master/YOUR-SCRIPT-HERE.sh)
  • Powershell using iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/PageUpPeopleOrg/gists/master/YOUR-SCRIPT-HERE.ps1'))

To have these scripts referenced locally for the specific user, run echo "source <(curl -s https://raw.githubusercontent.com/PageUpPeopleOrg/gists/master/YOUR-SCRIPT-HERE.sh)" > ~/.local/bin/YOUR-SCRIPT-HERE.sh; chmod +x ~/.local/bin/YOUR-SCRIPT-HERE.sh.

install-hashicorp

Installs the specified hashicorp product unto your local computer, uses the latest version if none are specified.

./install-hashicorp.sh [consul|nomad|otto|packer|serf|terraform|vagrant|vault] <version>

get-temporary-token

Configures profiles for the various accounts/roles to be assumed.
First, configure a profile by doing ./get-temporary-token.sh configure [profile-name] [some-user] [some-role] [role-account-number] [access-key] [secret-key], then get the token based on the profile created by running ./get-temporary-token get [profile-name] [mfa-token]. You can check the status of your session by running ./get-temporary-token.sh expired.

For easier environment variable setting, run the script with source ./get-temporary-token.sh get [profile-name] [mfa-token]. All information is stored in the default AWS config/credential location for better security.

rdp

Connects to an RDP session for Linux/Mac using xfreerdp2. Simply run ./rdp [IP]<:PORT>, it will prompt you for your username and password, or you can set them inline by using the option -u <username> -p <password>.

gists's People

Contributors

mboudreau avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.