
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Termit is an easy way to translate stuff in your terminal. You can check out its node.js npm version normit.
gem install termit
termit 'source_language' 'target_language' 'text'
Example:
termit en es "hey cowboy where is your horse?"
=> "Hey vaquero dónde está tu caballo?"
termit fr en "qui est votre papa?"
=> "Who's Your Daddy?"
Quotation marks are not necessary for text data input:
termit fr ru qui est votre papa
=> "Кто твой папочка?"
Specify a -t (talk) flag to use speech synthesis (requires mpg123):
termit en fr "hey cowboy where is your horse?" -t
=> "Hey cowboy où est votre cheval ?" # and a french voice says something about a horse
You can use termit as a speech synthesizer of any supported language without having to translate anything:
termit en en "hold your horses cowboy !" -t
=> "hold your horses cowboy !" # and an english voice asks you to hold on
Idea by Nedomas. See and hear your messages translated to target lang every time you commit. You can do this two ways: overriding the git
command, and using a post-commit hook in git.
git
command (zsh only)In ~/.zshrc
export LANG=es
git(){[[ "$@" = commit\ -m* ]]&&termit en $LANG ${${@:$#}//./} -t;command git $@}
I am no shell ninja so if you know how to make it work in bash then please submit a PR.
Add a file named post-commit
to your project's .git/hooks
directory, with this in it:
termit en es "`git log -1 --pretty=format:'%s'`" -t
Remember to switch the languages according to your preference.
If you want this to be in every one of your git repositories, see this Stack Overflow answer.
To find all available language codes visit https://msdn.microsoft.com/en-us/library/hh456380.aspx
Works with Ruby 1.9.2 and higher.
To use speech synthesis you need to have mpg123 installed.
For Ubuntu:
sudo apt-get install mpg123
For MacOSX:
brew install mpg123
It was rewritten to work with Bing Translator . Thanks to Ragnarson for supporting it !
Termit works by scraping the private APIs and is therefore not recommended for use in production or on a large scale.
FAQs
Unknown package
We found that termit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.