Aliasing with Babel instead of Webpack
If you have been using aliases in Webpack, and want to switch over to Babel instead, you can use the Babel Module Resolver Plugin. Then just configure your aliases, such as: […]
If you have been using aliases in Webpack, and want to switch over to Babel instead, you can use the Babel Module Resolver Plugin. Then just configure your aliases, such as: […]
To set an environment variable that NodeJS can access, in a DOS prompt: set variableName=value To access this value in your NodeJS, you can reference: process.env.variableName Note that while this […]
Ubuntu 14.04 provided modapache2_mod_proxy_html as an option to pass requests to Apache through to something like NodeJS running on a different port. However, this package does not exist for 16.04! […]
Log in to the console as root: mysql -u root -p To create a new user: GRANT ALL PRIVILEGES ON *.* TO ‘username’@’localhost’ IDENTIFIED BY ‘password’; (restrict permissions as necessary)
To find the table that a constraint is in, you can do: SELECT * FROM all_constraints WHERE constraint_name = ‘the_constraint_name’ This is useful for finding child table(s) that have dependent […]
Quick command to get the SID of the currently logged in user for SSO validation: whoami /user This can be an extra layer of security above and beyond the username […]
To change a user’s password, including your own: alter user THEUSERNAME identified by “NEWPASSWORD“;
For a list of tables with a specific column name, you can query the DBA_TAB_COLUMNS table: select table_name from dba_tab_columns where column_name=’MY_COLUMN_NAME’ order by table_name asc; This is helpful for […]
To unlock an account: alter user {USERNAME} account unlock;
Easy! Just select: CURRENT_TIMESTAMP