Skip to content

Instantly share code, notes, and snippets.

View techsd's full-sized avatar
:octocat:
life is cool

Dmytro techsd

:octocat:
life is cool
View GitHub Profile
@techsd
techsd / ACCIF405.h
Created May 18, 2024 15:38 — forked from jesuslg123/ACCIF405.h
Acci FC - Target files
/*
* This file is part of Betaflight.
*
* Betaflight is free software. You can redistribute this software
* and/or modify this software under the terms of the GNU General
* Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later
* version.
*
* Betaflight is distributed in the hope that it will be useful,
@techsd
techsd / kali-archive-keyring.sh
Created February 24, 2024 13:03 — forked from FrangaL/kali-archive-keyring.sh
Download the Kali archive keyring
#!/bin/bash
set -e
## Alternative 1
# Key server
alternative1() {
KEY_SRV=${KEY_SRV:-"keyserver.ubuntu.com"}
#GPG_KEY="7D8D0BF6"
GPG_KEY="ED444FF07D8D0BF6"
@techsd
techsd / jksimple.py
Created January 18, 2024 16:33 — forked from alferz/jksimple.py
Simple Python Script to Query a JKBMS (JiKong Battery Management System) over TTL / RS-485
# This script reads the data from a JK BMS over USB-TTL and formats
# Credit to https://github.com/PurpleAlien/jk-bms_grafana
# Instructions:
# Change Serial port on line 17 and run with python3+. Dumps register 0x83 (total pack voltage) to verify BMS communication.
import time
import sys, os, io
import struct
#!/bin/bash
#TS3 Server crack install script
#Written by: Supervisor for www.r4p3.net
#Configuration settings. Change those to your needs or leave them as provided for standart use.
timeout="5" #Timeout for update check in s
COLOR1='\033[0;32m' #green color
COLOR2='\033[0;31m' #red color
NC='\033[0m' #no color
check_for_updates="1" #put 1=YES or 0=NO to check for updates
@techsd
techsd / installenv
Created January 18, 2024 14:46 — forked from LuisHCK/installenv
LuisHCK's automatic enviroment installer
#!/bin/bash
echo " $(tput setaf 2)Welcome to LuisHCK's automatic enviroment installer"
echo "Updating system"
sudo apt-get update
sudo apt-get -y upgrade
echo "================================================"
echo "Get ADDI"
wget -o ~/addi https://gist.githubusercontent.com/LuisHCK/023fcef876e14f823e758b9774f67d62/raw/accec4053c88a43b618367c0dfac58963994e3c3/addi
@techsd
techsd / ubuntu14.04-command-line-install-android-sdk
Created January 18, 2024 14:45 — forked from LuisHCK/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@techsd
techsd / setup_server.sh
Created January 18, 2024 14:45 — forked from LuisHCK/setup_server.sh
Setup ubuntu server + nodejs + nginx + pm2 + certbot
# Install nodejs
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn
yarn --version
sudo cp /etc/network/interfaces /etc/network/interfacesoriginal
sudp rm /etc/network/interfaces
sudo nano /etc/network/interfaces
----------------------------------
COPY
----------------------------------
auto lo
iface lo inet loopback
auto eth0
@techsd
techsd / stm_native_bootloader.md
Created September 27, 2023 09:23 — forked from fboris/stm_native_bootloader.md
dfu-util command for uploading firmware on ST devices
  1. Let device to enter dfu-mode. And use dfu-util to get available devices

sudo dfu-util -l

It will show like...

Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=3, name="@Device Feature/0xFFFF0000/01*004 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=2, name="@OTP Memory /0x1FFF7800/01*512 g,01*016 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=1, name="@Option Bytes  /0x1FFFC000/01*016 g", serial="3262355B3231"
@techsd
techsd / 1_output.md
Created September 3, 2023 08:35 — forked from casimir/1_output.md
AES-256 examples

Informations

cipher key: 0123456789abcdef0123456789abcdef
IV: 0123456789ABCDEF
padding character: fs (ASCII=34 -> FILE SEPARATOR)

Expected output

secret message: this information is confidential, for your eyes only