mirror of
				https://tildegit.org/ben/dotfiles.git
				synced 2025-08-10 05:02:03 +00:00 
			
		
		
		
	add some scripts
This commit is contained in:
		
							parent
							
								
									e52edc8402
								
							
						
					
					
						commit
						d537b626df
					
				
							
								
								
									
										6
									
								
								bin/bin/logcount
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								bin/bin/logcount
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,6 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
zcat -f /var/log/nginx/other_vhosts_access.log* |\
 | 
			
		||||
grep -viE '(bing|googlebot|baidu|semrush|yandex|ahrefsbot|linkcheck|yisou|mail\.ru|dotbot|seznambot|mj12bot|applebot|coccoc|webeaver|commoncrawl|exabot|7ooo\.ru|changedetection|brandwatch|360spider|gowikibot|ryte\.com|semanticscholar|crawler|alignab|daum\.net|Apache-HttpClient|wp-cron\.php|xmlrpc\.php|wp-login\.php|uptimerobot|/wp-admin/|python-requests|robots\.txt|feedparser|siteimprove|zoominfobot)' |\
 | 
			
		||||
grep -i "$1" 
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										12
									
								
								bin/bin/pbm
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								bin/bin/pbm
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,12 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
pbm() {
 | 
			
		||||
    curl -s https://pinballmap.com/api/v1/locations/$1/machine_details.json\?machines_only=1 \
 | 
			
		||||
        | jq -r '.machines | .[]' \
 | 
			
		||||
        > ~/public_html/pin/$2.txt
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pbm 9699 coinslot
 | 
			
		||||
pbm 13280 rightbrain
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user