diff --git a/abnt-estilo-fdusp-notas-de-rodape.csl b/abnt-estilo-fdusp-notas-de-rodape.csl new file mode 100644 index 0000000..a337f87 --- /dev/null +++ b/abnt-estilo-fdusp-notas-de-rodape.csl @@ -0,0 +1,441 @@ + + diff --git a/abnt-estilo-fdusp.csl b/abnt-estilo-fdusp.csl new file mode 100644 index 0000000..94335de --- /dev/null +++ b/abnt-estilo-fdusp.csl @@ -0,0 +1,610 @@ + + diff --git a/abnt-renato-antigo.csl b/abnt-renato-antigo.csl new file mode 100644 index 0000000..19e17ab --- /dev/null +++ b/abnt-renato-antigo.csl @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/abnt-renato-fdusp.csl b/abnt-renato-fdusp.csl new file mode 100644 index 0000000..3ffd31b --- /dev/null +++ b/abnt-renato-fdusp.csl @@ -0,0 +1,607 @@ + + diff --git a/abnt-renato.csl b/abnt-renato.csl new file mode 100644 index 0000000..f58ef6e --- /dev/null +++ b/abnt-renato.csl @@ -0,0 +1,331 @@ + + diff --git a/abnt-rxsr-completo-v1.csl b/abnt-rxsr-completo-v1.csl new file mode 100644 index 0000000..f2704a4 --- /dev/null +++ b/abnt-rxsr-completo-v1.csl @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/abnt-ufpr.csl b/abnt-ufpr.csl new file mode 100644 index 0000000..82e8428 --- /dev/null +++ b/abnt-ufpr.csl @@ -0,0 +1,236 @@ + + \ No newline at end of file diff --git a/abnt.csl b/abnt.csl new file mode 100644 index 0000000..be7b5ca --- /dev/null +++ b/abnt.csl @@ -0,0 +1,463 @@ + + diff --git a/bin/find-duplicate.sh b/bin/find-duplicate.sh new file mode 100755 index 0000000..3531069 --- /dev/null +++ b/bin/find-duplicate.sh @@ -0,0 +1,2 @@ +#!/bin/bash +find $1 -not -empty -type f -printf "%s\n" | sort -rn | uniq -d | xargs -I{} -n1 find -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 --all-repeated=separate diff --git a/bin/pandoc-md2pdf.sh b/bin/pandoc-md2pdf.sh index 39764d1..89dbdc3 100755 --- a/bin/pandoc-md2pdf.sh +++ b/bin/pandoc-md2pdf.sh @@ -3,4 +3,22 @@ ORIGIN=$1 DEST=${ORIGIN%.*} -pandoc -f markdown -t latex --pdf-engine=xelatex -V papersize=a4 -V documentclass=article -V margin-top=1in -V margin-left=1in -V margin-right=1in -V margin-bottom=1in -V fontfamily=times -V fontsize=12pt -V lang=pt-BR -o $DEST.pdf $ORIGIN; xdg-open $DEST.pdf +pandoc \ + -f markdown \ + -t latex \ + --pdf-engine=xelatex \ + -V papersize=a4 \ + -V documentclass=article \ + -V margin-top=1in \ + -V margin-left=1in \ + -V margin-right=1in \ + -V margin-bottom=1in \ + -V fontfamily=times \ + -V mainfont="Times New Roman" \ + -V monofont="Ubuntu Mono" \ + -V fontsize=12pt \ + -V lang=pt-BR \ + -o $DEST.pdf \ + $ORIGIN + +# xdg-open $DEST.pdf diff --git a/bin/speedtest.sh b/bin/speedtest.sh old mode 100644 new mode 100755 diff --git a/bin/zshrc-ubuntu-lenovo-yoga500.sh b/bin/zshrc-ubuntu-lenovo-yoga500.sh old mode 100644 new mode 100755 diff --git a/install-bin.sh b/install-bin.sh new file mode 100755 index 0000000..85ac14c --- /dev/null +++ b/install-bin.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +[ -d ${HOME}/bin ] +mkdir ${HOME}/bin +for f in $(ls bin/* --color=no) ; do ln -s $f ${HOME}/${f%.sh}; done + +exit 0 diff --git a/systemd/dropbox-renato.service b/systemd/dropbox-renato.service new file mode 100644 index 0000000..debde73 --- /dev/null +++ b/systemd/dropbox-renato.service @@ -0,0 +1,18 @@ +[Unit] +Description=Dropbox Service +After=network.target + +[Service] +ExecStart=/bin/sh -c '/usr/bin/dropbox start' +ExecStop=/bin/sh -c '/usr/bin/dropbox stop' +PIDFile=/home/renato/.dropbox/dropbox.pid +User=renato +Group=renato +Type=forking +Restart=on-failure +RestartSec=5 +StartLimitInterval=60s +StartLimitBurst=3 + +[Install] +WantedBy=multi-user.target diff --git a/systemd/dropbox@.service b/systemd/dropbox@.service new file mode 100644 index 0000000..67c8769 --- /dev/null +++ b/systemd/dropbox@.service @@ -0,0 +1,13 @@ +[Unit] +Description=Dropbox Daemon +After=network.target + +[Service] +Type=simple +User=%i +ExecStart=/usr/bin/dropbox +ExecStop=/bin/kill -HUP $MAINPID +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/systemd/grive-changes@.service b/systemd/grive-changes@.service new file mode 100644 index 0000000..b6bea81 --- /dev/null +++ b/systemd/grive-changes@.service @@ -0,0 +1,11 @@ +[Unit] +Description=Google drive sync (changed files) + +[Service] +ExecStart=/usr/local/lib/grive/grive-sync.sh listen "%i" +Type=simple +Restart=always +RestartSec=30 + +[Install] +WantedBy=default.target diff --git a/systemd/grive-timer@.service b/systemd/grive-timer@.service new file mode 100644 index 0000000..5d86a10 --- /dev/null +++ b/systemd/grive-timer@.service @@ -0,0 +1,6 @@ +[Unit] +Description=Google drive sync +After=network-online.target + +[Service] +ExecStart=/usr/local/lib/grive/grive-sync.sh sync "%i" diff --git a/systemd/grive-timer@.timer b/systemd/grive-timer@.timer new file mode 100644 index 0000000..32f14b9 --- /dev/null +++ b/systemd/grive-timer@.timer @@ -0,0 +1,11 @@ +[Unit] +Description=Google drive sync (fixed intervals) + +[Timer] +OnCalendar=*:0/5 +OnBootSec=3min +OnUnitActiveSec=5min +Unit=grive-timer@%i.service + +[Install] +WantedBy=timers.target diff --git a/systemd/mattermost.service b/systemd/mattermost.service new file mode 100644 index 0000000..c507284 --- /dev/null +++ b/systemd/mattermost.service @@ -0,0 +1,19 @@ +[Unit] +Description=Mattermost +After=network.target +After=mysql.service +Requires=mysql.service + +[Service] +Type=notify +ExecStart=/opt/mattermost/bin/mattermost +TimeoutStartSec=3600 +Restart=always +RestartSec=10 +WorkingDirectory=/opt/mattermost +User=mattermost +Group=mattermost +LimitNOFILE=49152 + +[Install] +WantedBy=mysql.service diff --git a/systemd/pandoc-as-a-service.service b/systemd/pandoc-as-a-service.service new file mode 100644 index 0000000..86d3181 --- /dev/null +++ b/systemd/pandoc-as-a-service.service @@ -0,0 +1,15 @@ +[Unit] +Description=pandoc-as-a-service - If you need to convert text from one markup format into another, pandoc-as-a-service is your swiss-army knife. +Documentation=https://github.com/mrded/pandoc-as-a-service +After=network.target + +[Service] +Environment="PORT=3001" "PATH=/home/renato/.cabal/bin:/home/renato/.local/bin:/home/renato/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:/usr/sbin:/usr/bin:/sbin:/bin:" +Type=simple +User=renato +WorkingDirectory=/home/renato/WebApp/pandoc-as-a-service/ +ExecStart=/usr/bin/node index.js $PORT +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/systemd/phabricator-aphlict.service b/systemd/phabricator-aphlict.service new file mode 100644 index 0000000..7f8bb61 --- /dev/null +++ b/systemd/phabricator-aphlict.service @@ -0,0 +1,13 @@ +[Unit] +Description=Phabricator Aphlict +After=syslog.target network.target mysql.service + +[Service] +Type=forking +User=phabricator +Group=phabricator +ExecStart=/var/www/phabricator/phabricator/bin/aphlict start +ExecStop=/var/www/phabricator/phabricator/bin/aphlict stop + +[Install] +WantedBy=multi-user.target diff --git a/systemd/phabricator-phd.service b/systemd/phabricator-phd.service new file mode 100644 index 0000000..f1481ac --- /dev/null +++ b/systemd/phabricator-phd.service @@ -0,0 +1,13 @@ +[Unit] +Description=Phabricator Daemons +After=syslog.target network.target mysql.service + +[Service] +Type=forking +User=phabricator +Group=phabricator +ExecStart=/var/www/phabricator/phabricator/bin/phd start +ExecStop=/var/www/phabricator/phabricator/bin/phd stop + +[Install] +WantedBy=multi-user.target diff --git a/systemd/vncserver@.service b/systemd/vncserver@.service new file mode 100644 index 0000000..2fe3c50 --- /dev/null +++ b/systemd/vncserver@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Start TightVNC server at startup +After=syslog.target network.target + +[Service] +Type=simple +User=renato +PAMName=login +PIDFile=/home/renato/.vnc/%H:%i.pid +ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1 +ExecStart=/usr/bin/vncserver -depth 24 -localhost=no -geometry 800x600 :%i +ExecStop=/usr/bin/vncserver -kill :%i + +[Install] +WantedBy=multi-user.target