Difference between revisions of "Main Page"
Jump to navigation
Jump to search
| Line 73: | Line 73: | ||
===Create unix user=== | ===Create unix user=== | ||
| − | + | Home dir<br> | |
<home dir> <username> | <home dir> <username> | ||
<pre> | <pre> | ||
| Line 79: | Line 79: | ||
</pre> | </pre> | ||
| − | Specific ID | + | Specific ID<br> |
<uid> <username> | <uid> <username> | ||
<pre> | <pre> | ||
| Line 85: | Line 85: | ||
</pre> | </pre> | ||
| − | Specific group | + | Specific group<br> |
<groupname> <username> | <groupname> <username> | ||
<pre> | <pre> | ||
Revision as of 02:59, 14 September 2019
Contents
Back-end/Frontend stuff
- Is Go faster than ImageMagic? Resizing images benchmark
- Regex online testing
Git
stop asking for password:
> git config credential.helper store
Laravel PHP
User Auth
How to test SMTP from command line:
php artisan tinker
Then run the command (specify your own email):
>>>> Mail::send('errors.404',[], function($message) { $message->to('shir****@gmail.com')->subject('testing email'); });
MongoDB tricks
Database
MongoDB
BACKUP
xBackup is example of backup directory
> mongodump --db <USER> --out ./xBackup/ --username tws --password "<PASSWD>"
RESTORE
> mongorestore --username <USER> --password "<PASSWD>" --authenticationDatabase <AUTH DB> ./xBackup/
Mysql
Create database and assign user to it
> CREATE DATABASE unoduos; > CREATE USER 'unoduos'@'localhost' IDENTIFIED BY 'password'; > GRANT ALL PRIVILEGES ON unoduos. * TO 'unoduos'@'localhost'; > FLUSH PRIVILEGES;
Web Design
- How To Create Horizontal Scrolling Containers A good working solution with FLEX. I do believe doesn't work in IE, BUT the good thing there is no mobile IE in mobile phones!
Carousel
Server configuration
No password ssh
ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub root@joyscoot.com -p 2223
Create unix user
Home dir
<home dir> <username>
> useradd -m -d /opt/username username
Specific ID
<uid> <username>
> useradd -u 1500 username
Specific group
<groupname> <username>
> useradd -g users username