mkdir test_rubysl && cd test_rubysl
echo "source 'https://rubygems.org/'" > Gemfile
bundle install
echo "p require 'bigdecimal'" > test.rb
bundle exec ruby test.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(unused_variables)] | |
#![allow(unused_imports)] | |
use std::env; | |
use std::process; | |
use std::thread; | |
use std::io::{self, Read, Write, Error}; | |
use std::net::TcpStream; | |
use std::net::TcpListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ili9341.h" | |
volatile uint16_t LCD_W=ILI9341_TFTWIDTH; | |
volatile uint16_t LCD_H=ILI9341_TFTHEIGHT; | |
void ili9341_hard_init(void)//init hardware | |
{ | |
rstddr=0xFF;//output for reset | |
rstport |=(1<<rst);//pull high for normal operation | |
controlddr|=(1<<dc);//D/C as output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Author: postmodern | |
# Description: | |
# Rips a DVD to a H.264 MKV file, with chapters and tags. Ignores any | |
# bad blocks or sectors on the DVD. | |
# Dependencies: | |
# * gddrescue | |
# * handbrake-cli | |
# * mkvtoolnix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# usage: git filter-branch --force --prune-empty --index-filter "$(cat git_file_filter.sh)" --tag-name-filter cat -- --all | |
# | |
shopt -s globstar | |
whitelist=( | |
# files and globs go here | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'optparse' | |
options = OptionParser.new("usage: #{$0}") do |opts| | |
opts.on('-f','--file FILE','loads a file') do |file| | |
puts "loading file #{file}" | |
opts.separator "#{file} options:" | |
opts.on('-c','--custom') do | |
puts "custom option defined by file #{file}" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'curses' | |
Curses.init_screen | |
output = Curses::Window.new(Curses.lines - 1, Curses.cols, 0, 0) | |
output.setpos(0,0) | |
input = Curses::Window.new(1, Curses.cols, Curses.lines - 1, 0) | |
input.setpos(0,0) | |
loop do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'ronin/support' | |
require 'ronin/asm' | |
include Ronin::Network::TCP | |
payload = Ronin::ASM::Shellcode.new do | |
mov 0xaaaaaaaa, eax | |
ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'ronin/network/tcp' | |
require 'ronin/ui/output/helpers' | |
require 'combinatorics' | |
include Ronin::Network::TCP, | |
Ronin::UI::Output::Helpers | |
hosts = %w[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# $ gem install ronin-support | |
# $ python compression.py & | |
# $ ruby compression.rb | |
# | |
require 'rubygems' | |
require 'ronin/formatting/binary' | |
require 'ronin/network/tcp' | |
require 'hexdump' |