Skip to content

Instantly share code, notes, and snippets.

@vassvik
vassvik / file.go
Created September 25, 2017 00:41
`using` in Odin
// Odin has a powerful keyword called `using`,
// which is similar to the `using` keyword in other languages like C++,
// but also a lot more versatile and powerful in Odin.
// The simplest case, that is similar to C++'s usage: it makes the names of an import name visible
// in function scope. Be careful, as this might call name collision.
fmt.println("This is a new line");
using fmt;
println("This is a new line, without fmt.");
@warecrash
warecrash / makekali.sh
Last active March 10, 2025 21:20
Convert Debian to Kali
apt update
apt -y install wget gnupg dirmngr
wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import
gpg --keyserver hkp://keys.gnupg.net --recv-key 44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
apt update
apt -y upgrade
apt -y dist-upgrade
apt -y autoremove --purge