- apt-key add adds a key to /etc/apt/trusted.gpg by default.
These keys are from Ubuntu repositories:
Lists all keys installed in the system;
sudo apt-key list
Remove it by running:
These keys are from Ubuntu repositories:
Lists all keys installed in the system;
sudo apt-key list
Remove it by running:
<?php | |
$url = API; | |
$url .= '/resource/refresh/0/format/json'; | |
$login = DIGEST_AUTH_USER . ':' . DIGEST_AUTH_PWD; | |
$curl = curl_init($url); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_USERPWD, $login); | |
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); | |
$result = curl_exec($curl); | |
$json = json_decode($result, true); |
In Controller:
@GetMapping(produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseEntity<MyEntityRS> search(
@RequestParam(value = "code") String code,
@RequestParam(value = "name", required = false) String name) {
return myEntityService.search(code, name);
@if (auth()->user()->can('show User'))
if(!$user->hasRole('jefe-cuentas-cobrar')){
}
When using a many-to-many relation in Laravel, you should use the attach() function to link models. So in this case, you can do the following: App\user::find(14)->skill()->attach(1);
Segregacion de interfaces en java spring
mongo check verison
db.version()
create database and collection
use salesupdatedb
db.createCollection("myCollection")
query case insensitive
Criteria regex = Criteria.where("name").regex(".*" + queryCriteria.getName() +".*", "i");
query.addCriteria(regex);
public String sayHello(@RequestParam(value = "name") String name){ | |
return "Hello " + name + ""; | |
} | |
db.billings.insertMany([ | |
{ | |
"number" : "405714", | |
"serial" : "F001", | |
"totalFare" : 2131.3 |