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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
| <!-- Key mapping for PC-style keys with Swiss French layout --> | |
| <!--Last edited by Ukelele version 2.2.8 on 2015-06-02 at 17:10 (CEST)--> | |
| <keyboard group="0" id="16101" name="PC Swiss French" maxout="1"> | |
| <layouts> | |
| <layout first="0" last="0" modifiers="commonModifiers" mapSet="ISO"/> | |
| </layouts> | |
| <modifierMap id="commonModifiers" defaultIndex="0"> | |
| <keyMapSelect mapIndex="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
| var old_sin = Math.sin; | |
| Math.sin = function(x) { | |
| if (typeof x == "number" && isFinite(x)){ | |
| return old_sin(x); | |
| } | |
| var str = "" + x; | |
| if (str.length>0){ | |
| str = str.repeat(Math.ceil(Math.max(1,18/str.length))); | |
| } | |
| var sinstr = "|\n"; |
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
| # List all possible power config GUIDs in Windows | |
| # Run: this-script.ps1 | Out-File powercfg.ps1 | |
| # Then edit and run powercfg.ps1 | |
| # (c) Pekka "raspi" Järvinen 2017 | |
| $powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting | |
| $powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup | |
| Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object { | |
| $tmp = $_.ManagedElement |