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
tokens = ['04 64 06 3a 94 51 80'] | |
text_tokens = ['6Ek0ks4DvLo9nZKC8CRnyp8IIlYS6GhigDTi8aNpLbS8gomGw6xtIq2qjk8xQq5pqnFYTotljcnclPvqoIbK8UBrSUR9Mx2YI4itKUMEjBaPf8Afc98ecqHPwynJ99LouhYxSu1QPkRJi414PheuvKW8xTf7MpGHhsFiZdKud1ZhSC7N4MTZGcVlavRvUrAqo22XdINBjmp4SipwIcyETu7KBrfALIKIti3JHeW7itFojKHQiPSsAPRlrM7Fb6bS1Lyk9ypUwSnwf53JneEni32IsDfOTE9AYOxxzfNSGSLfnBWq0isCcs6aLNPTmwWLvjViihi5afEClaJQFUpvDoV1rF94OfTpgtlojsvsu5teIsEkVmeseQSuz4j7U8J32wxClcBurnNr5HDWqnYPUe5uh6AtkVZIzbC3YYpzG8BId3OPPul7FQEM30LEYzO2nWPwzjeX'] | |
user_password = 'da1syG1rl' | |
lock_at_seconds = 60 * 60 #60 * 60 | |
for token in tokens: | |
token = token.replace(':', ' ') | |
token = 'NFCID = ' + token |
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
[Unit] | |
Description=nfc daemon for auth | |
After=network.target | |
[Service] | |
User=root | |
Group=users | |
Environment=DISPLAY=:0 | |
WorkingDirectory=/home/daisy/Documents/nfc | |
ExecStart=/home/daisy/Documents/nfc/venv/bin/python /home/daisy/Documents/nfc/nfc.py |
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
[Install] | |
WantedBy=sleep.target | |
[Unit] | |
After=systemd-suspend.service systemd-hybrid-sleep.service systemd-hibernate.service | |
[Service] | |
Type=forking | |
ExecStart=/bin/bash -c 'i3lock' | |
User=daisy |
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
// By Charlotte Grace Harper. V1.0.33 fixing | |
(function threethirteen(){ | |
var gameSocket; | |
var gameReady = false; | |
const TURNTIME = 5; // Turn time in seconds | |
var currentTurn = 0; | |
var lastPlayerScore = 0; | |
var lastOpponentScore = 0; | |
const suitnames = ["S", "H", "C", "D"]; | |
const cardnames = ["A","2","3","4","5","6","7","8","9","10","J","Q","K"]; |
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
$fn=64; | |
//scale([1, h/w, 1]) rotate([90,90,0]) cylinder(h=100, r=100, center=false); | |
module oval(w, h, height, center = false) { | |
scale([1, 1, 2]) rotate([90,90,0]) cylinder(h=0.5, r=w, center=center); | |
} | |
module sph(w, h, height, center = false) { | |
scale([1, 5, 2]) rotate([90,90,0]) sphere(w); | |
} |
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
var audioContext = new (window.AudioContext || window.webkitAudioContext)(); | |
function splitAudioArrayBuffer(buffer, segmentLength) { | |
// Calculate the number of segments. | |
const numberOfSegments = Math.ceil(buffer.length / segmentLength); | |
// Create an array to store the segments. | |
const segments = []; | |
// Loop over the segments and create a new ArrayBuffer for each one. | |
for (let i = 0; i < numberOfSegments; 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
[Unit] | |
WantedBy=sleep.target | |
After=systemd-suspend.service systemd-hybrid-sleep.service systemd-hibernate.service | |
[Service] | |
Type=forking | |
ExecStart=/bin/bash -c 'i3lock' | |
User=daisy | |
Environment=DISPLAY=:0.0 |
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
[Seat:*] | |
greeter-session=arctica-greeter | |
autologin-user=daisy | |
greeter-setup-script=/usr/bin/i3lock |
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
sudo nano /etc/acpi/events/power | |
event=button/power | |
action=/usr/bin/i3lock |
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
[Unit] | |
Description=nfc daemon for auth | |
After=network.target | |
[Service] | |
User=root | |
Group=users | |
WorkingDirectory=/home/daisy/Documents/nfc | |
ExecStart=/home/daisy/Documents/nfc/venv/bin/python /home/daisy/Documents/nfc/nfc.py |
NewerOlder