Skip to content

Instantly share code, notes, and snippets.

View vitouXY's full-sized avatar
💭
This account has been flagged. :(

Vito u XY vitouXY

💭
This account has been flagged. :(
View GitHub Profile
@vitouXY
vitouXY / mastodon_appbot_auth.sh
Last active November 6, 2022 03:25
Mastodon - Client Access Token - App & Bot
grep -v '^#' ${0}
exit 2
# https://docs.joinmastodon.org/client/token/#example-authorization-code-flow
# https://tinysubversions.com/notes/mastodon-bot/
## --- STEP 01/06 - get client_id and client_secret
MSTDN_SERVER=mastodon.world
@vitouXY
vitouXY / SSP.py
Last active June 6, 2023 02:53
Simple Stock Prediction
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# vim: set fileencoding=utf-8 :
# https://github.com/lussierc/StockSwingPredictor
# https://github.com/the-tyler/Stock_Price_Prediction_LSTM
# https://github.com/almutwakel/swing-trader
import sys
import numpy as np
@vitouXY
vitouXY / wpa-attack.md
Created March 8, 2021 17:44
Evil Twin | WPS-PBC

Evil Twin / WPS-PBC

Interfaces

find /sys/class/net/ -type l -print | grep -v "/lo$"

Variables

IFACE=wlan0
IFACEM=${IFACE:?}mon
@vitouXY
vitouXY / ppp.md
Created March 8, 2021 17:41
Modem 3G - PPP - USB Modeswitch

PPP

find /dev/ | grep ttyUSB
nano /etc/ppp/options-e303_USB0
/dev/ttyUSB0
#460800
@vitouXY
vitouXY / GTree.md
Last active March 8, 2021 04:34
! Raspberry Pi Zero W | LfS
#!/bin/sh

type wget || exit 1
type grep || exit 1
type sed || exit 1
type cut || exit 1
type touch || exit 1

#REPO="<User>/<Repo>"
--- linux-rpi-4.19.81.orig/drivers/net/wireless/broadcom/brcm80211/brcmfmac/Makefile
+++ linux-rpi-4.19.81/drivers/net/wireless/broadcom/brcm80211/brcmfmac/Makefile
@@ -19,6 +19,8 @@
-Idrivers/net/wireless/broadcom/brcm80211/brcmfmac \
-Idrivers/net/wireless/broadcom/brcm80211/include
+ccflags-$(CONFIG_BRCMDBG) += -DDEBUG
+
obj-$(CONFIG_BRCMFMAC) += brcmfmac.o
brcmfmac-objs += \
@vitouXY
vitouXY / Configure-Ethernet-RNDIS-PiZero-connection.ps1
Last active May 22, 2023 18:14
Raspberry Pi Zero W - USB Gadget (libcomposite) - TinyCoreLinux (piCore)
# copyright Threadsec Inc
# This script auto-configure and ssh auto-connect to RPi ZERO Ethernet gadget VID:0x1d6b PID:0x0137
# This script require admin right to access to adapter conf.
# https://threadsec.wordpress.com/raspberry-pi-zero-usb-composite-gadget/
#
# Edit $user=""
# Windows 10 : As Admin, run:
# powershell -ep bypass -file Configure-Ethernet-RNDIS-PiZero-connection.ps1
#
Clear-Host
# https://github.com/nopmop/picore-headless-setup/raw/master/picore-headless-setup.sh
# Raspberry Pi Zero W
# TinyCoreLinux
# Headless SetUp
# D0N'T RUN THI5 !!!
exit 2
@vitouXY
vitouXY / monitor_mod3.py
Last active May 2, 2020 19:06
0.0.1-04.27.2020-raw
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# vim: set fileencoding=utf-8 :
"""
piMenu
1.3" OLED Display HAT for Raspberry Pi by Waveshare
128x64
Driver: SH1106
@vitouXY
vitouXY / SimpleHTTPServerWithUpload.py
Last active May 19, 2020 02:10
Simple HTTP Server With Upload. /HTTPS /Authentication
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8 :
from __future__ import print_function, unicode_literals
"""
Simple HTTP Server With Upload ...and SSL ... and Authentication.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.