15 lines
1.3 KiB
JSON
15 lines
1.3 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"PowerShell(pterm status)",
|
|
"Read(//c/Users/User/.pinokio/**)",
|
|
"PowerShell(& \"C:\\\\pinokio\\\\bin\\\\npm\\\\pterm.cmd\" status)",
|
|
"PowerShell(& \"C:\\\\pinokio\\\\bin\\\\npm\\\\pterm.cmd\" search \"\" --limit 20)",
|
|
"PowerShell(try { $r = Invoke-WebRequest -Uri \"http://127.0.0.1:42000/pinokio/path/pterm\" -TimeoutSec 5 -UseBasicParsing; $r.StatusCode; $r.Content } catch { \"LOOPBACK FAILED: $\\($_.Exception.Message\\)\" })",
|
|
"PowerShell(Get-ChildItem \"C:\\\\Users\\\\User\\\\AppData\\\\Local\\\\Programs\\\\Pinokio\" | Select-Object Name, Length, LastWriteTime; \"---\"; Get-ChildItem \"$env:APPDATA\\\\Pinokio\" -ErrorAction SilentlyContinue | Select-Object Name, LastWriteTime)",
|
|
"PowerShell(php artisan tinker --execute=\"`$s = App\\\\Models\\\\SesiTaklimat::create\\(['dun_id'=>1,'tarikh'=>now\\(\\)->toDateString\\(\\),'nama'=>'Taklimat Petugas Sesi 1','lokasi'=>'Dewan Serbaguna Gelang Patah','masa'=>'9:00 pagi - 12:00 tengah hari','created_by_user_id'=>1]\\); echo 'SESI ID: '.`$s->id.PHP_EOL.'TOKEN: '.`$s->qr_token.PHP_EOL; `$p = App\\\\Models\\\\Sppm\\\\PetugasPermohonan::assignedUntukDun\\(1\\)->get\\(['id','nama_ic','no_kp']\\); echo `$p->toJson\\(JSON_PRETTY_PRINT\\);\")",
|
|
"PowerShell(php artisan serve --port=8000)"
|
|
]
|
|
}
|
|
}
|