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
#!/sbin/openrc-run | |
command="/root/bin/pia-wg.sh" | |
CONFIGDIR="${CONFIGDIR:-/var/cache/pia-wg}" | |
CONFIG="${CONFIG:-/etc/pia-wg/pia-wg.conf}" | |
extra_started_commands="reload" | |
depend() { |
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
# Copyright 2021-2023 Gentoo Authors, 2023- Triffid_Hunter | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=7 | |
DESCRIPTION="Ebuild to depend on currently running Kernel" | |
HOMEPAGE="" | |
SRC_URI="" | |
LICENSE="" |
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
#!/usr/bin/env python3 | |
import random | |
choices = ["scissors","paper","rock","lizard","spock"] | |
interactions = [ | |
[ "", "cut", "", "behead", ""], | |
[ "", "", "wraps", "", "disproves"], | |
[ "smashes", "", "", "crushes", ""], | |
[ "", "eats", "", "", "poisons"], |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from random import randint | |
from functools import reduce | |
print("There is a row of boxes. A cat is hiding in one of the boxes.") | |
print("Every time you check a box, the cat (invisibly) moves to an adjacent box.") | |
print() | |
print("Find a pattern that corners the cat with the least number of checks!") |
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
Section "InputClass" | |
Identifier "keyboard-all" | |
Driver "evdev" | |
MatchIsKeyboard "on" | |
Option "XkbLayout" "us,gr" | |
Option "XkbVariant" "altgr-intl," | |
Option "XkbOptions" "grp:caps_switch,terminate:ctrl_alt_bksp,keypad:future,nbsp:level3n,lv3:ralt_switch_multikey" | |
EndSection |
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
/* | |
* This is some code that converts cartesian coordinate state vectors to | |
* classical orbital elements, and back again. | |
*/ | |
#include <stdio.h> | |
#include <math.h> | |
double Em11 = 0.00000000001; | |
double G = 6.67300 * Em11; |
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
MCU_TARGET=atmega328p | |
ARDUINO_DIR=/usr/share/arduino | |
ARDUINO_HARDWARE:=$(ARDUINO_DIR)/hardware/arduino | |
ARDUINO_CORE:=$(ARDUINO_HARDWARE)/avr/cores/arduino | |
ARDUINO_VARIANT:=$(ARDUINO_HARDWARE)/avr/variants/standard | |
ARDUINO_CORE_LIBRARIES=Wire SPI | |
ARDUINO_LIBDIRS=Adafruit_MLX90614_Library |
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
// from https://forum.arduino.cc/index.php?topic=149785.msg1125620#msg1125620 | |
#include "fix-printf.h" | |
#include <stdlib.h> | |
#if ARDUINO >= 100 | |
#include "Arduino.h" | |
#else | |
#include "WProgram.h" |
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
[BASE_ALL_ATTACKS] | |
IK_None=(Action=SpecialAttackLight,State=Duration,IdleTime=0.2) | |
IK_None=(Action=SpecialAttackWithAlternateHeavy,State=Duration,IdleTime=0.2) | |
IK_None=(Action=SpecialAttackHeavy,State=Duration,IdleTime=0.2) | |
IK_None=(Action=AttackWithAlternateHeavy) | |
IK_LShift=(Action=PCAlternate) | |
IK_Pad_Y_TRIANGLE=(Action=SpecialAttackHeavy,State=Duration,IdleTime=0.2) | |
IK_Pad_Y_TRIANGLE=(Action=AttackHeavy) | |
IK_LeftMouse=(Action=AttackWithAlternateLight) | |
IK_LeftMouse=(Action=SpecialAttackWithAlternateLight,State=Duration,IdleTime=0.2) |
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
# New-style Actuator Smoothie config | |
robot. | |
robot.acceleration 2500 # apply this accel limit in cartesian space along the motion vector | |
robot.max_speed 24000 # apply this speed limit in cartesian space along the motion vector | |
axis.x.soft_max 120 | |
axis.x.soft_min -120 | |
axis.x.max_speed 30000 # if a move wants this axis to move faster than this, cap move speed | |
axis.x.acceleration 3000 # if a move wants this axis to accel faster than this, cap move acceleration |
NewerOlder