A micro-module for safely replacing a file.
Prevent defined property getters from throwing errors
Helper function to replace supers
Give a regex, get a robust predicate function that tests it against a string.
`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable
Replace escaped characters in HTML class names and CSS selectors.
Push an array of items into an array, while being robust against prototype modification
Safer Node.js Buffer API
mdast utility to find and replace text in a tree
detect possibly catastrophic, exponential-time regular expressions
Replace or remove multiple items in an array.
Replace strings in files while bundling
Replace JSX attribute value
Modern Buffer API polyfill without footguns
A flexible way to handle safe area, also works on Android and web.
Type-safe search params state manager for React - Like useState, but stored in the URL query string
Replaces a file extension with another one.
Fault-tolerant CSS parser for PostCSS
Types and related utilities for TypeScript
Replace user home in a string with another string. Useful for tildifying a path.
A simple utility to quickly replace text in one or more files.
A deep deletion module for node (like `rm -rf`)
detect possibly catastrophic, exponential-time regular expressions
Deterministic and safely JSON.stringify to quickly serialize JavaScript objects
replace utf-8 characters to sjis safe.
Overwrite/replace files in a safe way with backups
SynCache stores cached objects in a Hash that is protected by an advanced two-level locking mechanism which ensures that: * Multiple threads can add and fetch objects in parallel. * While one thread is working on a cache entry, other threads can access the rest of the cache with no waiting on the global lock, no race conditions nor deadlock or livelock situations. * While one thread is performing a long and resource-intensive operation, other threads that request the same data will be put on hold, and as soon as the first thread completes the operation, the result will be returned to all threads.
Tool to evaluate a boolean expression given with data to replace in it, in a safe way
Industrial-strength scaffolding for Ruby on Rails application development. A drop-in replacement for the scaffold generator that produces production-ready controllers that are safe from state-changing HTTP GET requests and that have streamlined URLs.
Intented to be a thread-safe replacement of shopify_api.
UniCache is a universal purpose cache with Least Recently Used replacement policy by default. Cache can be configured to use another policy. UniCache is intended to be Thread safe. User can register callbacks that are run at various UniCache events.
A tool to safely replace your local git repository with a fresh clone from the remote. Clones to a temporary directory first to protect your local copy if something goes wrong, and automatically restores your current branch.
Miscellaneous methods that may or may not be useful. sh:: Safely pass untrusted parameters to sh scripts. fork_and_check:: Run a block in a forked process and raise an exception if the process returns a non-zero value. do_and_exit, do_and_exit!:: Run a block. If the block does not run exit!, a successful exec or equivalent, run exit(1) or exit!(1) ourselves. Useful to make sure a forked block either runs a successful exec or dies. Any exceptions from the block are printed to standard error. overwrite:: Safely replace a file. Writes to a temporary file and then moves it over the old file. tempname_for:: Generates an unique temporary path based on a filename. The generated filename resides in the same directory as the original one. try_n_times:: Retries a block of code until it succeeds or a maximum number of attempts (default 10) is exceeded. Exception#to_formatted_string:: Returns a string that looks like how Ruby would dump an uncaught exception. IO#best_datasync:: Tries fdatasync, falling back to fsync, falling back to flush.
A Ruby library for data obfuscation that: - Preserves original data format and structure as much as possible - Supports numbers (including IP-like sequences), dates, and text - Maintains text structure while replacing content with meaningless but natural-looking words in English and Russian - Maintains data type consistency and decimal precision - Offers seeded randomization for reproducible results - Handles various number formats (leading zeros, separators) - Provides configurable options (unsigned mode, format preservation) Note: Individual obfuscator instances are not thread-safe. For concurrent operations, create separate instances per thread.
Miscellaneous methods that may or may not be useful. sh:: Safely pass untrusted parameters to sh scripts. Raise an exception if the script returns a non-zero value. fork_and_check:: Run a block in a forked process and raise an exception if the process returns a non-zero value. do_and_exit, do_and_exit!:: Run a block. If the block does not run exit!, a successful exec or equivalent, run exit(1) or exit!(1) ourselves. Useful to make sure a forked block either runs a successful exec or dies. Any exceptions from the block are printed to standard error. overwrite:: Safely replace a file. Writes to a temporary file and then moves it over the old file. tempname_for:: Generates an unique temporary path based on a filename. The generated filename resides in the same directory as the original one. try_n_times:: Retries a block of code until it succeeds or a maximum number of attempts (default 10) is exceeded. Exception#to_formatted_string:: Return a string that looks like how Ruby would dump an uncaught exception. IO#best_datasync:: Try fdatasync, falling back to fsync, falling back to flush. Random#exp:: Return a random integer 0 ≤ n < 2^argument (using SecureRandom). Random#float:: Return a random float 0.0 ≤ n < argument (using SecureRandom). Random#int:: Return a random integer 0 ≤ n < argument (using SecureRandom). Password:: A small wrapper for String#crypt that does secure salt generation and easy password verification.
== DESCRIPTION: seesaw: [verb] to change rapidly from one state or condition to another and back again. Seesaw is a replacement/addition to the mongrel_cluster gem and allows you to perform a safe rippling restart of your mongrel cluster without dropping any requests. Let's say you have a mongrel cluster setup with 7 individual mongrels on your server. Let's also say that you have to deploy a code update and restart all of your mongrels but your site is really busy and you cannot afford any downtime whatsoever. When you execute: mongrel_rails seesaw::bounce This will happen: 1. your webserver configuration is switched to only use the front half of your mongrel pack (mongrels 1-4) 2. the webserver (apache or nginx) is gracefully restarted 3. the back half of your mongrel pack (mongrels 5-7) is restarted 4. your webserver configuration is switched to only use the back half of the pack 5. the webserver is gracefully restarted 6. front half mongrels are restared 7. webserver configuration switched back to full cluster configuration 8. webserver restarted one last time
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.