Skip to content

Instantly share code, notes, and snippets.

View Markomas's full-sized avatar
🏸
Focusing

Markomas

🏸
Focusing
View GitHub Profile
@jbuncle
jbuncle / README.md
Last active October 23, 2020 09:14
PHP Script to upload/push a composer project to a Nexus Repository Manager (that supports composer).

Composer Nexus Upload/Push

Quick Usage

php <(curl -s https://gist.githubusercontent.com/jbuncle/8e479343cfeb785046e3c6fe1a73dcce/raw/nexus-upload.php) \
         --repository=https://example.nexus.repo.com/repository/composer-repo/ \
         --username=publisher-user \
         --password=$NEXUS_PASS \
         --version=$CI_COMMIT_TAG
@te-online
te-online / smartd-telegram-notify.md
Last active December 20, 2024 11:33
How to make smartmontools send errors to you via Telegram messenger.

###Step by step

Installing smartmontools

  1. Install smartmontools with sudo apt-get install smartmontools

Create your new bot

  1. Create a new telegram bot via the botfather (see https://core.telegram.org/bots#3-how-do-i-create-a-bot). You will need the token of the bot from botfather.
  2. Initiate a chat with your new bot.
  3. Send a GET to https://api.telegram.org/bot{YOUR_TOKEN}/getUpdates.