New Solution: dotnet new sln -n <Solution-Name>
List available new commands: dotnet new -h
List avilable project types dotnet new -l
New Project: dotnet new <Project-Type> -o <Project-Name>
global computerIsInUse, resetTime | |
on run | |
set computerIsInUse to true | |
set resetTime to (do shell script "date +%s") as integer | |
end run | |
on idle | |
set idleTime to (do shell script "ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF; exit}'") as integer | |
if idleTime is greater than 7.4E+10 then |
# 1. Paste this into Script Editor, replace username and password; | |
# 2. Export as "Application", check "Stay open" and "Run-only"; | |
# 3. Add to Login Items in Settings/General to run automatically; | |
# 4. To hide the Dock icon, add to Content/Info.plist: | |
# <key>LSUIElement</key> | |
# <string>1</string> | |
on idle | |
set idleTime to (do shell script "ioreg -c IOHIDSystem | awk '/HIDIdleTime/ {print $NF/1000000000; exit}'") as integer | |
if idleTime is less than 58 then |
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Support\Facades\DB; | |
return new class extends Migration | |
{ | |
/** | |
* Run the migrations. | |
*/ |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |