mirror of
				https://gitea.blesmrt.net/mikaela/scripts.git
				synced 2025-10-31 09:27:21 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			221 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			221 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env ruby
 | |
| 
 | |
| # Prompt for the whatever
 | |
| print "Enter the IPFS hash/addr: "
 | |
| # Get the input without \n
 | |
| ipfsthing = gets.chomp
 | |
| ipfsgateway = "https://ipfs.io/ipfs/"
 | |
| 
 | |
| # Output the address
 | |
| puts ipfsgateway + ipfsthing
 |