Create actual and temporary file on /tmp folder
Tmp file creator
wrapper functions, generate tmp file or folders
Nodejs utils including date-format, express.js and tmp file manager
Temporary file and directory creator
The tmp package with promises support and disposers.
writes data/stream/whatever to a tmp file, gets the stats, then deletes the tmp file
TypeScript definitions for tmp
Recursively mkdir, like `mkdir -p`
Generate a unique filename for use in temporary directories or caches.
Get the user home directory with fallback to the system temp directory
Read and write files atomically and reliably.
Tools for working with PGlite databases
Module to generate Windows installers for Electron apps
Temp plugin to ease use of statsig feature flags until platform feature flags are available
An ini encoder/decoder for node
Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.
The lord of tmp.
Compiles your TS app and restarts when files are modified.
A least-recently-used cache in 35 lines of code
Get a fresh tmpdir for tests
A bit of a hack to get multiple reporters working with mocha
Adapts the Node.js File System API (fs) for use with TypeScript async/await
Quickly and synchronously retrieve a temporary directory name for you to use
Yields a temporary file with given data and MIME type
DSL for temporally files read/write in the object oriented way (system tmp). Manage tmp files in the super easy way! This dsl let you have simply way to commands and create variables on file system by default in the actual systems (cross platform) tmp folder. Sometimes it can be useful for multi processing (forked processes), but the main goal is not made for shared memory management! The goal is to provide dsl for easy tmp files making on the filesystem in the object oriented way (real objects and not simply strings). By default i's always IO work and not memory, everything you save with this will be IO command and not memory
Lightway way to pull file from URL to tmp folder as a standard Ruby Tempfile
Download a file to `/tmp` dir and return the path if it looks like URL. If it looks like local path, return as it is.
Rails SVN Configuration Generator Prepares Rails project to be imported into Subversion repository. This generator adds a couple of rake commands to help with SVN. rake svn:configure -- will set svn:ignore properties in tmp/cache/, tmp/sessions/, tmp/sockets/, and log/ directories. This command must be run after project is imported into svn repository. rake svn:add -- adds new files to subversion repository.
For tests that need to modify files
A simple file-system-based cache wrapper. The main method is 'with_cache( :cache_key=>'something_unique', :timeout_seconds=>(an integer) ){ (...) }' If the given cache key exists and has not timed out, it will return the cached value If not, it will * yield to the given block * store the result of the given block in the cache with the given key * return the result of the given block Required params: * :cache_key=>'some unique string that is valid in a filename' Optional params: * :timeout_seconds => (an integer - default 3600) * :cache_dir => (an absolute path - defaults to RAILS_ROOT/tmp/cache if RAILS_ROOT is defined, otherwise /tmp/cache ) Example usage: @stats_json = Itrigga::Cache::FileCache.with_cache(:cache_key=>'admin_stats.json', :timeout_seconds=>600){ /* some expensive remote API / slow IO call here /* }
The VolatileDB gem allows you to specify a key and an action yielding a particular piece of data. This data will be stored in the /tmp folder of the file system you are currently running on. Data is accessible by key. Data will be read and written to storage using File.read() and File.open() -- that's it. It's up to the consuming application to serialize and deserialize data correctly. All VolatileDB does is push and pull data to the FS. If the underlying file supporting the data is found to be missing, it will be re-initialized. This gets to the main idea behind VolatileDB: use it to persist data that is transient and can be re-seeded periodically as conditions change.
For all applications (you are not a mouseclicker, are u?), once in a while you need to supply some configuration values to overrule the built-in defaults. The app-ctx gem does unify and organize built-in constants, config files and commandline option with a clearly defined priority, from low to high: - procedural: set from your implementation App::Config#set_default_values - YAML default values file loaded from next to the $0 script - user supplied configuration file, eg.: --config=/tmp/foo.yml - command line options and flags: --foo --bar=foo But for your application it is of no interesst from where the values are coming: command line option: "--port=1234", a user configuration file or from the applications built-in default values. Therefor +app-ctx+ combines value settings from various sources into a single configuration hash.
Sometimes, you might want your HTML to include a one-off image file that is just for one person. Making this file public may be undesireable for security reasons, or perhaps simply because it is not worth the overhead of multiple HTTP requests. This gem provides a utility method that takes a locally-saved image file, perhaps within your non-public tmp directory, encodes it as Base64, and returns an HTML <img> element with the correct data URL attributes. It is made possible by the RFC 2397 scheme, which is now fairly well supported in modern browsers.
# Single File Delivery Method for Mail gem ## Summary This gem is a delivery-method plug-in for [mail](https://github.com/mikel/mail) that delivers all mail to a single file for testing. The Mail gem already provides a file delivery-method that appends a copy of each message to a file named after each message recipient, but I want them to all go to a single file so that I can monitor them from another window with `tail -f my-file`, or `cat my-named-pipe` while I hand-test the web interface from a browser. Of course this is _in addition to_ running automated tests with Rspec and Cucumber. At some point in development, I want to actually see the pages and enter my own inputs and perhaps display the mail messages in an HTML reader. ## Synopsis Mail.defaults do delivery_method SingleFileDelivery => '/tmp/my-file.txt' end
My SAKURA gem with various utilities. This is my swiss-army knife for Linux and Mac. See README.md for amazing examples, like: richelp ubuntu # shows a richelp of my 'ubuntu' cheatsheet richelp sakura synopsis # shows a richelp of my 'sakura' cheatsheet, grepping for 'synopsis' ls | act # randomly scrambles the lines! Taken from cat/atc ;) ps | rainbow # colors all lines differently twice itunes - # lowers volume of iTunes... twice :) 10 echo Bart Simpson likes it DRY # tells you this 10 times. Very sarcastic script! seq 100 | 1suN 7 # prints every 7th element of the list zombies # prints processes that show zombies (plus funny options to kill them) find . -size +300M | xargs mvto /tmp/bigfiles/ # moves big files to that directory alias gp='never_as_root git pull' # only if u r not root it runs! tellme-time # Tells you the time with Riccardo voice in Italian. Brilliant! find-duplicates . # Tells you files with same size/MD5 in this directory facter is_google_vm # Tells if it's a GCE Virtual Machine
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.