# Download prebuilt ruby
curl -LO https://github.com/ruby/ruby.wasm/releases/download/2022-08-09-a/ruby-head-wasm32-unknown-wasi-full.tar.gz
tar xfz ruby-head-wasm32-unknown-wasi-full.tar.gz
# Install the same version of native ruby to avoid bundler version mismatch in "BUNDLED WITH" of Gemfile.lock
rbenv install 3.2.0-dev
rbenv local 3.2.0-dev
This file contains 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 python | |
"""Check the digests of pickles passed through a stream. | |
""" | |
#end_pymotw_header | |
import hashlib | |
import hmac | |
try: | |
import cPickle as pickle | |
except: |
This file contains 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 "socket" | |
class IRC | |
def initialize(info) | |
@server = info[:server] | |
@port = info[:port] || 6667 | |
@password = info[:password] | |
@nick = info[:nick] | |
@channel = info[:channel] |
This file contains 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 'csv' | |
installed_tools = %x(pacman -Sl blackarch).split("\n").grep(/\[installed\]/) | |
tools_list = [] | |
installed_tools.each do |line| | |
_repo, tool, _version, _status = line.split(' ', 4) | |
description = %x(pacman -Qs #{tool}).split("\n")[1].strip |
This file contains 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 | |
################################################################################ | |
# ____ _ __ # | |
# ___ __ __/ / /__ ___ ______ ______(_) /___ __ # | |
# / _ \/ // / / (_-</ -_) __/ // / __/ / __/ // / # | |
# /_//_/\_,_/_/_/___/\__/\__/\_,_/_/ /_/\__/\_, / # | |
# /___/ team # | |
# # | |
# ssl-crack.sh - wordlist-based encrypted SSL and SSH Private Key Passphase # | |
# Cracker # |
This file contains 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
host_addr = %r{Host: (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})} | |
open_port = %r{([0-9]+)/open/} | |
ports = {} | |
ARGV.each do |f| | |
File.foreach(f) do |l| | |
l.scan(host_addr) do |a| | |
l.scan(open_port) do |p| | |
ports[a.first] = [] unless ports.key?(a.first) |
This file contains 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 'rdoc' | |
converter = RDoc::Markup::ToMarkdown.new | |
rdoc = File.read(ARGV[0] || 'README.rdoc') | |
puts converter.convert(rdoc) | |
# ruby rdoc2md.rb > README.md | |
# ruby rdoc2md.rb ABC.rdoc > abc.md |
This file contains 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 'bindata' | |
require 'benchmark' | |
require 'win32/registry' | |
require 'io/console' | |
class GGPK | |
class UTF16String < BinData::String | |
def snapshot | |
super.force_encoding('UTF-16LE') | |
end |
This gist will show the support of BiDirectional text in the terminal emulators and console programs. You can read more about the standardization efforts at the dedicated page of FreeDesktop Terminal BiDi working group.
Logical Order | ◀ ◀ ◀ RTL | LTR ▶ ▶ ▶ |
---|---|---|
WHAT IS UNICODE؟ in arabic | in arabic ؟EDOCINU SI TAHW | ؟EDOCINU SI TAHW in arabic |
ما هو الترميز الموحد يونيكود؟ in Arabic | ما هو الترميز الموحد يونيكود؟ in Arabic |
OlderNewer