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 | |
| # Install the last downloaded file on macOS | |
| dl_path=~/Downloads | |
| last_dl=`ls -tl -A1 $dl_path/*.{dmg,pkg} | head -n1` | |
| if [[ $last_dl == *.dmg ]]; then | |
| echo "Installing DMG: $last_dl..." | |
| VOLUME=$(hdiutil attach -nobrowse "$last_dl" | cut -f3 | tail -n1 ; exit ${PIPESTATUS[0]}) && (rsync -a "$VOLUME"/*.app /Applications/; SYNCED=$? | 
  
    
      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 -xe | |
| # brew install libusb | |
| # pip3 install git+https://github.com/jonasmalacofilho/liquidctl | |
| # https://github.com/jonasmalacofilho/liquidctl/blob/master/docs/nzxt-kraken-x-3rd-generation.md | |
| liquidctl set pump speed 100 | |
| liquidctl set ring color covering-marquee FC5C7D 6A82FB 1EFF48 C2F970 564D80 | |
| liquidctl set logo color breathing FC5C7D 6A82FB 4E5166 44344F | 
  
    
      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 | |
| apt update -y | |
| apt install -y lsb-release sudo vim screen curl htop | |
| RELEASE=`lsb_release -sc` | |
| # Install no-nag | |
| cd /tmp | |
| curl -s https://api.github.com/repos/Jamesits/pve-fake-subscription/releases/latest \ | |
| | grep "browser_download_url.*deb" \ | 
  
    
      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 | |
| while : | |
| do | |
| WGPROC=$(wg) | |
| WGIF=$(ip route show gateway | grep -io oet1) | |
| WGSERVER=$(/usr/sbin/nvram get oet1_rem0) | |
| WANGWY=$(/usr/sbin/nvram get wan_gateway) | |
| WANIF=$(/usr/sbin/nvram get wan_iface) | |
  
    
      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 ruby | |
| host = ARGV[0].to_s | |
| if host == "" | |
| history_output = `cat ~/.bash_history | grep "^ssh\s" | tail -1` | |
| host = history_output.sub(/^ssh\s/i, '').split("@").last.split(" ").first | |
| end | |
| puts `ssh-keygen -R #{host}` | 
  
    
      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 ruby | |
| # Usage: no_automount /Volumes/My\ Disk | |
| if ARGV[0].nil? | |
| puts "Usage: no_automount /Volumes/My\ Disk" | |
| exit 1 | |
| end | |
| diskinfo = `diskutil info '#{ARGV[0]}'`.gsub("\n\n", "\n").split("\n").collect do |b| | 
  
    
      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
    
  
  
    
  | # | |
| # This is a simple rackup file for geminabox. It allows simple role-based authorization. | |
| # | |
| # roles: | |
| # - developer | |
| # - upload | |
| # - delete | |
| # - admin (can do anything) | |
| # | |
| # For example, a developer who can access the service and upload new gems would have the following roles: `%w(developer upload) | 
  
    
      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/sh | |
| # | |
| # /usr/local/bin/ping_check.sh | |
| # | |
| # First sleep for 3 mins so that we don't run this code if box has only just booted and PPPoE not up yet. | |
| /bin/sleep 180 | |
| test_http() { | |
| url=${1:-http://captive.apple.com} | 
  
    
      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
    
  
  
    
  | listen l1 | |
| bind 0.0.0.0:443 | |
| mode tcp | |
| timeout connect 4000 | |
| timeout client 180000 | |
| timeout server 180000 | |
| server srv1 host.example.com:9443 |