Search By Label
heroku pg:backups:capture -a your-production-name-app
heroku pg:backups:restore <production-database-name>::<you-backups-id> DATABASE_URL --app <production-staging-enviroment> --confirm <production-staging-enviroment>
heroku pg:backups:restore juanequex-prod::b194 DATABASE_URL --app juanequex-staging --confirm juanequex-staging
heroku pg:backups:capture -a your-production-name-app
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d <data-base-name> /Users/juanequex/backups/<your-local-backup>
npm show
command is used to display detailed information about a package available on the npm registry. npm show
command:npm show <package-name>
npm show
retrieves information directly from the npm registry, so it doesn't require the package to be installed locally. It's a convenient way to inspect package details before deciding to install or use a particular version.npm outdated
package.json
and see if there is a newer version in the NPM registry.jQuery
is installedimport $ from 'jQuery'
...
var content = $('#id').html();
import
statement so you have to transpile the code with Webpack commands, the bundler will check all the used dependencies and bind them in a single file without any dependency problems.git stash list
git stash show
git stash show -p
git stash show -p stash@{1}
git stash show -p 1
pg
for PostgreSQL or mysql2
for MySQL.pg
for PostgreSQL:const { Client } = require('pg'); // Bad: Concatenation (vulnerable to SQL injection) const insecureQuery = `SELECT * FROM users WHERE username = '${inputUsername}'`; // Good: Parameterized query (prevents SQL injection) const secureQuery = 'SELECT * FROM users WHERE username = $1'; const values = [inputUsername]; const client = new Client(); client.connect(); client.query(secureQuery, values, (err, result) => { // Handle the query result client.end(); });
pointer-events
CSS property is used to control under what circumstances an element can trigger user interface events like mouse clicks and hover. It allows you to control the visibility and interaction of elements on the page.pointer-events
property can take the following values:" Hello world ".strip # => "Hello world"
Sidekiq.redis(&:flushdb)
process.nextTick()
is a function in Node.js designed to schedule a callback function to be invoked in the next iteration of the event loop. (3 - 10) % 27
-7 % 27
-7 + 27
cmd + m