All Projects → doawoo → Teex

doawoo / Teex

Licence: mit
Use Elixir like a scripting language, across your system

Programming Languages

elixir
2628 projects
erlang
1774 projects
scripting
82 projects

Labels

Projects that are alternatives of or similar to Teex

remarkable-uuuflash
uuu scripts for recovery console and flashing
Stars: ✭ 31 (-88.17%)
Mutual labels:  tools
minetorch
Build deep learning applications in a new and easy way.
Stars: ✭ 157 (-40.08%)
Mutual labels:  tools
WDIR
Good resources about web security that I have read.
Stars: ✭ 14 (-94.66%)
Mutual labels:  tools
solidus dev support
A collection of tools for developing Solidus extensions.
Stars: ✭ 14 (-94.66%)
Mutual labels:  tools
awesome
my personal collection of awesome projects, links, books.
Stars: ✭ 16 (-93.89%)
Mutual labels:  tools
Front-end-tutorial
🐼 最全的资源教程-前端涉及的所有知识体系,并在 Nice Front-end Tutorial 持续更新;
Stars: ✭ 1,655 (+531.68%)
Mutual labels:  tools
lobe
Lobe is the world's first AI paralegal.
Stars: ✭ 22 (-91.6%)
Mutual labels:  tools
Dumpall
一款信息泄漏利用工具,适用于.git/.svn源代码泄漏和.DS_Store泄漏
Stars: ✭ 250 (-4.58%)
Mutual labels:  tools
redis-inventory
CLI tool to see redis memory usage by keys in hierarchical way. Think of disk inventory but for redis.
Stars: ✭ 163 (-37.79%)
Mutual labels:  tools
propel
⛵ Keep your favorite starter kits just a command away
Stars: ✭ 22 (-91.6%)
Mutual labels:  tools
Eurge
Eurge js 脚本代码
Stars: ✭ 14 (-94.66%)
Mutual labels:  tools
Awesome-Deepfakes-Detection
A list of tools, papers and code related to Deepfake Detection.
Stars: ✭ 30 (-88.55%)
Mutual labels:  tools
InfosecHouse
Infosec resource center for offensive and defensive security operations.
Stars: ✭ 61 (-76.72%)
Mutual labels:  tools
tools-install
Setup scripts for various dev tools, utilities, SDKs and CLI stuff
Stars: ✭ 13 (-95.04%)
Mutual labels:  tools
HOUDINI
Hundreds of Offensive and Useful Docker Images for Network Intrusion. The name says it all.
Stars: ✭ 791 (+201.91%)
Mutual labels:  tools
vistir
Setup / utilities which most projects eventually need
Stars: ✭ 30 (-88.55%)
Mutual labels:  tools
ants
Awesome Networking Tools Sandbox
Stars: ✭ 21 (-91.98%)
Mutual labels:  tools
Httptoolkit Desktop
Electron wrapper to build and distribute HTTP Toolkit for the desktop
Stars: ✭ 260 (-0.76%)
Mutual labels:  tools
Networkcaptureself
基于OKHttp的实用抓包小工具,你值得拥有
Stars: ✭ 255 (-2.67%)
Mutual labels:  tools
encryptlab
🔑 Comprehensive (and free) list of encryption and decryption in Node.js.
Stars: ✭ 80 (-69.47%)
Mutual labels:  tools

Teex

Elixir Escript Build Test Hex Teex HexDocs Teex

Use Elixir like a scripting language, across your system

HEY THERE! This is a very hacky and experimental tool that solves a weird problem. I really wanted to be able to use Elixir like python all over my system environment. But in order to use any of the Hex packages, I needed a proper Mix project. Teex negates that by shimming into your IEx sessions, and injecting the code paths of libraries you install inside your workspaces.

This has no tests yet. This is basically in-dev. Here be dragons!

Contributions appreciated :D

FYI: This was renamed from "Tex" to avoid confusion with TeX -- This project is now called Teex! The GIFs below might still mention tex -- just replace that in your commands with teex

How To Use

Install

Install the escript using mix: mix escript.install hex teex

IMPORTANT: Ensure you add your escript directory to your PATH otherwise you won't be able to use the teex command from anywhere!

(If you're using asdf-vm it may be something like "/home/USER/.asdf/installs/elixir/VERSION/.mix/escripts/", you'll probably want to set your global elixir properly before installing teex)

Run the teex init command

init

Do what it says! Paste the line it generates between the lightbulbs into your ~/.iex.exs file!

It should look something like: c "/path/to/your/home/.teex.exs"

Create A Workspace

workspace

Install A Hex Library

install

Load Your Workspace!

usage

You can load any workspace using Teex.workspace/1 with a string of your workspace name. It will load up the code paths for all your installed libraries in that workspace!

Advanced Script Usage!

You can even use Elixir and Teex together to create useful scripts that are usable anywhere on your system.

Here's an example script that loads a workspace, uses Jason, and prints the string to STDOUT

#! iex

## ^ include the above so you can simply do:
## ./my_script.exs

## Load your teex shim file
Code.require_file "/home/aaron/.teex.exs"

## Pick your teex workspace
## Let's assume this workspace has Jason installed in it
Teex.workspace "test"

## Do some stuff!
## Let's encode a map to JSON and output it to STDOUT

## Encode using Jason
obj_string = Jason.encode!(%{
    "a" => 1,
    "b" => false,
    "c" => %{
      "nested" => "map"
    }
})

# Write to stdout!
IO.puts(obj_string)

# Exit :)
exit(0)

You can use the above script simply by running:

chmod +x my_script.exs
./my_script.exs > output.json

Command List

teex init - Creates the initial .teex.exs shim file to be used in IEx sessions.

teex workspace create my_workspace - Creates a workspace

teex workspace destroy my_workspace - Destroy a workspace (this can't be undone!)

teex install [hex_lib_name] 1.0.0 --workspace my_workspace - Install a Hex.pm library by name into a workspace at the specified version

teex uninstall [hex_lib_name] --workspace my_workspace - Remove a Hex.pm library by name from a workspace

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].