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 / curl.md
Created April 11, 2022 12:02 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@sahwar
sahwar / async await in chrome extension
Created April 11, 2022 12:01 — forked from BigSully/async await in chrome extension
async await in chrome extension
/**
* Usage:
* let cookies = await asyncfy(chrome.cookies.getAll)({ url })
* let tabs = await asyncfy(chrome.tabs.query)({active: true, currentWindow: true})
*
* @param fn A function that takes one or more parameters, and the last parameter is a callback which has one or more parameter. The simplest one is chrome.management.getSelf
* @returns {function(...[*]): Promise<any>} Return one value if the results array has only one element, else return the whole results array
*/
let asyncfy = fn => (...args) => {
return new Promise((resolve, reject) => {
@sahwar
sahwar / Bulgarian-entrepreneur-millionaires-in-IT-softwareNhardware-and-ISP-sectors-2020s_ideas-by-ve4ernik.txt
Last active April 11, 2022 12:32
Bulgarian-entrepreneur-millionaires-in-IT-softwareNhardware-and-ISP-sectors-2020s_ideas-by-ve4ernik.txt
11-April-2022
Written by: ve4ernik - ve4ernik2@gmail.com (my google hangouts/chat username is the same...)
http://sites.google.com/view/ve4ernik
http://facebook.com/iikurdov10
Как да станеш милионер в бранша/сектора/занаята/отрасъла "фирма за разработка, производство и продажба на технологии за битови потребители" в България през 2020-те: купуваш няколко броя работещи от тези, документираш ги и взимаш и specsheet&hardware docs&user manuals&firmware docs+code, и clean-room reverse-engineering и почваш да ги произвеждаш в България ребрандирани в ICT мини-фабрики срещу 1-8 ч./ден работа и много добри заплати и човешки условия на труд с добри benefits, и ги продаваш под български брандове с патриотични имена:
* asus vivotab note 8 + stylus(s) [but with replaceable battery & replaceable SSD & replaceable screen & repairable motherboard]
https://pastebin.com/utdszN3J
ve4ernik's FINAL (NON-)SOLUTION TO THE GLOBAL SITUATION OF BULGARIA AND OF THE WHOLE PLANET EARTH IN THE YEARS 2019-2022+ - A PERSONAL PHILOSOPHICAL OPINION
{ Получи груб и донякъде неточен автоматичен превод на този текст като го копираш целия и го поставиш в
http://translate.google.com
@sahwar
sahwar / gist:d0f50dac5146e35ca15256ca09aa6fa2
Last active February 19, 2022 05:23
original-idea-for-a-prototype-to-revolutionize-mainstream-consumers-sold-tech-for-digital-data-storage-media-devices-for-mainstream-desktop-laptop-and-smart-devices_by_ve4ernik.txt
(c) 2022 ve4ernik
The below idea is released as a royalty-free patent and the resulting hardware from the idea should be open-hardware with royalty-free corresponding firmware and software.
I and one friend of mine (who has nothing to do with this idea and is just my pal) reserve the right for each of us 2 to receive 3% of the earnings from any future sales of hardware devices resulting from the below idea and manufactured in Europe or in the USA or elsewhere.
WARNING: TOO MUCH USE, ABUSE, AND MISUSE OF SUPER-TECHNOLOGIES WILL DESTROY HUMANITY. PROCEED WITH CAUTION AND DO NOT FORGET YOUR SOCIOBIOLOGICAL ANIMAL HUMANITY AND SPIRITUALIZED MATERIAL (ALTHOUGH THAT IS ALSO EPHIMERAL ENERGY-FREQUENCY-VIBRATION BUT BIO PAIN&PLEASURE IS REAL) AND BIO-SEXUAL&BIO-REPRODUCTIVE SELF!!! ---ve4ernik
---
M.2-SSD-like HDD-microdrives-like floppy-disk-resembling USB-compatible memory-cards v8, or 2xUpTo512TiB hybrid-SSD-HDD memory-card-form-factor edition (hypothetical name of this future product!!!) [may also be attached v
@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);
@sahwar
sahwar / kek_kekeke_topkek____a-list-ofsome-p2p-filesharing-apps.txt
Created July 13, 2021 11:56
kek_kekeke_topkek____a-list-of-some-p2p-filesharing-apps.txt
https://mobile.twitter.com/IvanovKamael
~to add to ve4ernik's podcast :
KDE Connect, or if you have Internet on both devices: http://file.pizza or http://github.com/schollz/croc , or via Bluetooth or via SHAREthem/SHAREit/SHAREme (WiFi Direct file-sharing apps); f*ex&sexxx by Fram are also interesting, as is sftp (ssh filesharing protocol), ftp & ftps/ftpes...
PidginIM supports LAN p2p filesharing via RJ45 Ethernet cable via the Bonjour IM protocol, and there is also LAN p2p filesharing via LANcommunicator/LANmessenger app... Hamachi (there is a Linux frontend), Wippien, etc. provide LAN-gaming-over-the-Internet functionality.
Filesharing can also be done via Jitsi, BeeBEEP, FreeFileSync, Rocket.Chat, _TeamViewer_, RetroShare + Tor web-browser ( http://whonix.org ), Skype, Viber, Google Hangouts, Element.io/SchildiChat/other matrix.org clients, etc.
There is also p2p-filesharing DC++/ADC hubs&client apps, torrents&.magnet&.meta4&.metalink (metalinker.org & mirrorbrain.org), and the good-old (web-hosted .h
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