Skip to content

Instantly share code, notes, and snippets.

View sahwar's full-sized avatar
💭
https://twitter.com/ve4ernik

sahwar

💭
https://twitter.com/ve4ernik
View GitHub Profile
@sahwar
sahwar / README.md
Created January 3, 2022 01:15 — forked from dhondta/README.md
Tinyscript steganography tool implementing the Pixel Indicator Technique

StegoPIT

This Tinyscript-based tool allows to apply steganography based on PIT (Pixel Indicator Technique) in order to retrieve hidden data from an image.

$ pip install tinyscript
$ wget https://gist.githubusercontent.com/dhondta/30abb35bb8ee86109d17437b11a1477a/raw/stegopit.py && chmod +x stegopit.py && sudo mv stegopit.py /usr/bin/stegopit

@sahwar
sahwar / sms.py
Created September 25, 2021 12:24 — forked from ikazoy/sms.py
Sending / Receiving SMS using Raspberry Pi, Soracom Air SIM and ABIT AK-020
# coding: utf-8
'''Sending / Receiving SMS using Raspberry Pi, Soracom Air SIM and ABIT AK-020
'''
import time
import serial
import re
let temp1;
console.log(1);
fetch(url)
.then((res) => res.blob())
.then((data) => {
let metadata = {
type: "image/png",
};
temp1 = new File([data], "test.png", metadata);
My thoughts on writing tiny reusable modules that each do just one
thing. These notes were adapted from an email I recently sent.
***
If some component is reusable enough to be a module then the
maintenance gains are really worth the overhead of making a new
project with separate tests and docs. Splitting out a reusable
component might take 5 or 10 minutes to set up all the package
overhead but it's much easier to test and document a piece that is
@sahwar
sahwar / catbox
Created February 22, 2021 05:03 — forked from MineBartekSA/catbox
CatBox - A implementation of CatBox.moe API in Bash
#!/bin/bash
#
# Catbox v1.4
# A implelemtation of CatBox.moe API in Bash
# Author: MineBartekSA
# Gist: https://gist.github.com/MineBartekSA/1d42d6973ddafb82793fd49b4fb06591
#
curl --version >> /dev/null
if [ $? -ne 0 ]
@sahwar
sahwar / cam2gif.json
Created December 10, 2020 14:34 — forked from forresto/cam2gif.json
meemoo app: webcam to animated gif to imgur
{
"info": {
"title": "cam to gif",
"author": "forresto",
"description": "webcam to animated gif",
"url": "cam2gif"
},
"nodes": [
{
"src": "http://forresto.github.com/meemoo-camcanvas/onionskin.html",
@sahwar
sahwar / delete_all_tweets.py
Created June 4, 2020 02:46 — forked from davej/delete_all_tweets.py
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1)
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
$devid = "*DEV_4236"
$status = devcon status $devid | Select-String "running"
if($status -eq $null)
{
write-host "Enabling wireless"
devcon enable $devid
}
else
@sahwar
sahwar / data-markdown.user.js
Created June 4, 2020 02:42 — forked from paulirish/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.