Category: Coding
-
Running Asp.net app with HTTPS on local
-
Learning to use AES encryption
I’ve started working on a simple credentials manager app that runs on the console and I wanted the credentials that are kept on file to be encrypted for obvious reasons. The app is written in C++ and I needed to find and work with an appropriate encryption library. I’ve tried using two libraries: OpenSSL and…
-
Git shallow cloning stuff
so after you use shallow cloning in git using –depth 1, if you call git pull you will find that git will pull all changes not just –depth 1. to honour the –depth 1 from cloning we call call git pull with the same depth: git pull –depth 1 origin master life saving stuff
-
Quick cloning of kernel mainline
git clone –depth 1 https://github.com/torvalds/linux.git linux_mainline using github as it’s a mirror of mainline and depending where you’re accessing the internet from, much faster. the –depth 1 will limit the history to 1 commit back I believe. If you’d need to view more than that then you can probably use git log — [filename] https://stackoverflow.com/questions/278192/view-the-change-history-of-a-file-using-git-versioning
-
TypeScript – Method Overloading
-
Shallow cloning git repos
Just making a note of something that might be very useful going forward. I needed to use `git clone –depth 10 ` to clone a repo but only get the last 10 commits of it. It helped me cloning the linux repo many years back on a horrible internet connection. This essentially doesn’t clone the…
-
Cloud flare – Page Rules
Just remembered that you can make use of Cloud flare’s Page Rules feature to handle URL forwarding from the domain your managing to another domain hosted else where on the internet. I think you also need to setup a CNAME record to make this work: I needed http://twisum.adhir.co.za to redirect to https://young-mesa-51990.herokuapp.com . this simply allows…
-
Exercism Rust – 3 – Leap Year
-
Exercism Rust – 2 – Gigasecond
-
Exercism Rust Lang – 1