Skip to content

Instantly share code, notes, and snippets.

View Johnsalzarulo's full-sized avatar

John Jacob Johnsalzarulo

View GitHub Profile
@Johnsalzarulo
Johnsalzarulo / Multiple Github Accounts One Machine.md
Last active September 27, 2018 22:38
Multiple Github Accounts One Computer

Setting Up Multiple Github Accounts / SSH Keys on one machine

Sometimes you may find yourself needing to have multiple github accounts set up able to push and pull to different repositories where different usernames have access. This guide is intended to be breadcrumbs for those who are struggling.

I really struggled on this one.

Here's the basic steps:

  • Generate a new SSH key
  • Add this key to your ssh settings
  • Copy this key into your github account
This file has been truncated, but you can view the full file.
{"v":"5.1.18","fr":29.9700012207031,"ip":0,"op":90.0000036657751,"w":1920,"h":1080,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Auto-traced V1-FX-015.mov","cl":"mov","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-50,"ix":10},"p":{"a":0,"k":[1238,542,0],"ix":2},"a":{"a":0,"k":[1400,1300,0],"ix":1},"s":{"a":0,"k":[21,21,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"f","pt":{"a":1,"k":[{"t":17,"s":[{"i":[[3.576,-0.253],[-0.416,-6.388],[0,-5.266],[1.204,-15.097],[2.184,-12.691],[3.878,-13.997],[3.868,-12.792],[0.461,-0.39],[0.099,-0.254],[-0.076,-0.529],[0.135,-0.448],[0.461,-0.39],[0.1,-0.254],[-0.076,-0.53],[0.135,-0.447],[0.461,-0.391],[0.101,-0.252],[0.418,-1.698],[0.667,-1.562],[0.913,-1.497],[0.711,-1.517],[7.898,-13.016],[8.858,-10.967],[1.234,-1.131],[1.043,-1.21],[0.237,-0.699],[0.528,-0.595],[0.704,-0.418],[0.643,-0.718],[0.943,-1.388],[1.148,-1.244],[3.608,-3.387],[3.264,-2.871],[0.888,-0.924],[0.564,-0.525],[0.557,-0.078],[0.398,-0.3
{"v":"5.1.18","fr":29.9700012207031,"ip":0,"op":40.0000016292334,"w":864,"h":486,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Auto-traced V1-FX-029.mov Comp 1","cl":"mov","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[613,281,0],"ix":2},"a":{"a":0,"k":[432,243,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"f","pt":{"a":1,"k":[{"t":12,"s":[{"i":[[4.195,0.858],[-2.456,-0.893]],"o":[[-1.711,2.005],[2.128,-2.341]],"v":[[409,140],[410,149]],"c":true}],"h":1},{"t":13,"s":[{"i":[[3.299,2.442],[-3.715,0.662]],"o":[[-2.726,3.733],[2.368,-0.422]],"v":[[402,103],[403,113]],"c":true}],"h":1},{"t":14,"s":[{"i":[[2.148,-2.802],[0.28,1.178]],"o":[[3.269,1.91],[-0.28,-1.178]],"v":[[400,67],[404.063,66.332]],"c":true}],"h":1},{"t":15,"s":[{"i":[[0.621,-0.345],[-0.097,5.973]],"o":[[-6.17,3.428],[0.039,-2.383]],"v":[[370,62],[375,64]],"c":true}],"h":1},{"t":16,"s":[{"i":[[3.033,-1.47],[-2.185,-0.829]]
This file has been truncated, but you can view the full file.
{"v":"5.1.18","fr":29.9700012207031,"ip":0,"op":40.0000016292334,"w":864,"h":486,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Auto-traced V1-FX-015.mov","cl":"mov","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[710,259,0],"ix":2},"a":{"a":0,"k":[1400,1300,0],"ix":1},"s":{"a":0,"k":[13,13,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"f","pt":{"a":1,"k":[{"t":12,"s":[{"i":[[3.535,-6.584],[3.045,5.259],[1.108,1.359],[3.594,2.672],[4.561,1.621],[15.591,-2.557],[3.089,0.509],[2.425,1.404],[0.993,0.64],[1.266,0.766],[3.283,1.823],[0.623,0.387],[1.109,0.631],[16.271,5.521],[43.625,-2.792],[13.892,-3.728],[24.247,-18.452],[0.515,-0.386],[0.791,-0.655],[0.876,-0.775],[13.129,-18.729],[4.573,-7.658],[4.206,-8.366],[1.508,-3.17],[1.681,-1.263],[5.338,-1.202],[9.958,-4.257],[15.693,-18.062],[1.052,-1.313],[0.675,-0.965],[0.597,-0.854],[1.07,-1.834],[-0.046,-25.109],[-3.604,-14.43],[-5.406,-13.489],[-3.269,-6.301],[-2.131,-3.498
{"v":"5.1.18","fr":29.9700012207031,"ip":0,"op":40.0000016292334,"w":864,"h":486,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":1,"nm":"Auto-traced V1-FX-029.mov Comp 1","cl":"mov","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[613,281,0],"ix":2},"a":{"a":0,"k":[432,243,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"f","pt":{"a":1,"k":[{"t":12,"s":[{"i":[[4.195,0.858],[-2.456,-0.893]],"o":[[-1.711,2.005],[2.128,-2.341]],"v":[[409,140],[410,149]],"c":true}],"h":1},{"t":13,"s":[{"i":[[3.299,2.442],[-3.715,0.662]],"o":[[-2.726,3.733],[2.368,-0.422]],"v":[[402,103],[403,113]],"c":true}],"h":1},{"t":14,"s":[{"i":[[2.148,-2.802],[0.28,1.178]],"o":[[3.269,1.91],[-0.28,-1.178]],"v":[[400,67],[404.063,66.332]],"c":true}],"h":1},{"t":15,"s":[{"i":[[0.621,-0.345],[-0.097,5.973]],"o":[[-6.17,3.428],[0.039,-2.383]],"v":[[370,62],[375,64]],"c":true}],"h":1},{"t":16,"s":[{"i":[[3.033,-1.47],[-2.185,-0.829]]
#My anwer for https://www.interviewcake.com/question/ruby/permutation-palindrome
class Palindrome
def self.test_string(text)
characters = text.split(//)
odd_char = characters.select {|char| characters.count(char).odd?}.uniq
if odd_char.count == 1 or odd_char.count == 0
true
else
false