This file contains 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
# thinkfan.yaml for Lenovo Thinkpad X1 Extreme Gen 5 | |
sensors: | |
- tpacpi: /proc/acpi/ibm/thermal | |
indices: [0, 1, 2, 4, 5, 6] | |
correction: [-15, -10, -8, -2, -2, -4] | |
- hwmon: /sys/class/hwmon | |
name: nvme | |
indices: [1, 2, 3] |
This file contains 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
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
"os" | |
"os/exec" | |
) |
This file contains 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
package main | |
import ( | |
"fmt" | |
"runtime" | |
) | |
func main() { | |
mymap := make(map[string]*string) | |
for i := 0; i < 1000000001; i++ { |
This file contains 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
#include <array> | |
#include <tuple> | |
#include <utility> | |
/* | |
Makes a std::array of objects without a default constructor. | |
C++17 is required for std::make_from_tuple, otherwise can be adapted for C++14. | |
Example usage: | |
struct A { | |
A(std::string s) {} |