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
alias ros='touch ~/.roscomp && zsh ; exit' | |
export FZF_DEFAULT_OPTS="--reverse" | |
source /usr/share/doc/fzf/examples/key-bindings.zsh | |
source /usr/share/doc/fzf/examples/completion.zsh | |
if [ ! -f ~/.roscomp ] ; then | |
source /home/srathi/.local/share/fzf-zsh-completion.sh # Breaks ROS Completion | |
else | |
rm ~/.roscomp | |
fi |
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
xmodmap -e "keysym Print = Menu" 2> /dev/null | |
# Setup Paths | |
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.cargo/bin" | |
export PATH=/usr/local/cuda-11.7/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
# export LD_LIBRARY_PATH=/usr/local/cuda-11.7/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}:${HOME}/.local/opt/glibc/glibc232/lib | |
export PATH=$PATH:/home/srathi/.spicetify | |
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
# Generated from CLion C/C++ Code Style settings | |
BasedOnStyle: LLVM | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: None | |
AlignOperands: Align | |
AllowAllArgumentsOnNextLine: false | |
AllowAllConstructorInitializersOnNextLine: false | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: Always |
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
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:simpleType name="SubstitutionType"> | |
<xs:restriction base="xs:string"> | |
<xs:pattern value="$\(anon .*|$\(arg .*|$\(dirname .*|$\(env .*|$\(eval .*|$\(find .*|$\(optenv .*"/> | |
</xs:restriction> | |
</xs:simpleType> | |
<xs:simpleType name="BoolType"> | |
<xs:union memberTypes="SubstitutionType"> |
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
#include <ros/ros.h> | |
#include <rosgraph_msgs/Clock.h> | |
template <typename T> auto to_ros(const T &t) { | |
auto dur = std::chrono::duration_cast<std::chrono::nanoseconds>(t); | |
return std::make_pair(int32_t(std::chrono::duration_cast<std::chrono::seconds>(dur).count()), | |
int32_t(dur.count() % 1000000000UL)); | |
} | |
int main(int argc, char **argv) { |
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
#! /usr/bin/env python3 | |
from sys import argv | |
import rospy | |
def cb(msg, cb_args): | |
counters, i = cb_args | |
counters[i] += 1 |
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
# Disable default <Super>${i} behavior | |
gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false | |
for i in $(seq 1 9); do gsettings set org.gnome.shell.extensions.dash-to-dock "app-hotkey-${i}" '[]'; done | |
for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings "switch-to-application-${i}" '[]'; done | |
for i in {1..10}; do gsettings set "org.gnome.desktop.wm.keybindings" "switch-to-workspace-${i}" "['<Super>$([ ${i} -eq 10 ] && echo -n 0 || echo -n $i)']"; done | |
for i in {1..10}; do gsettings set "org.gnome.desktop.wm.keybindings" "move-to-workspace-${i}" "['<Super><Shift>$([ ${i} -eq 10 ] && echo -n 0 || echo -n $i)']"; done |
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
#include <memory> | |
#include <tuple> | |
#include <ros/ros.h> | |
#include <sensor_msgs/PointCloud2.h> | |
#include <sensor_msgs/point_cloud2_iterator.h> | |
template <bool RGB = false> class PCPublisher { |
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
accountsservice-ubuntu-schemas/focal,focal,now 0.0.7+17.10.20170922-0ubuntu1 all [installed,automatic] | |
accountsservice/focal-updates,focal-security,now 0.6.55-0ubuntu12~20.04.6 amd64 [installed,automatic] | |
acl/focal,now 2.2.53-6 amd64 [installed,automatic] | |
acpi-support/focal,now 0.143 amd64 [installed,automatic] | |
acpid/focal,now 1:2.0.32-1ubuntu1 amd64 [installed,automatic] | |
adduser/focal,focal,now 3.118ubuntu2 all [installed,automatic] | |
adwaita-icon-theme/focal-updates,focal-updates,now 3.36.1-2ubuntu0.20.04.2 all [installed,automatic] | |
aisleriot/focal,now 1:3.22.9-1 amd64 [installed,automatic] | |
alsa-base/focal,focal,now 1.0.25+dfsg-0ubuntu5 all [installed,automatic] | |
alsa-topology-conf/focal,focal,now 1.2.2-1 all [installed,automatic] |
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
#! /usr/bin/zsh | |
eval $(ssh-agent) ; ssh-add $ZDOTDIR/.ssh/id_rsa |
OlderNewer