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
# Assume we are in your home directory | |
cd ~/ | |
# Clone the repo from GitLab using the `--mirror` option | |
$ git clone --mirror [email protected]:mario/my-repo.git | |
# Change into newly created repo directory | |
$ cd ~/my-repo.git | |
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |
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
import sys | |
import requests | |
import PyPDF2 | |
import requests | |
import os | |
crossref = 'http://api.crossref.org/' | |
def rename(pdf): | |
"""Rename an academic article pdf file with human readable format |
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 | |
# Put under /etc/autoMemoryReclaim.sh | |
# set variables at the top | |
low_cpu_usage=50 # Note: We work with integer percentages (e.g., 50%) | |
idle_time=2 # Minutes | |
cached_memory_limit=1000 # MB | |
percent_memory_to_reclaim=5 # Percentage as an integer | |
wait_period=3 |