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
apt install flex bison | |
git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1 | |
cd WSL2-Linux-Kernel/tools/perf | |
make -j8 | |
sudo cp perf /usr/local/bin |
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
require 'rake' | |
desc "Install dot files as symbolic links" | |
task :install do | |
dots = File.join(Dir.getwd, "home") | |
home = Dir.home | |
backup = File.join(home, ".backup-dotfiles") | |
Dir.mkdir(backup) unless File.directory?(backup) | |
files = Dir.entries(dots) - [".", ".."] | |
files.each do |file| |