Skip to content

Instantly share code, notes, and snippets.

View powext's full-sized avatar
🎯
Focusing

Simone Bianchin powext

🎯
Focusing
View GitHub Profile
@powext
powext / Esame.java
Last active January 12, 2019 19:06
exDue 1 Gennaio 2019
public static int exDue(int[] a){
int result = 0;
if(a!=null&&a.length!=0){
result = exDueRic(a, 0, a.length-1);
} else {
return 0;
}
System.out.println(result);
return result;
}
@powext
powext / limit-charging-to-80%-sh
Created January 3, 2024 22:15
RayCast script to limit macbook charging until 80% through actuallymentor/battery CLI
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Battery - Limit Charging to 80%
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🤖
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: 1FBF2F37-DD83-4FAE-83DB-1D5F939BD929
CrashReporter Key: 55C78E54-2CEA-D459-836B-B208E2242DA6
Hardware Model: MacBookPro18,1
Process: iPhone Mirroring [2896]
Path: /System/Applications/iPhone Mirroring.app/Contents/MacOS/iPhone Mirroring
Identifier: com.apple.ScreenContinuity