Skip to content

Instantly share code, notes, and snippets.

View atgmello's full-sized avatar
🎯
Focusing

André Thomaz Gandolpho de Mello atgmello

🎯
Focusing
View GitHub Profile
@amancioandre
amancioandre / aliases.md
Last active March 14, 2020 00:58
SSH Aliases and Peaceful Connection

SSH ALIASES AND PEACEFUL CONNECTION

If you want a smooth ride on the cloud paradise you should leave your keys in the secret stash! Well, jokes aside, it seems we will be coming back and forth to our EC2 instances and, following good examples from @atgmello and @gabfr, I've come up with a simple step-by-step procedure to easy the journey whenever we want to rapidly connect to our instances.

After you set up your permissions with:

chmod 400 <your-pem-path>
@ktaletsk
ktaletsk / JLab_extensions.md
Last active March 12, 2022 21:28
JupyterLab extensions
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active July 19, 2024 18:06
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@a-yee
a-yee / nvimCondaEnv.txt
Last active February 21, 2024 01:23
Setting up neovim python3 environment using conda
# bash commands
# lists all of your conda env
conda env list
# Create a conda env w/ python3.5
# -n sets the name for your new env. I call it neovim here
conda create -n neovim python=3.5
# add neovim for python3 to the env
# specify version you want here, 0.1.13 up to date ver atm
@rawsh
rawsh / .Xresources
Last active May 26, 2024 03:59
.Xresources theme for rofi and terminal
! *----------------------------*
! | Dotfiles - .Xresources |
! *----------------------------*
! This files contains configuration for:
! * terminal colours
! * urxvt
! * rofi
@oliveratgithub
oliveratgithub / made-with-love.html
Last active June 18, 2024 20:50
Various snippets to add "Made with love" to your website using HTML, CSS and JavaScript
<!-- Example #1 - no styling -->
Made with ❤ in Switzerland
Made with ♥ in Switzerland
Made with ♡ in Switzerland
Made with ❤️ in Switzerland
Made with ♥️ in Switzerland
<!-- Example #2 - inline-styled ❤ -->
Made with <span style="color: #e25555;">&#9829;</span> in Switzerland
Made with <span style="color: #e25555;">&hearts;</span> in Switzerland
@YuMS
YuMS / update-git.sh
Created June 29, 2016 09:28
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y
@subfuzion
subfuzion / curl.md
Last active July 18, 2024 17:12
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@jakevdp
jakevdp / sklearn_doc.py
Created September 30, 2012 19:56
Scikit-learn Documentation Template
"""
This file has an example function, with a documentation string which should
serve as a template for scikit-learn docstrings.
"""
def sklearn_template(X, y, a=1, flag=True, f=None, **kwargs):
"""This is where a short one-line description goes
This is where a longer, multi-line description goes. It's not
required, but might be helpful if more information is needed.
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a