Skip to content

Instantly share code, notes, and snippets.

View iamrony777's full-sized avatar
🍥
Dattebayo!

Ronit Sarkar iamrony777

🍥
Dattebayo!
View GitHub Profile
@iamrony777
iamrony777 / README.md
Created January 8, 2022 07:28 — forked from magnetikonline/README.md
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

Assignment
Assign value to variable if variable is not already set, value is returned.

Combine with a : no-op to discard/ignore return value.
${variable="value"}
: ${variable="value"}
@iamrony777
iamrony777 / latest-commit.json
Created December 29, 2021 09:00
Gist update with API call from a Bash script
{
"subject": "feat(chisel): new bricks textures",
"author": "Léa Gris",
"date": "Fri, 7 Jun 2019 11:01:41 +0200"
}
@iamrony777
iamrony777 / sync_gdrive.py
Created December 24, 2021 06:55 — forked from markuscraig/sync_gdrive.py
Rclone + Google Drive sync script
#!/usr/bin/env python
import os
import shutil
import subprocess
# global variables
SYNC_DIRS = [
{
'src': "/Volumes/PhotoArchive/Lightroom",
@iamrony777
iamrony777 / bot.rb
Created December 21, 2021 14:35 — forked from dideler/bot.rb
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#