Skip to content

Instantly share code, notes, and snippets.

@nuthanc
nuthanc / abstract.md
Last active June 24, 2021 04:00
Design Patterns in Stephen's courses
@nuthanc
nuthanc / mouse.sh
Created June 23, 2020 15:37
vim mouse scrolling
defaults write com.googlecode.iterm2 AlternateMouseScroll -bool true
@nuthanc
nuthanc / command_config
Last active November 6, 2020 10:36
Jenkins Config for contrail_command and git in Jenkins and images #jenkins #images
# Config for contrail_command
export SKIP_CONTRAIL_COMMAND_INSTALL=0
if [ $DEPLOYER = 'contrail_command_deployer' ]
then
export DEPLOYER=contrail_command
export DEPLOYER_SERVER_HOST_STRING=root@10.204.216.120
export DEPLOYER_SERVER_HOST_PWD=c0ntrail123
fi
# End of contrail_command config
@nuthanc
nuthanc / agilio.yaml
Last active August 11, 2020 12:06
Nick debugging Netronome
agilio-vrouter5:
virtioforwarder-coremask: "1,2"
registry: "netronomesystems"
registry-insecure: false
# Remove the above if error is seen
image-tag: "latest"
@nuthanc
nuthanc / Profiles.json
Last active June 17, 2021 06:29
Iterm Profiles
{
"Profiles": [
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.3333333432674408,
"Red Component" : 0.3333333432674408,
@nuthanc
nuthanc / zsh_history
Last active June 11, 2020 04:44
zsh history
vim .zshrc
gedit .zshrc
cd ~/.profile
printenv $PATH
npx express-generator --help
npx express-generator -e
cd views
pycharm index.=ejs
npm install express
npm install -g nodemon
@nuthanc
nuthanc / brew_installs
Created June 11, 2020 04:22
brew installs
history | grep brew
brew cask install java
brew cask install anaconda
brew cask install homebrew/cask-versions/adoptopenjdk8
brew install jenkins
which brew
brew install kubectl
brew cask install minikube
brew install kubernetes-helm
brew install telnet
@nuthanc
nuthanc / pdb
Created June 9, 2020 18:22
Django serialize pdb
> /Users/nuthanc/personal_projects/django_ajax_guide/src/my_app/views.py(25)postFriend()
-> ser_instance = serializers.serialize('json', [ instance, ])
(Pdb) s
--Call--
> /Users/nuthanc/personal_projects/django_ajax_guide/lib/python3.7/site-packages/django/core/serializers/__init__.py(122)serialize()
-> def serialize(format, queryset, **options):
(Pdb) l
117 if format not in _serializers:
118 raise SerializerDoesNotExist(format)
119 return _serializers[format].Deserializer
@nuthanc
nuthanc / hosts
Last active July 9, 2020 12:11
Working netronome juju deployment files and Andrey's error analysis
# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.debian.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
# /etc/cloud/cloud.cfg or cloud-config from user-data
#
192.168.30.20 noden20.maas noden20
192.168.30.19 noden19.maas noden19
192.168.40.19 noden19.maas noden19
@nuthanc
nuthanc / options.md
Last active June 9, 2020 13:22
Options to try for netronome juju deployment

Places of failure

  1. Agilio docker pull fail
  • Probable Causes:
    • Invalid credentials(Ruled out)
    • Registry not reachable
    • Image not present
    • Access not given
  1. Agent not ready: XMPP problem
  • Probable Causes:
  • easy-rsa along with some double dash thing(Need to confirm with Andrey)