Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Trying to go to bed a little wiser than when I woke up

Rajesh Shashi Kumar rajesh-s

:octocat:
Trying to go to bed a little wiser than when I woke up
View GitHub Profile
@rajesh-s
rajesh-s / accelsim_docker.md
Last active Dec 21, 2021
Docker AccelSim Quick
View accelsim_docker.md
docker run -w /root -it accelsim/ubuntu-18.04_cuda-11 /bin/bash
git clone -b release-accelwattch https://github.com/accel-sim/accel-sim-framework/
cd /usr/local/cuda-11.0/
ln -s cuda-11.0 cuda-11
cd -
cd accel-sim-framework
export PATH=$CUDA_INSTALL_PATH/bin:$PATH
git clone https://github.com/accel-sim/gpu-app-collection  
source ./gpu-app-collection/src/setup_environment  
View docker_quick.md
View deps.sh
# AccelSim
sudo apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex \
libglu1-mesa-dev git g++ libssl-dev libxml2-dev libboost-all-dev git g++ \
libxml2-dev vim python-setuptools python-dev build-essential python-pip
pip install pyyaml==5.1 plotly psutil
cuda-toolkit from nvidia
===========
= Summary =
===========
View gist:f84bb81ddb950ed7d931c148c39cff91
git remote set-url origin <new-repo-url>
git push
@rajesh-s
rajesh-s / build-gcc.sh
Created Apr 1, 2021 — forked from jeetsukumaran/build-gcc.sh
Build and Install GCC Suite from Scratch
View build-gcc.sh
#! /bin/bash
GCC_VERSION="5.2.0"
WORKDIR="$HOME/src/"
INSTALLDIR="/platform"
## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools.
## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files.
# xcode-select --install
@rajesh-s
rajesh-s / c.md
Last active Mar 21, 2021
Handy commands
View c.md

Commands

AWK

  • Extract between multiple lines matching a start and an end pattern: bash awk '/start/,/end/' <file>

Switch python versions

View scrolling.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2
*Space:: ; Press Space Key to start or Stop Scrolling endlessly
Toggle := !Toggle
loop
{
@rajesh-s
rajesh-s / note-link-janitor-gh-action-workflow.yml
Last active Dec 12, 2021
Github Workflow to automatically run note-link-janitor on each push
View note-link-janitor-gh-action-workflow.yml
@rajesh-s
rajesh-s / adb_ref.md
Created Dec 31, 2020
ADB quick reference
View adb_ref.md

Platform tools download

adb shell
adb devices
pm list packages
pm uninstall -k --user 0 <name of package>
adb shell cmd package install-existing <name of package> #Restore
@rajesh-s
rajesh-s / newvm.md
Created Dec 12, 2020
Stuff to install on a those scratch VMs for experiments
View newvm.md
sudo apt update && sudo apt upgrade -y && sudo apt install -y git vim-gtk3 build-essential