Install the OpenSSL on Debian based systems
sudo apt-get install opensslAt some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amendThis will open your $EDITOR and let you change the message. Continue with your usual git push origin master.
| from __future__ import print_function | |
| import requests | |
| import json | |
| import cv2 | |
| addr = 'http://localhost:5000' | |
| test_url = addr + '/api/test' | |
| # prepare headers for http request | |
| content_type = 'image/jpeg' |
| // user class | |
| class User extends Authenticatable | |
| { | |
| use Notifiable; | |
| protected $fillable = [ | |
| 'name', 'email', 'password', | |
| ]; | |
| protected $hidden = [ |
| <?php | |
| // Must use all three filters for this to work properly. | |
| add_filter( 'ninja_forms_admin_parent_menu_capabilities', 'nf_subs_capabilities' ); // Parent Menu | |
| add_filter( 'ninja_forms_admin_all_forms_capabilities', 'nf_subs_capabilities' ); // Forms Submenu | |
| add_filter( 'ninja_forms_admin_submissions_capabilities', 'nf_subs_capabilities' ); // Submissions Submenu | |
| function nf_subs_capabilities( $cap ) { | |
| return 'edit_posts'; // EDIT: User Capability | |
| } |