Skip to content

Instantly share code, notes, and snippets.

View louisaslett's full-sized avatar
🤓

Louis Aslett louisaslett

🤓
View GitHub Profile
@mmozeiko
mmozeiko / _miniperf_readme.md
Last active November 5, 2024 05:53
get PMU counter values with ETW, perf or kperf

MiniPerf

Example of how to capture CPU counters with ETW on Windows, perf on Linux or kperf on Apple.

Using ETW needs somewhat recently updated Windows 10 or 11. Not sure about exact version.

Currently tested on:

  • etw on Qualcomm Snapdragon X Elite, Windows 11, arm64
  • etw on AMD Zen 3, Windows 11 (with virtualization enabled in BIOS)
@colebob9
colebob9 / InstallQEMUOnMac.sh
Last active May 1, 2020 12:10
Installs QEMU on a Mac, doesn't need admin
# InstallQEMUOnMac v1
# colebob9
# Installs QEMU using homebrew and downloads Ubuntu on a Mac
# Execute `chmod +x InstallQEMUOnMac.sh` before using.
echo "This will install QEMU on your Mac. Please note that this will take about 40 minutes to get through. Go watch some YouTube videos or something cause you're going to be here for a while. This script will take care of everything."
echo "Please make sure you have your charger plugged in, and a lot of patience."
echo "Do not *at any point* exit out of this Terminal window, even if it looks stuck. It's not."
echo "It is also recommended to have the Mac apps \"Amphetamine\" or \"Caffeine\" installed and enabled now, so your Mac doesn't sleep. Do not close your lid either."
@santisbon
santisbon / Update-branch.md
Last active October 16, 2024 09:09
Deploying from #Git branches adds flexibility. Bring your feature branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master.

@JoshData
JoshData / build_logins.sh
Last active November 26, 2020 17:59
rstudio multi-user helper
#!/bin/bash
# Start an AWS instance with one of the AMIs provided by:
# http://www.louisaslett.com/RStudio_AMI/
#
# Get this script.
# wget https://gist.githubusercontent.com/JoshData/615aa18cecb8a6596f59/raw/1b43765552862af98cb16d95dd236a81f6c5b464/build_logins.sh
# chmod +x build_logins.sh
#
# Then use this script to create many logins on the system.