-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suck it emmet feat: some changes and I don't even know what they are. feat: some new updates feat: update single commit for master
- Loading branch information
1 parent
1f1da91
commit 68b6835
Showing
33 changed files
with
610 additions
and
353 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin/.local/bin/solang | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
build_name=$(basename $(pwd)) | ||
nrdp_path=$HOME/work/nrdp/$build_name | ||
build_path=$HOME/work/builds/$build_name | ||
thread_count=$(projector thread_count || echo 50) | ||
|
||
if [[ $1 == "configure" ]]; then | ||
$nrdp_path/configure $(projector configure) | ||
cp $build_path/compile_commands.json $nrdp_path | ||
elif [[ $1 == "pvm-add" ]]; then | ||
pvm build add $nrdp_path -name $2 -- $(projector configure) | ||
elif [[ $1 == "build" ]]; then | ||
ninja -C $build_path -j $thread_count | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"aliases":{},"projects":{"/home/mpaulson/work/projector":{"foo":"bar222"}}} |
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#!/usr/bin/env bash | ||
selected=`cat ~/.tmux-cht-languages ~/.tmux-cht-command | fzf` | ||
if [[ -z $selected ]]; then | ||
exit 0 | ||
fi | ||
|
||
read -p "Enter Query: " query | ||
|
||
if grep -qs "$selected" ~/.tmux-cht-languages; then | ||
query=`echo $query | tr ' ' '+'` | ||
tmux neww bash -c "curl cht.sh/$selected/$query & while [ : ]; do sleep 1; done" | ||
tmux neww bash -c "echo \"curl cht.sh/$selected/$query/\" & curl cht.sh/$selected/$query & while [ : ]; do sleep 1; done" | ||
else | ||
tmux neww bash -c "curl cht.sh/$selected~$query & while [ : ]; do sleep 1; done" | ||
tmux neww bash -c "curl -s cht.sh/$selected~$query | less" | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
TMUX_HISTORY_LENGTH=10 | ||
TMUX_HISTORY_FILE=$HOME/.tmux-sessionizer | ||
|
||
add_new_line() { | ||
tail -n1 $1 | read -r _ || echo >> $1 | ||
} | ||
|
||
update_history() { | ||
# TODO: Probably change this to .config once i have the proper version of tmux | ||
if [[ ! -e "$TMUX_HISTORY_FILE" ]]; then | ||
touch $TMUX_HISTORY_FILE | ||
fi | ||
tmux_contents=`cat $TMUX_HISTORY_FILE` | ||
printf "$1\n$tmux_contents" > $TMUX_HISTORY_FILE | ||
sed -ni "1,${TMUX_HISTORY_LENGTH}p" $TMUX_HISTORY_FILE | ||
add_new_line $TMUX_HISTORY_FILE | ||
} | ||
|
||
clear_history() { | ||
rm $TMUX_HISTORY_FILE | ||
touch $TMUX_HISTORY_FILE | ||
} | ||
|
||
if [[ "$1" = "clear" ]]; then | ||
clear_history | ||
exit 0 | ||
elif [[ "$1" = "-v" ]]; then | ||
cat $TMUX_HISTORY_FILE | ||
exit 0 | ||
elif [[ $# -eq 1 ]]; then | ||
if [[ $# -eq 1 ]]; then | ||
selected=$1 | ||
elif [[ $# -eq 2 && "$1" = "restore" ]]; then | ||
history_length=`cat $TMUX_HISTORY_FILE | wc -l` | ||
if [[ $2 -gt $history_length ]]; then | ||
echo "Requested $2 item, but there is only $history_length available." | ||
exit 1 | ||
elif [[ $2 -ge $TMUX_HISTORY_LENGTH ]]; then | ||
echo "cannot provide a length greater than $TMUX_HISTORY_LENGTH" | ||
exit 1 | ||
fi | ||
selected=`cat $TMUX_HISTORY_FILE | sed -n "$2,${2}p"` | ||
else | ||
items=`find ~/work -maxdepth 1 -mindepth 1 -type d` | ||
items+=`find ~/personal -maxdepth 1 -mindepth 1 -type d` | ||
items+=`find ~ -maxdepth 1 -mindepth 1 -type d` | ||
selected=`echo "$items" | fzf` | ||
selected=$(find ~/work/builds ~/ ~/work ~/personal ~/personal/yt -mindepth 1 -maxdepth 1 -type d | fzf) | ||
fi | ||
|
||
if [[ -z $selected ]]; then | ||
exit 0 | ||
fi | ||
|
||
tmux_session_name=`basename $selected | tr . _` | ||
update_history $selected | ||
selected_name=$(basename "$selected" | tr . _) | ||
tmux_running=$(pgrep tmux) | ||
|
||
tmux switch-client -t $tmux_session_name | ||
if [[ $? -eq 0 ]]; then | ||
if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then | ||
tmux new-session -s $selected_name -c $selected | ||
exit 0 | ||
fi | ||
|
||
tmux new-session -c $selected -d -s $tmux_session_name && tmux switch-client -t $tmux_session_name || tmux new -c $selected -A -s $tmux_session_name | ||
if ! tmux has-session -t $selected_name 2> /dev/null; then | ||
tmux new-session -ds $selected_name -c $selected | ||
fi | ||
|
||
tmux switch-client -t $selected_name |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
tmux-windowizer client | ||
tmux-windowizer server | ||
|
||
branch_name=$(basename $1) | ||
tmux-windowizer client cd $branch_name | ||
tmux-windowizer client ./tvui client | ||
|
||
tmux-windowizer server cd $branch_name | ||
tmux-windowizer server ./tvui server | ||
|
||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
local dap_install = require("dap-install") | ||
dap_install.config("chrome", {}) | ||
|
||
|
||
local dap = require("dap"); | ||
dap.configurations.typescriptreact = { -- change to typescript if needed | ||
{ | ||
type = "chrome", | ||
request = "attach", | ||
program = "${file}", | ||
cwd = vim.fn.getcwd(), | ||
sourceMaps = true, | ||
protocol = "inspector", | ||
port = 9222, | ||
webRoot = "${workspaceFolder}" | ||
} | ||
} | ||
|
||
require('dap.ext.vscode').load_launchjs() |
Oops, something went wrong.