Skip to content

Instantly share code, notes, and snippets.

View AurelienLoyer's full-sized avatar
🔥
👨🏻‍💻

Aurélien Loyer AurelienLoyer

🔥
👨🏻‍💻
View GitHub Profile
@ethaniel
ethaniel / sms-to-telegram.md
Last active April 9, 2024 03:44
HOWTO: Receive SMS via 4G/LTE Huawei stick on Raspberry Pi 4 and forward them via Telegram

HOWTO: Receive SMS via 4G/LTE Huawei stick on Raspberry Pi 4 and forward them via Telegram

I live abroad and have only 1 sim card slot in my phone. It holds the SIM card of the country that I am in right now. But I also have another SIM card from my home country which receives my banking SMS codes. I can't afford to lose the "home" SIM card, so I decided to keep it in my house and forward the SMS messages to my main phone and computer via Telegram (just like Whatsapp, but so much better).

I also made a choice to use a 4G/LTE stick instead of 3G, because the 3G signal in my area is getting worse in worse due to operators upgrading their equipment.

Prerequisites

  1. Raspberry Pi 4
  2. Huawei E8372 (but can be any similar)

Step 1 - Get the Huawei card to work properly with Raspberry

@alexandrevilain
alexandrevilain / api.md
Last active July 10, 2024 22:35
Livebox API
@akraxx
akraxx / kong.md
Last active August 31, 2021 14:24

Mockbin

docker run -d --name mockbin_redis redis
docker run -d --link mockbin_redis:redis --name mockbin mashape/mockbin

Cassandra database

docker run -d --name kong-database \
              -p 9042:9042 \
@RemiEven
RemiEven / fake_ci.sh
Created July 6, 2016 10:36
Fake continuous integration
#!/bin/bash
# Rémi Even, 06/07/2016
# This script provides a "fake" continuous integration. Rather than using (web)hooks, the target repo fetches the last commit id from origin. If it is different than the local one, it stops the service, updates the local files and restarts the service.
function stopService {
# Write the code to stop your service here
echo "Stopping service"
}
@pathikrit
pathikrit / git-standup
Created June 22, 2015 22:32
git daily standup
log --all --no-merges --graph --date=relative --committer=$(git config --get user.email) --pretty=format:'%C(cyan) %ad %C(yellow)%h %Creset %s %Cgreen%d' --since="$(if [[ "Mon" == "$(date +%a)" ]]; then echo "last friday"; else echo "yesterday"; fi)"