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
# /etc/iptables.rules | |
# Generated by iptables-save v1.6.1 on Sat Oct 19 09:21:09 2019 | |
*mangle | |
:PREROUTING ACCEPT [0:0] | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
:MINIUPNPD - [0: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
eqhmcow@DESKTOP-DLUP89P:~/Kaleidoscope/plugins/Kaleidoscope-LED-Wavepool/src/kaleidoscope/plugin$ git diff | |
diff --git a/plugins/Kaleidoscope-LED-Wavepool/src/kaleidoscope/plugin/LED-Wavepool.cpp b/plugins/Kaleidoscope-LED-Wavepool/src/kaleidoscope/plugin/LED-Wavepool.cpp | |
index 1b55ed43..e788ae1d 100644 | |
--- a/plugins/Kaleidoscope-LED-Wavepool/src/kaleidoscope/plugin/LED-Wavepool.cpp | |
+++ b/plugins/Kaleidoscope-LED-Wavepool/src/kaleidoscope/plugin/LED-Wavepool.cpp | |
@@ -25,6 +25,7 @@ | |
#include "kaleidoscope/KeyAddr.h" // for MatrixAddr, KeyAddr, MatrixAddr<>::... | |
#include "kaleidoscope/KeyEvent.h" // for KeyEvent | |
+#include "kaleidoscope/LiveKeys.h" // for live_keys |
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
### section 1 | |
# disable CPU mitigations, disable CPU sleep (C states), disable CPU throttling (frequency scaling) | |
# edit /boot/grub/grub.cfg | |
# mitigations=off intel_idle.max_cstate=0 processor.max_cstate=1 | |
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor | |
echo performance > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor |
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
#include <stdio.h> | |
#include <stdbool.h> | |
#define SIZE 9 | |
// Winning combinations | |
const int WINNING_COMBINATIONS[8][3] = { | |
{0, 1, 2}, {3, 4, 5}, {6, 7, 8}, | |
{0, 3, 6}, {1, 4, 7}, {2, 5, 8}, | |
{0, 4, 8}, {2, 4, 6} |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
$|++; | |
use Text::Format; | |
use IO::Select; | |
use Time::HiRes; |
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
# something like this... | |
docker run -it oraclelinux:7 | |
yum install rpm-build git wget vim oracle-softwarecollection-release-el7 scl-utils oraclelinux-developer-release-el7 oracle-epel-release-el7 | |
yum-config-manager --enable ol7_software_collections | |
yum-config-manager --enable ol7_latest ol7_optional_latest | |
yum-config-manager --enable ol7_developer | |
git clone https://git.centos.org/rpms/kernel.git | |
cd kernel |
OlderNewer