Skip to content

Instantly share code, notes, and snippets.

View SaeedBaig's full-sized avatar
💭
probably in front of a computer

Saeed Baig SaeedBaig

💭
probably in front of a computer
  • Sydney, Australia
View GitHub Profile
@mttaggart
mttaggart / getpass.nim
Created January 20, 2022 02:47
Nim GetPass
# With thanks to reilly!
proc getPass(prompt = "Secret: "): string =
stdout.write(prompt)
while result == "" or result[^1] notin ['\x0D', '\n']:
result.add getch()
stdout.write("*")
stdout.write("\n")
return result.strip()
@c0ldlimit
c0ldlimit / git_newrepo
Created November 16, 2012 17:14
Git: Push a new or existing repo to Github
# Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/c0ldlimit/vimcolors.git
git push -u origin master
# Push an existing repository from the command line