Skip to content

Instantly share code, notes, and snippets.

@velizarn
velizarn / sendgrid.bash
Last active March 12, 2024 13:13
Send email from bash script by using SendGrid API
#!/bin/bash
SENDGRID_API_KEY=""
EMAIL_TO=""
FROM_EMAIL=""
FROM_NAME=""
SUBJECT=""
bodyHTML="<p>Email body goes here</p>"
@Sulter
Sulter / readme
Last active January 14, 2023 17:00
screen+zmodem sending data
lrzsz package needed (debian) which include sz and rz
Sending from remote -> local
* screen into remote
* ctrl-a : zmodem catch
* 'sz filename' on the remote (in terminal)
Sending from local -> remote
* screen into remote
* ctrl-a : zmodem catch
@simonw
simonw / how-to.md
Last active July 7, 2024 18:45
How to create a tarball of a git repository using "git archive"
@mariozig
mariozig / migrate_repo.sh
Last active May 26, 2024 20:57
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# Assume we are in your home directory
cd ~/
# Clone the repo from GitLab using the `--mirror` option
$ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git
# Change into newly created repo directory
$ cd ~/my-repo.git
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks.