Skip to content

Instantly share code, notes, and snippets.

@py7hon
Last active September 21, 2020 02:04
Show Gist options
  • Save py7hon/b9cf84c3e19cfd7b85fdc6046ead8b38 to your computer and use it in GitHub Desktop.
Save py7hon/b9cf84c3e19cfd7b85fdc6046ead8b38 to your computer and use it in GitHub Desktop.
MAKE MIRROR PACKAGE WITH GOOGLE DRIVE https://artixlinux.0xd.workers.dev/
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "artix-sync.ipynb",
"provenance": [],
"collapsed_sections": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "ktClWtxz3fBQ",
"colab_type": "text"
},
"source": [
"# **MAKE MIRROR WITH GOOGLE DRIVE**"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "jDrUBFXW1Ew6",
"colab_type": "text"
},
"source": [
"# Mount Drive"
]
},
{
"cell_type": "code",
"metadata": {
"id": "N52ftb5H4KP2",
"colab_type": "code",
"colab": {}
},
"source": [
"from google.colab import drive\n",
"drive.mount('/content/gdrive')"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
"id": "ZsF4PR-81geu",
"colab_type": "text"
},
"source": [
"# Go to Directory"
]
},
{
"cell_type": "code",
"metadata": {
"id": "XzWp8fb22HnO",
"colab_type": "code",
"colab": {}
},
"source": [
"%cd /content/gdrive/My\\ Drive"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
"id": "mSgm0_762Zls",
"colab_type": "text"
},
"source": [
"# Make Directory"
]
},
{
"cell_type": "code",
"metadata": {
"id": "_m0fCEgJ2fQw",
"colab_type": "code",
"colab": {}
},
"source": [
"%mkdir artixlinux"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
"id": "MmzQc1iM2iiw",
"colab_type": "text"
},
"source": [
"# Get Bash Script"
]
},
{
"cell_type": "code",
"metadata": {
"id": "toby_viF4Ota",
"colab_type": "code",
"colab": {}
},
"source": [
"!wget https://snowfag.0xd.workers.dev/artix-sync.sh"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {
"id": "CbToevvG3Le4",
"colab_type": "text"
},
"source": [
"# Execute Bash Script"
]
},
{
"cell_type": "code",
"metadata": {
"id": "aTD1tVM-3Qya",
"colab_type": "code",
"colab": {}
},
"source": [
"!sh artix-sync.sh"
],
"execution_count": null,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment