This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlinx.cinterop.* | |
import platform.posix.IID | |
import platform.windows.* | |
import kotlin.native.concurrent.freeze | |
fun main(args: Array<String>) { | |
memScoped { | |
val result = alloc<tagOFNA>() | |
SecureZeroMemory?.invoke(result.ptr, sizeOf<tagOFNA>().toULong()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell settings put global heads_up_notifications_enabled 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val prefix = "kwriteconfig5 --file \$HOME/.config/kde.org/UserFeedback.org.kde.plasmashell.conf" | |
val config = """ | |
[Greeter][Wallpaper][org.kde.image][General] | |
Image=file:///home/shalva/Pictures/lock-screen-wallpaper.jpg | |
""".trimIndent() | |
var configCommand = StringBuilder() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function adb-layout-bounds | |
if test $argv[1] != false; and test $argv[1] != true; | |
echo wrong arguments, use true or false | |
return 1 | |
end | |
switch (__number_of_connected_devices) | |
case 0 | |
echo no devices connected | |
return 1 | |
case 1 |