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 | |
| cd '/etc/wireguard' | |
| while [ 1 ] | |
| do | |
| clear | |
| echo `date` ' Top Active Wireguard Peers:' | |
| echo '-------------------------------------------------------------------' | |
| echo 'User,Client IP,VPN IP,Last Handshake'| sed 's/,/,|,/g' | column -s ',' -t | |
| echo '-------------------------------------------------------------------' | |
| ./active_user|grep --color=always -E ", ([0-9]+ minute|[0-9]+ second)" | sed 's/,/,|,/g' | column -s ',' -t | 
  
    
      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/python3 | |
| # -*- coding: utf-8 -*- | |
| import re | |
| import os | |
| os.chdir("/etc/wireguard") | |
| users = [] | 
  
    
      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/python | |
| # -*- coding: UTF-8 -*- | |
| import os | |
| import sys | |
| import re | |
| group=sys.argv[1]#config file prefix | |
| user=sys.argv[2]#user remark | |
| ip_begin='' | |
| ip_ends=[] | 
  
    
      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
    
  
  
    
  | ### DML ### | |
| # Keyspace Name | |
| keyspace: stresscql | |
| # The CQL for creating a keyspace (optional if it already exists) | |
| keyspace_definition: | | |
| CREATE KEYSPACE stresscql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; | |
| # Table name | 
  
    
      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 | |
| dev=`df|tail -1` | |
| volume=`echo ${dev##*% }|sed 's/\ /\\\ /g'` | |
| dev=${dev%% *} | |
| diskutil info $dev|grep NTFS>/dev/null | |
| if [ $? -ne 0 ] ; then | |
| echo "Latest mounted disk ($volume) is not a NTFS device!" | |
| echo "Press Return button to exit!" | |
| read | |
| else |