Skip to content

Instantly share code, notes, and snippets.

View kelsS's full-sized avatar
🍵

Kelsey S. kelsS

🍵
View GitHub Profile
@kelsS
kelsS / README.rst
Created June 19, 2017 17:17 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@kelsS
kelsS / git.md
Last active July 20, 2017 15:45
Useful git commands.
@kelsS
kelsS / windows-ssh.md
Last active July 20, 2017 17:13
SSH on Windows

Kill all ssh-agents

taskkill /F /IM ssh-agent.exe /T
  • Run from Powershell

Add Git to PATH variable to use git from PS

  • From GUI
    • Open control panel
  • go to System and Security
@kelsS
kelsS / multiple_ssh_setting.md
Created July 20, 2017 17:10 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@kelsS
kelsS / example-ssh-config.md
Last active July 20, 2017 17:11
Example ssh config file for multiple SSH keys.
# Default GitHub
Host github.com
    HostName github.com
    User git
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa

# Work GitHub
Host work.github.com
@kelsS
kelsS / chmod.sh
Created July 28, 2017 21:14
Docker for Windows file permissions issue. Find all files not under current user permssions and change the files to the new user. Shell script located on host OS shared drive but executed inside Linux Container.
#!/bin/bash
# the command doing the real work has an exit status here
status=$? # save it
find . -not -uid $(stat -c "%u" .) -exec chown --reference=. {} \;
exit $status # exit with the saved status value
@kelsS
kelsS / gitbash-npm-windows.md
Last active October 7, 2024 00:45
Better way to use Git Bash and Node/NPM on Windows.
@kelsS
kelsS / fsck-command.md
Created August 10, 2017 18:42
Command to run on Linux OS for Linux virtual machine and actual Linux Host OS when file system becomes read-only

Error

  • file system is read-only

Command

  • fsck -Y /path/to/filesystem/partition

Keybase proof

I hereby claim:

  • I am kelss on github.
  • I am kelss (https://keybase.io/kelss) on keybase.
  • I have a public key ASA6pVCHvsSK0tIKWYdftx-CIcwuJ_22rM17e0DT10WOcgo

To claim this, I am signing this object: