Skip to content

Instantly share code, notes, and snippets.

View MohamedElashri's full-sized avatar

Mohamed Elashri MohamedElashri

View GitHub Profile
@JohannesBuchner
JohannesBuchner / convert_setup_py_to_pyproject_toml.py
Created March 17, 2022 16:42
Convert setup.py to pyproject.toml (WIP)
# Help create a pyproject.toml from a setup.py file
#
# USAGE:
# 1)
# replace "from [a-z.]* import setup" in your setup.py
# with "from convert_setup_py_to_pyproject_toml import setup"
# 2)
# run the resulting script with python, with this script in the PYTHONPATH
#
# The above can be achieved on Linux, for example, with:
@bruce-willis
bruce-willis / yunohost-oracle-free-tier.md
Last active October 5, 2024 06:15
How to setup YunoHost at Oracle free tier VM (works on AMD and ARM servers)
  1. Register for Oracle Cloud Free Tier
  2. Create compute instance
    • change image to Canonical Ubuntu
    • confirm that a public IPv4 address is assigned
    • upload your public ssh key
    • leave everything blank in Boot volume
  3. Enable Internet Access
    • Instances → Instance details → Subnet → Default Security List → Add Ingress Rules
    • HTTP: Stateless: Checked
@admorris
admorris / update_conversions_table.py
Created October 28, 2021 10:54
Update conversions.csv in scikit-hep/particle with LHCb names
#!/usr/bin/env python
import requests
import csv
def download_table(url="https://gitlab.cern.ch/lhcb-conddb/DDDB/-/raw/master/param/ParticleTable.txt"):
r = requests.get(url)
r.raise_for_status()
lines = r.text.split("\n")
@sugatoray
sugatoray / latex-open-in-overleaf-badge-example.md
Last active July 22, 2024 20:05
Open LaTeX in Overleaf directly from GitHub

overleaf-badge-image

Example badge: open-in-overleaf

[Overleaf][#overleaf] is an online service that allows you to create/edit/collaborate on LaTeX documents. For details on how the badge must be used, see the Example below.

  • Sample badge: Open in Overleaf
@JfrAziz
JfrAziz / docker-compose.yml
Last active March 14, 2025 14:43
Install Nginx Proxy Manager and disable port 81 from outside
version: "3"
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '81:81'
environment:

Overleafのバックアップを自動で取るためのメモ(無料)

How To

  1. Overleafでプロジェクトを立ち上げる.

  2. GitHubで(プライベート)リポジトリを作る

  3. 作ったリポジトリを以下のような構成にする.

@brucebentley
brucebentley / iOS Shortcuts Catalog.md
Last active April 26, 2025 01:00
This is a public resource designed to help people get started with Siri Shortcuts & the Shortcuts app. It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Bruce's iOS Shortcut Catalog

Hello and welcome to my Shortcuts Catalog!

This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.

It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Enjoy!

@xirkus
xirkus / terraform_the_missing_manual.md
Last active July 8, 2023 11:00
Terraform - The Missing Manual

Terrafrom Logo

Terraform - The Missing Manual

Infrastructure-as-Code is a principal that drives modern DevOps practice. I discuss the current state of Terraform and provide some basic guidelines/principles regarding how to structure it's usage for your project.

Tables of Contents

@FreddieOliveira
FreddieOliveira / docker.md
Last active April 27, 2025 16:55
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary