Skip to content

Instantly share code, notes, and snippets.

View morsine's full-sized avatar
:electron:
Life's for the living, I won't be giving up.

Môrsíne morsine

:electron:
Life's for the living, I won't be giving up.
View GitHub Profile
# example smsd config file
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
#!/usr/bin/env python3
# this is an example python code to be used as an eventhandler for smstools (smsd) under linux
# script output will be logged along with smsd enteries under smsd.log
import sys
def extract_number(file_path):
phone_number = None
with open(file_path, 'r', errors='ignore', encoding='iso-8859-1') as file:
@morsine
morsine / commands.sh
Last active November 17, 2023 17:05
mifare classic cracker install - debian
#switch to root
sudo -i
#install
apt-get install libglib2.0-dev libnfc-dev autoconf libtool libusb-dev libpcsclite-dev build-essential unzip -y
#download and compile
wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.7.1/libnfc-1.7.1.tar.bz2
tar -jxvf libnfc-1.7.1.tar.bz2
cd libnfc-1.7.1
autoreconf -vis
./configure --with-drivers=all --sysconfdir=/etc --prefix=/usr
@morsine
morsine / buskool_API_Server.py
Last active July 5, 2023 12:33
Buskool weight API Server
# hey there! this is an easy and smiple API server to provide the weight of a buskool.
# You'll need an ESP micro controller running JEELABS's esp-link connected to the buskool monitor's RS232 with RS232 <-> TTL converter
# سرور ای پی آی جهت استفاده با نمایشگر و تبدیل آر اس 232 به شبکه
# Coded by Morsine (https://github.com/morsine)
from flask import Flask, jsonify, request
import socket
from threading import Thread
import re
s = socket .socket(
@morsine
morsine / MaliGPUMinerBuild
Created May 15, 2021 22:15
How to install MALI GPU Miner
# Run the following
apt-get install -y make build-essential software-properties-common curl wget git g++ binutils file zlib1g-dev libedit-dev automake autoconf dh-autoreconf opencl-headers libcurl4-openssl-dev pkg-config libtool libncurses5-dev ocl-icd-dev ocl-icd-opencl-dev ocl-icd-libopencl1 libpci-dev libvdpau1 libjansson* -y
apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ libgmp-dev libncurses5-dev libtool opencl-headers mali-fbdev -y
# I know some of them are duplicates, i'm lazy
git clone https://github.com/hominoids/sgminer-arm
cd sgminer-arm
git submodule init
git submodule update
autoreconf -fi
CFLAGS="-Os -Wall -march=native -std=gnu99 -mfpu=neon" LDFLAGS="-L/usr/lib/arm_compute-v18.03-bin-linux/lib/linux-armv7a-neon-cl" ./configure --disable-adl --disable-adl-checks
@morsine
morsine / freepbxarmbian
Created May 10, 2021 16:30
How to install FreePBX 15 with Asterisk 16 on Armbian or Orange Pi
# Note: These steps worked for me, but it might not work for you. This requires changing some stuff which might break your system.
# I am not responsible for anything
# be the root user!
sudo -i
# change the sources.list file contents
# open it and remove everything inside
nano /etc/apt/sources.list
@morsine
morsine / blink_ip.pl
Last active May 26, 2016 11:23 — forked from chrismeyersfsu/blink_ip.pl
Orange Pi Blink IP Address