Author: nugs

  • Creamy garlic parmesan chicken and mash

    I haven’t cooked this yet so it could be a load of rubbish. Makes two lunches apparently.

    Ingredients

    • Bunch of bonless thighs
    • 3-4 finely chopped garlic cloves
    • 1 tbsp butter
    • 100ml chicken stock
    • 100ml double cream
    • 30g grated parmesan
    • S&P
    • Spinach and/or greens?
    • Item

    Mash

    • 400g potatoes
    • 30g butter
    • Drizzle of milk or cream
    • 20g parmesan
    • S&P

    Method

    • Boil potatoes, drain, steam dry
    • Mash them with butter, milk/cream, parmesan, S&P
    • If you’re gonna be reheating this, keep the mash slightly looser and softer than usual.
    • Season chicken, brown it in the cast iron, 4-5 mins, set aside
    • In the same pan, add butter, garlic. Cook gently. Don’t burn it.
    • Pour in stock. Add cream. Simmer lightly.
    • Return chicken to the pan, simmer for 5-8 mins until cooked.
    • Add parmesan, stir until melted
    • You can either wilt the spinach and greens in this pan, or do it separately.
    • Sauce should be creamy, not too thick now.
    • Add more S&P if needed

    Bonus touches

    • Could add a small splash of lemon juice if you’re feeling fancy
    • Sprinkle with chives
  • Beef ragu

    Yum! Serve with pappardelle and garlic bread. Yum!

    Ingredients

    • Two tablespoons olive oil
    • Large onion, finely diced
    • Two carrots, finely diced
    • Two celery sticks, finely diced
    • Three garlic cloves, crushed
    • Two tablespoons tomato puree
    • 500-750g beef mince (or stewing steak if you’re feeling fancy)
    • Glass of red wine
    • Tin chopped tomatoes
    • 250-400ml beef stock. Probably towards the higher end.
    • Teaspoon dried oregano or mixed herbs. Actually closer to a tablespoon. And a bit more on top.
    • One bay leaf
    • Salt and pepper
    • Splash of milk or cream (optional)

    Bonus ingredient

    • Parmesan rind

    Method

    • Veg
      Heat oil in a big pan. Medium heat. Add onion, carrot, celery. Cook for about 10 mins until soft, not browned.
    • More veg
      Stir in garlic and tomato puree. Cook for a few minutes.
    • Beef time
      Add the beef. Brown it. Turn the heat up if needed. Break up the mince, if using.
    • Wine
      Pour in the wine and let it bubble. It should smell nice.
    • Sauce
      Add tinned tomatoes, stock, herbs, bay leaf, S&P. If you’re using the bonus ingredient, add it now. Stir it all up.
    • Cook!
      Bring to a gentle simmer, partially or completely covered. Up to you. Cook slowly for at least an hour, preferably closer to two. But keep an eye on it though, add a splash of water or stock if it gets too thick or starts to dry out.
    • Finish
      Fish out the bay leaf and parmesan rind. Add the milk or cream and give it a good stir. Add more S&P if needed.

    Important!

    • Pasta
      Don’t be an animal when serving. When your pasta is cooked, make sure you drop it in the ragu and combine it so the pasta is completely covered. If you spoon pasta into your bowl and just pour the ragu on top, you deserve to be a vegan.
    • Parmesan
      Server with a bucket of parmesan. It’s the law.
    • Garlic bread
      And some of this.
  • Compiling SSH binaries

    This is if you’re sad and you like to do things yourself. Can be useful if you want to make mods to the source code too.

    Make sure you do these steps on the same OS version that you’re planning to deploy the binary to.

    1. Download it
      wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.6p1.tar.gz
    2. Install the pre-reqs, whatever they were
    3. tar -xzf openssh-9.6p1.tar.gz
    4. cd into it, run ./configure
      • My one complained about zlib versions coz security
      • So tried this next command again…
    5. ./configure –prefix=/usr/local –sysconfdir=/etc/ssh –with-pam –with-privsep-path=/var/lib/sshd
    6. Will get something like this if it goes to plan:
    1. make -j$(nproc)
    2. sudo make install
    3. it might moan about privilege separation user sshd does not exist
      • if building this binary on a machine without ssh server installed, the user sshd wont exit.
    4. so not sure which bits of these are actually needed:
      • sudo mkdir -p /var/lib/sshd
      • sudo chown root:root /var/lib/sshd
      • sudo chmod 755 /var/lib/sshd
      • sudo useradd -r -d /var/empty/sshd -s /usr/sbin/nologin sshd
    5. Run your new server:
      • sudo /usr/local/sbin/sshd -p 2222 -D -e

    To make changes to source and recompile (or whatevs):

    1. Make sure you’ve cd’d to your code, i.e., where your unzipped code is from step three.
    2. Make your changes to whatever file
    3. make -j$(nproc)
    4. sudo make install
    5. test your changes by running your binary again
      /usr/local/sbin/sshd -V if you’re playing around with the version string. Or whatevs.

  • SSH Dynamic Port Forwarding

    You have three boxes: A, B and C.

    A = Ubuntu client
    B = Ubuntu relay
    C = Windows RDP server

    Host B has two IP addresses, so two NICs, so is part of two networks. Using dynamic port forwarding like this is an effective way to pivot traffic from one network (where Host A is) to another (where Host C is) using Host B as a pivot between the two. This will also show how to access a service on Host C from Host A.

    Prep:

    • Install proxychains and xfreerdp on Host A
    • Install OpenSSH server on Host B
    • Ensure RDP service is enabled on Host C

    On Host A:

    • Edit proxychains.conf.
      • Add an entry like:
      • 127.0.0.1 9050
    • Setup dynamic port forward
      • ssh -D 9050 user@<relay-ip>
      • This creates an SSH tunnel between A and B.
      • Specifically, a connection to local port 9050 is made by the SSH client. Whenever a connection is made to this port by an application, it is forwarded over the secure SSH connection to a destination determined by the application, e.g., a web browser will send packets to google.com.
      • Also, this turns the localhost into a SOCKS proxy listener.
    • Run xfreerdp with proxychains
      • proxychains xfreerdp /v:target-server-ip /u:user /p:pass
    • Voila! You can now access the RDP service from your client machine.

  • Beefy sauce

    Original recipe was to go with Swedish meatballs, but would probably go with steak and pork.

    Ingredients

    • 500ml boiling water
    • Beef stock pot
    • 1tsp Dijon mustard
    • 1tsp soy sauce
    • 40g cream cheese
    • Parsley

    Method

    • You probably just used a pan to cook some meat. Use that one and scrape up all the meaty bits as you go along.
    • Add water to the stock pot, mix it up a bit
    • Pour it in the pan
    • Add mustard and soy sauce, mix it up a bit
    • Let it bubble and reduce a bit for a few minutes
    • Add the cream cheese and parsley
    • Let it bubble a bit more
    • Reduce it to whatever thickness you want
    • Pour it on your food
  • Courgetti

    Yes, the day I wrote this was a sad day.

    Ingredients

    • Courgettes

    Method

    • Spiralise
    • Don’t add salt
    • Spread it out over a plate
      Single layer if possible, so not in a bowl, and not covered
    • Microwave for 60 seconds. No more.
    • Squeeze
      Ideally wrung out in a tea towel. Hands will do otherwise.
      Objective is to get as much water out as possible.
    • Add it to your dish/sauce/whatever.
  • Rich beef jus

    This is tasty. Pour it over steak.

    Ingredients

    • Knorr beef cube pot thing in 150 waters
    • Lardons
    • Thyme leaves
    • Half an onion
    • Onion marmalade (20ml)
    • Balsamic vinegar (15ml)
    • Butter (chunk)

    Method

    • Drizzle olive oil. Brown off lardons. Add onion and thyme when crisp. Cook for four or five mins until onions are soft.
    • Add the above to the steak pan. Add balsamic vinegar, marmalade and stock.
    • Reduce heat, simmer for 10 mins until rich, smooth and coats the back of a spoon.
    • Season, stir in knob of butter.
  • Breakfast hash

    Ingredients

    • Chorizo
    • Onion
    • Two peppers (different colours)
    • Halloumi
    • Potatoes
    • Spinach
    • Fresh tomatoes
    • Wholegrain mustard
    • (Optional) poached egg

    Method

    1. Chop chorizo, render it slowly in a pan
    2. When it looks fatty, add the onions
    3. Add peppers after some amount of time has passed
    4. You should already have diced up the halloumi. Add it.
    5. Add the microwaved or boiled potatoes
    6. Add a load of spinach
    7. Stir it all up
    8. Add the chopped tomatoes
    9. Let the whole lot go slightly mushy, and so it goes a bit juicy
    10. Add some wholegrain mustard and mix it all up again
    11. Poach an egg if you want
    12. Eat
  • Hello world!

    Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

    A quote block

    print("hello world")
    I am a robot

    short code?