In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
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
#!/bin/sh | |
while true | |
do | |
echo "##########STARTING###########" | |
java -Xms100M -Xmx8G -jar spigot.jar | |
echo "" | |
echo "" | |
echo "Restarting in:" | |
for i in 5 4 3 2 1 | |
do |
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
# STRICT ORIGIN WHEN CROSS ORIGIN | |
add_header X-Frame-Options "SAMEORIGIN" always; | |
add_header X-XSS-Protection "1; mode=block" always; | |
add_header X-Content-Type-Options "nosniff" always; | |
add_header Referrer-Policy "strict-origin-when-cross-origin" always; | |
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always; |
I hereby claim:
- I am rayriffy on github.
- I am rayriffy (https://keybase.io/rayriffy) on keybase.
- I have a public key whose fingerprint is E9DB 85FE 488F 1776 A86E AEDD A00E DA35 934E AD9A
To claim this, I am signing this object:
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
_人人人人人人人人人人人人_ | |
> 害悪プレイヤーの流儀 < | |
> 毒★麻痺★眠り < | |
 ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄ |
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
Array.from({ length: document.querySelectorAll('div.card-backPicture').length / 2 }) | |
.map((_, i) => [...document.querySelectorAll(`div.card-backPicture`)].filter(el => el.style.backgroundImage === `url("./images/master/score-${String(i + 1).padStart(2, '0')}.jpg")`)) | |
.reduce((promise, pair) => { | |
return promise.then(() => { | |
return new Promise(resolve => { | |
setTimeout(() => { | |
resolve(pair.map(el => el.click())) | |
}, 3000); | |
}) | |
}) |
-
Apple Homepod Mini - https://shopee.co.th/product/62719/5770519314
-
Aqara Hub M1S (+ Aqara Motion Sensor) - https://shopee.co.th/product/302260250/4560724849
-
Aqara Wall Switch D1 (No neutral wire) - https://shopee.co.th/product/34671550/6525376154
-
Aqara Door/Window Sensor - https://shopee.co.th/product/302260250/6757471366
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
let getAllNameInMeeting = () => Array.from(document.querySelector('calling-roster-section[data-tid=participantsInCall]').querySelectorAll('div.name > span')).map(o => o.textContent.toLowerCase()) | |
let leaveIfSomeoneLeave = (name) => { | |
try { | |
const lowerCaseNames = getAllNameInMeeting() | |
// if not found, then leave | |
if (!lowerCaseNames.includes(name)) { | |
console.log(`[leaveIfSomeoneLeave] "${name}" is leaving! stopping the call`) | |
document.querySelector('#hangup-button').click() |
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
// popcat auto-clicker | |
// by rayriffy | |
// drop this into DevTools console | |
// to run: | |
// let agent = clicker() | |
// | |
// to stop: | |
// agent.stop() |
I hereby claim:
- I am rayriffy on github.
- I am rayriffy (https://keybase.io/rayriffy) on keybase.
- I have a public key ASAbxF7JiJYGvMGmXpoZHmN-JG89r49B_m-KTTFJfl41BAo
To claim this, I am signing this object:
OlderNewer