summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-11-01 13:36:10 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-11-01 13:36:10 +0100
commitbb015a20f508398c229aaa9a5c88e6c9e9fa2e72 (patch)
tree6324fdd039f466d4188e70f3147fd1dd58533024
parentc (diff)
downloadn-bb015a20f508398c229aaa9a5c88e6c9e9fa2e72.tar
n-bb015a20f508398c229aaa9a5c88e6c9e9fa2e72.tar.gz
n-bb015a20f508398c229aaa9a5c88e6c9e9fa2e72.tar.bz2
n-bb015a20f508398c229aaa9a5c88e6c9e9fa2e72.tar.lz
n-bb015a20f508398c229aaa9a5c88e6c9e9fa2e72.tar.xz
n-bb015a20f508398c229aaa9a5c88e6c9e9fa2e72.tar.zst
n-bb015a20f508398c229aaa9a5c88e6c9e9fa2e72.zip
Diffstat (limited to '')
-rw-r--r--etc/portage/package.accept_keywords/conf1
-rw-r--r--root/.bash_aliases12
2 files changed, 8 insertions, 5 deletions
diff --git a/etc/portage/package.accept_keywords/conf b/etc/portage/package.accept_keywords/conf
index 40ba91c..f9c6ae0 100644
--- a/etc/portage/package.accept_keywords/conf
+++ b/etc/portage/package.accept_keywords/conf
@@ -64,3 +64,4 @@ net-dns/hash-slinger ~*
dev-java/maven-project ~*
dev-java/maven-bin ~*
net-wireless/mdk ~*
+app-editors/vscodium ~*
diff --git a/root/.bash_aliases b/root/.bash_aliases
index 65c81d7..d7730ea 100644
--- a/root/.bash_aliases
+++ b/root/.bash_aliases
@@ -23,10 +23,6 @@ function c () {
gcc -g -Wall -Wextra -pedantic -Wformat -Wformat-security $@ -lm
}
alias pmbootstrap="pmbootstrap --as-root"
-function upload () {
- chmod 0664 "$1"
- sftp -b- upload@4a.si <<< "put '$1' www/`[ '$2'x = x ] && echo $1 || echo $2`"
-}
HISTCONTORL=ignoreboth
shopt -s histappend
HISTSIZE=100000000
@@ -34,7 +30,10 @@ HISTFILESIZE=1000000000
function upload () {
# chmod 0644 "$1"
d=`[ "$2"x = x ] && echo $1 || echo $2`
- sftp -b- upload@upload.sijanec.eu <<< "put '$1' www/$d"
+ sftp -b- upload@upload.sijanec.eu <<EOF
+ progress
+ put '$1' www/$d
+EOF
grep '/$' <<<$d && d=$d`rev <<<$1 | cut -d/ -f1 | rev`
ssh upload@upload.sijanec.eu chmod 0644 "www/$d"
echo https://upload.sijanec.eu./$d | xclip
@@ -75,3 +74,6 @@ function d () {
alias de='docker exec -it `docker ps | tail -n1 | cut -d\ -f1` /bin/bash'
[ -d ~/projects/r/skripti ] && PATH=$PATH:~/projects/r/skripti
export XMLLINT_INDENT=$'\t'
+function j () {
+ javac `sed 's/\.$/.java/' <<<$1` && java `sed -e s/.java// -e 's/\.$//' <<<$1`
+}