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
    
  
  
    
  | # How to run DeepSeek-R1 and other recent models on a dual CUDA GPU setup with layers offloaded to GPUs. | |
| # I'm running these on 2x4090 with 48Gb combined VRAM. | |
| # Installation | |
| # Ensure you have cmake installed | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| cmake -B build -DGGML_CUDA=ON -DLLAMA_CURL=ON | |
| cmake --build build --config Release | 
  
    
      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
    
  
  
    
  | from nostr.key import PublicKey | |
| print(PublicKey('').from_npub("npub18km328aqzchsrd9lhhfkedyah9qs0umjhletrncfq29w9jkm78gqjkw66k").hex()) | 
  
    
      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
    
  
  
    
  | #### Initialize pwnbox #### | |
| #### sudo /bin/bash -c "$(curl -fsSL [gist-url])" | |
| export U=htb-scl | |
| ## Prompt update | |
| cat << EOT >> /home/$U/.bashrc | 
  
    
      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 | |
| sudo apt install -y masscan nmap netcat openvpn | |
| echo "#!/bin/bash" > /tmp/full | |
| echo "masscan -p1-65535,U:1-65535 $1 --rate=1000 -e eth0" >> /tmp/full | |
| chmod +x /tmp/full | |
| echo "#!/bin/bash" > /tmp/scan | 
  
    
      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
    
  
  
    
  | #cloud-config | |
| coreos: | |
| etcd2: | |
| # generate a new token for each unique cluster from https://discovery.etcd.io/new | |
| discovery: #DISCOVERY_URL | |
| # multi-region and multi-cloud deployments need to use $public_ipv4 | |
| advertise-client-urls: http://$private_ipv4:2379 | |
| initial-advertise-peer-urls: http://$private_ipv4:2380 | |
| # listen on both the official ports and the legacy ports | 
  
    
      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
    
  
  
    
  | #cloud-config | |
| hostname: kenobi | |
| coreos: | |
| etcd2: | |
| advertise-client-urls: "http://$public_ipv4:2379" | |
| listen-client-urls: "http://0.0.0.0:2379" | |
| units: | |
| - name: etcd2.service | 
  
    
      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 | |
| # Usage: | |
| # sql-importer.sh yourdb.sql.gz target_db | |
| zcat < $1 |pv --format 'Importing... %t - %e - %r - %b %p' --size `gzip -l $1 | sed -n 2p | awk '{print $2}'` | mysql -uroot -pyourrootpass $2 | 
  
    
      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 | |
| # Puppet User Data | |
| # Basic initialization script to set up hostname and puppet enterprise agent on new instances | |
| # Author: David Toth | |
| HOSTNAME='rabbit1' | |
| PUPPETMASTER='ip-10-0-0-131' | |
| # Set hostname | 
  
    
      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 pane = $('#pane'), | |
| box = $('#box'), | |
| maxValue = pane.width() - box.width(), | |
| keysPressed = {}, | |
| distancePerIteration = 3; | |
| function calculateNewValue(oldValue, keyCode1, keyCode2) { | |
| var newValue = parseInt(oldValue, 10) | |
| - (keysPressed[keyCode1] ? distancePerIteration : 0) | |
| + (keysPressed[keyCode2] ? distancePerIteration : 0); |