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
#!/usr/bin/env bash | |
# | |
# See here for more information: https://www.ebi.ac.uk/intact/imex/home.xhtml | |
# All human protein interactions. | |
# Query: taxidA:9606 AND taxidB:9606 | |
URL='https://www.ebi.ac.uk/intact/imex/binaryDownload?&serviceURL=http://www.ebi.ac.uk/Tools/webservices/psicquic/imex/webservices/current/search/&query=taxidA:9606%20AND%20taxidB:9606&format=tab27&conversationContext=1' | |
# This downloads more than 1G of data and compresses it. | |
curl "$URL" | gzip > imex.txt.gz |
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
-- take-screenshot.scpt | |
-- Kamil Slowikowski | |
-- 2019-09-28 | |
-- Get the title of the frontmost application window. | |
-- https://stackoverflow.com/questions/5292204 | |
global frontApp, frontAppName, windowTitle | |
set windowTitle to "" | |
tell application "System Events" | |
set frontApp to first application process whose frontmost is true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env bash | |
# Count pages in all pdf files in the current directory: | |
# | |
# pagecount . | |
# | |
# Count pages in this pdf: | |
# | |
# pagecount file.pdf | |
# |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<html> | |
<body> | |
<a href="karabiner://karabiner/assets/complex_modifications/import?url=https%3A%2F%2Fgist.githubusercontent.com%2Fslowkow%2F275e53573e2aeb60c8304add1e54faf5%2Fraw%2Fc63540925dba76f46293834c24700ebf1578ed10%2Fmouse-buttons-back-forward.json">click here to import into Karabiner-Elements</a> | |
</body> | |
</html> |
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
sudo mkdir -m 0700 /var/www/.ssh | |
sudo chown -R www-data:www-data /var/www/.ssh | |
sudo -u www-data ssh-keygen (empty passphrase) | |
# On Github, paste public key into "Deploy keys" | |
sudo -u www-data bash | |
cd /path/to/repo | |
git clone ... |
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
<!-- Put these scripts in the same folder --> | |
<script src="jquery-1.11.1.min.js"></script> | |
<script src="highcharts.src.js"></script> | |
<script src="map.js"></script> | |
<script src="exporting.js"></script> | |
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> | |
<script> | |
$(function () { |
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
license: mit |