This file contains hidden or 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
| [vnc] | |
| enabled = true | |
| port = 5901 | |
| filter = vnc | |
| logpath = /var/log/auth.log |
This file contains hidden or 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
| /* | |
| Queries NVIDIA GPU for useful information. | |
| Please compile with nvcc. | |
| */ | |
| #include <stdio.h> | |
| int main() { | |
| int nDevices; |
This file contains hidden or 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/sh | |
| # | |
| # Convert Markdown with LaTeX directives to a PDF file. | |
| # | |
| # Requirements: pandoc | |
| # | |
| # Run this inside your document folder: | |
| # md2tex.sh <MARKDOWN FILE> <OUTPUT FILE> | |
| # | |
| # where: |
This file contains hidden or 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/sh | |
| # | |
| # Creates movie file based on sequential images in the current directory. | |
| # | |
| # Usage: movie.sh <image extension> <fps> <output file basename> | |
| # | |
| # Example: | |
| # | |
| # $ movie.sh png 5 movie | |
| # |
This file contains hidden or 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
| # Obtained from https://stackoverflow.com/a/1124851/793218 | |
| # | |
| for p in os.environ["PYTHONPATH"].split(":"): | |
| for r,d,f in os.walk(p): | |
| for files in f: | |
| if files == "filename.extension": | |
| print(os.path.join(r,files)) |
This file contains hidden or 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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <time.h> | |
| int search(double xref, size_t length, double *x) { |
This file contains hidden or 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
| /* | |
| example.i | |
| "Interface file" which is the input to SWIG. Obtained | |
| from http://www.swig.org/tutorial.html. | |
| */ | |
| %module example | |
| %{ | |
| /* Put header files here or function declarations like below */ |
This file contains hidden or 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
| /* | |
| File : example.c | |
| Obtained from http://www.swig.org/tutorial.html | |
| */ | |
| #include <time.h> | |
| double My_variable = 3.0; | |
| int fact(int n) { |
This file contains hidden or 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/sh | |
| # | |
| # Syncs the content of the current directory with a remote server using rsync | |
| # via SSH. | |
| # | |
| # Usage: csync.sh <user@remoteserver> <remote path where directory will be synced> | |
| # | |
| # Example: csync.sh nemmen@alphacrucis pluto | |
| # check if there were command-line arguments |
This file contains hidden or 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/awk -f | |
| # | |
| # Processes a LaTeX/TeX file for a "clean" submission to arXiv. | |
| # Removes all comments. | |
| # | |
| # How to use it: | |
| # | |
| # $ arxiv.awk origin.tex > destination.tex | |
| $0 !~ /^%/ |