id `whoami`
sudo mount -t cifs -v //<drive ip address>/Media -o username=<drive user>,password=<drive passwd>,uid=1000,gid=1000 /home/User/Media/
This file contains 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
import com.azure.spring.cloud.core.properties.AzureProperties; | |
import com.azure.spring.cloud.stream.binder.eventhubs.config.EventHubsBinderConfiguration; | |
import com.azure.spring.cloud.stream.binder.eventhubs.properties.EventHubsBinderConfigurationProperties; | |
import com.azure.spring.cloud.stream.binder.eventhubs.properties.EventHubsExtendedBindingProperties; | |
import com.azure.core.amqp.AmqpTransportType; | |
import com.azure.core.amqp.ProxyOptions; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.Import; |
This file contains 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
# Request | |
:hackney_trace.enable(:max, :io) | |
result = HTTPoison.get("https://www.mybramble.co.uk",[], [ssl: [{:versions, [:"tlsv1.2"]}]]) | |
# Hackney trace | |
[hackney trace 80 <0.252.0> 2020:12:23 16:40:27 4121] request | |
Content: [{module,hackney}, | |
{line,313}, | |
{method,get}, |
This file contains 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
Wagamama Cheat Recipe | |
Raisukaree curry my cheat recipe | |
I'm extremely proud of this recipe. When Jon first tried it he classed it as a taste sensation and I'd have to agree. | |
I went to wagamamas about a year ago and ordered this curry. I was blown away by the flavour and new I had to try and recreate it myself. I tried to look up recipes for it, but could only find a couple, so I've adapted them and made them into this one. | |
This file contains 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
Ok apologies if this is a bit long. I scraped much of it from notes (I added the swear words!) and some from my dev experience. | |
Think like a user. A person goes to your website to accomplish a goal (buy something, find the cheapest price for something, get informed on the product etc) design the site to meet the goals of the user. | |
Remember a website is just text, pictures, etc generated by a machine. No one cares if a machine says please or thank you. Customer Service assumes some sort of human interaction, every instance of customer service should be considered a FAILURE. Every time a customer has to contact a human means that something could not be accomplished via the website/application, this takes more time to accomplish, more frustrating. This leads to customer being less likely to buy the product. From the sellers perspective the less people they need to pay to answer questions. If you need customer service pick up the phone. | |
A website can not treat you as a human and I have never closed a ta |
This file contains 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 | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
# create our directories |
This file contains 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
alias orderbysize="du --max-depth=1 -k | sort -nr | cut -f2 | xargs -d '\n' du -sh" |
This file contains 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
File.open('data.txt','r') do |f| | |
data = f.read | |
puts data.gsub(/(.+)\n/){$1+"\t"} | |
end |
This file contains 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
# Example 1 | |
def file_read(filename) | |
file = File.new(filename,'r') | |
yield file # file is the variable passed into the block (anything between do and end is a block) f is the variable used the access this in example 1 usage. | |
file.close | |
end | |
# Example 1 usage | |
file_read('temp.rb') do |f| # f is the file descriptor for accessing methods on the file | |
puts f.read # reads the whole file as a string puts is essentially println in java |
NewerOlder