Skip to content

Instantly share code, notes, and snippets.

View tmsnvd's full-sized avatar
🎯
Focusing

Tomas Nev. tmsnvd

🎯
Focusing
  • devbridge
  • Kaunas, Lithuania
View GitHub Profile
@YannBerthelot
YannBerthelot / PlaneModel.py
Last active December 9, 2023 21:52
Plane Model Transition Function for RL Environment
import math
from math import cos, sin, ceil, floor
import numpy as np
from numpy import arcsin
from numpy.linalg import norm
from .graph_utils import plot_duo, plot_multiple, plot_xy
class FlightModel:
def __init__(self):
"""
@tmsnvd
tmsnvd / ruleset.md
Last active February 28, 2024 07:27
phpcs PHP_CodeSniffer rules list
Rule Namespace Description
Arrays.ArrayBracketSpacing /Squiz.Arrays.ArrayBracketSpacing Ensure that there are no spaces around square brackets.
Arrays.ArrayDeclaration /Squiz.Arrays.ArrayDeclaration Ensures that arrays conform to the array coding standard.
Arrays.DisallowLongArraySyntax /Generic.Arrays.DisallowLongArraySyntax Bans the use of the PHP long array syntax.
Arrays.DisallowShortArraySyntax /Generic.Arrays.DisallowShortArraySyntax Bans the use of the PHP short array syntax.
CSS.BrowserSpecificStyles /MySource.CSS.BrowserSpecificStyles Ensure that browser-specific styles are not used.
CSS.ClassDefinitionClosingBraceSpace /Squiz.CSS.ClassDefinitionClosingBraceSpace Ensure there is a single blank line after the closing brace of a class definition.
CSS.ClassDefinitionNameSpacing /Squiz.CSS.ClassDefinitionNameSpacing Ensure there are no blank lines between the names of classes/IDs.
CSS.ClassDefinitionOpeningBrace
@Arinerron
Arinerron / root.sh
Last active June 10, 2024 17:35
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@alirobe
alirobe / reclaimWindows10.ps1
Last active June 7, 2024 16:24
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@patcon
patcon / INSTALL.md
Last active July 28, 2017 10:34
Installing why3 IDE for verifying sample Ethereum contract (Ubuntu 14.04)
# install ocaml and deps
apt-get install ocaml ocaml-native-compilers
apt-get install liblablgtk2-ocaml-dev liblablgtksourceview2-ocaml-dev libocamlgraph-ocaml-dev

# install opam from binaries (ocaml package manager)
# See https://opam.ocaml.org/doc/Install.html#Binarydistribution
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin/

#### OR
@alfaproject
alfaproject / DebugSoapServer.php
Created November 12, 2014 14:07
SoapServer sub class for debugging requests and responses
<?php
class DebugSoapServer extends SoapServer
{
public function handle($request = null)
{
// check input param
if ($request === null) {
$request = file_get_contents('php://input');
}