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
# Makefile generated by starthdlproject | |
SHELL := /bin/bash | |
vhd_files = $(shell find ../hdl/src/ ../hdl/tb/ \ | |
-regex .*\/[a-zA-Z0-9_\.]+\.vhd[l]? \ | |
-not -regex .*\/[a-zA-Z0-9_\.]+\.cpp\.vhd[l]?) | |
preproc_files = $(shell find ../hdl/src/ ../hdl/tb/ \ | |
-regex .*\/[a-zA-Z0-9_\.]+\.cpp\.vhd[l]?) | |
preproc_basenames = $(shell find ../hdl/src/ ../hdl/tb/ \ |
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
// ==UserScript== | |
// @name StopDisgustingMedicineVideos | |
// @include /^https?://web\.microsoftstream\.com/video/.*$/ | |
// ==/UserScript== | |
/* Import this script in GreaseMonkey | |
* in order to get rid of suggested videos | |
* in Microsoft Stream, when they include | |
* surgical videos you don't feel like | |
* being suggested to watch |
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
// ==UserScript== | |
// @name MicrosoftStreamSortByDate | |
// @include /^https?://web\.microsoftstream\.com/group/.*\?view=videos$/ | |
// ==/UserScript== | |
/* Use this script to sort videos | |
* by Publish Date automatically | |
* on Microsoft Stream. | |
* Inport this script in GreaseMonkey | |
*/ |
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
#!/bin/bash | |
if [ $# -ne 1 ] ; then | |
echo "Usage: $0 <pid>"; | |
echo " "; | |
echo "Get command from pid"; | |
exit -1; | |
fi | |
ps -q $1 -o cmd | tail -n 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
#!/bin/bash | |
# Author: Marco Origlia | |
# License: MIT | |
# Makes use of argparse.bash: github.com/nhoffman/argparse-bash | |
ap=$(which argparse.bash) | |
if [[ ! $ap ]] ; then |
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
+ /classified/**.gpg | |
- /classified/** | |
- /.remote | |
- /.filter |
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
OUTDIR ?= `pwd` | |
DRAFTFLAGS = -draftmode --shell-escape -interaction nonstopmode -output-directory $(OUTDIR) | |
PDFFLAGS = --shell-escape -interaction nonstopmode -output-format pdf -output-directory $(OUTDIR) | |
ALLPDF = $(patsubst %.tex,%.pdf,$(shell find . -iregex \.\/[0-9]+_.*\.tex)) | |
.PHONY: clean cleanpdf all | |
all: $(ALLPDF) |
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
[Unit] | |
Description="Mount Drive - <Remote Name>" | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
ExecStart=/usr/bin/rclone --vfs-cache-mode writes mount remote_name: /path/to/mountpoint | |
Restart=on-failure | |
RestartSec=10 | |
SyslogIdentifier=%i |
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
\newlength{\mycustomheight} | |
\settoheight{\mycustomheight}{\includegraphics[width=0.5\textwidth, keepaspectratio]{wider-image}} | |
% ^^^^^^^^^^^^ Note this cool trick guys! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
% Figures will have the same height though they are set in equally wide minipages :D | |
\begin{figure} | |
\centering | |
\begin{minipage}{0.5\textwidth} | |
\centering | |
\includegraphics[height=\mycustomheight{}, keepaspectratio]{narrower-image} | |
\caption{Caption of narrow} |
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
OUTDIR ?= build | |
IPROOT ?= ../.. | |
IPPATT ?= $(foreach dir,$(wildcard $(IPROOT)/*/hdl),-y$(dir)) | |
.PHONY: setup default | |
default: $(OUTDIR)/$(subst .v,.vcd,$(shell find . -name "tb_*.v" -printf "%P\n")) | |
setup: build |
OlderNewer