git – switch branches
git -b mybranch (-b creates a new branch)
git – switch branches
git -b mybranch (-b creates a new branch)
When creating a quick react component in an html page, you will need to use babel to translate the jsx into something readable.
from : https://reactjs.org/docs/cdn-links.html
and babel:
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></scri
<!-- Load Babel -->
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
Enclosed is some pretty cool technology for securing your node website using passport, connect-ensure-login, and connect-flash. These modules, written by Jarad Hansen, allow secure login of your node website using oauth technology.
You will find references and a working example based on examples listed in the README.md file.
Fun.
Of all the articles found on the net on installing nvidia, one worked for me, listed below. Here are the steps I took to successfully installed:
dnf update
dnf install fedora-workstation-repositories
dnf config-manager --set-enabled rpmfusion-nonfree-nvidia-driver
dnf repository-packages rpmfusion-nonfree-nvidia-driver info
Of course, repositiories only need to be installed once.
I am a fan of fedora and have been so for years. I feel it is a solid distribution with a good package base and attention to security. I now enjoy the latest version of gnome and some of its standard tools.
Setting up an ideal system can be a challenge. My downfall has been video driver installation. This is when I wish I had a mac or could be content with a windows 10 box.
Listed below are solutions to common setup issues that worked for me.
FEDORA 29: Install date: 1/10/2019
I have a unique file system layout that is part server and part desktop. I add hard drives as I need them creating and switching around partitions by setting the partitions using ext4 and going into the fstab file. This is what works for me. I had lots of losses when I used lvm. I’m sure lvm has improved since.
Each directory has its own partition, the ones not listed share with root. Hard drive space I have is a lot more than what I need.
/ | 700Gb | |
/boot | ||
/swap | 20Gb | |
/var | 292Gb | |
/home | 600Gb | |
/dnload | 600Gb | |
/src | 600Gb | |
/backup | ||
/data | 28Gb | |
/vault | 8Gb | |
/opt | 60Gb |
Add Authentication on Fedora system
This action will allow you to login to mongo using created users. One step closer to securing mongo database.
1. edit /etc/mongod.conf:
# security Options - Authorization and other security settings
security:
# Private key for cluster authentication
#keyFile:
# Run with/without security (enabled|disabled, disabled by default)
authorization: enabled
list all versions of a package
dnf --releasever=29 --showduplicates list $pkgname
when upgrading packages, do not include “packagename”
sudo dnf upgrade --exclude=packagename
add programs to your gnome desktop that you manually installed into opt
Create a file like this: call it Postman.desktop.
save this file in your /home/usr/.local/share/applications directory
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=YOUR_INSTALL_DIR/Postman/app/Postman %U
Icon=YOUR_INSTALL_DIR/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
There is a very cool secure remote mount called sshfs. it allows you to set up a remote directory on your system making a seamless transition to your server.
to install:
fedora:
yum/dnf install sshfs
debian:
apt-get install sshfs
pick a place to mount the directory
mkdir /mnt/myserver
sshfs myserver:/home/mystuff /mnt/myserver
that is it!
reference:
https://www.tecmint.com/sshfs-mount-remote-linux-filesystem-directory-using-ssh/
create a new project:
$> laravel new <<project_name>>
add authentication?
$> php artisan make:auth
run server
$> php artisan serve
main config file: .env