Skip to content

Instantly share code, notes, and snippets.

View tremaineeto's full-sized avatar

Tremaine Eto tremaineeto

View GitHub Profile
@tremaineeto
tremaineeto / alias_enter_ip
Created July 30, 2020 00:56
Example of a Bash alias to SSH into an IP with a port
$ alias enter_ip="ssh -p 8080 10.82.16.435"
@tremaineeto
tremaineeto / examples_text_editors_bash_aliases
Created July 30, 2020 00:57
Examples of commands to open up your Bash alias files
$ nano ~/.bash_profile
$ vim ~/.bashrc
$ emacs ~/.bash_profile
@tremaineeto
tremaineeto / bash_profile
Created July 30, 2020 00:58
Example of Bash profile alias
# SSH into my frequently visited IP
alias enter_ip="ssh -p 8080 10.82.16.435"
@tremaineeto
tremaineeto / bash_profile_source
Created July 30, 2020 00:59
Make your bash profile apply to your current terminal session
$ source ~/.bash_profile
@tremaineeto
tremaineeto / unalias_bash_alias
Created July 30, 2020 01:00
Remove a Bash alias for a current terminal session
$ unalias enter_ip
@tremaineeto
tremaineeto / kubectl-get-deployments
Created August 4, 2020 00:55
Get deployments in k8s
kubectl get deployments -n my-namespace
@tremaineeto
tremaineeto / kubectl-get-deploy
Created August 4, 2020 00:56
Get deploy in k8s
kubectl get deploy -n my-namespace
kubectl api-resources
ImportError: No module named boto.sts
Traceback (most recent call last):
File "/usr/local/bin/pip", line 11, in <module>
load_entry_point('pip==19.1.1', 'console_scripts', 'pip')()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2434, in load
return self.resolve()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2440, in resolve