Coder Social home page Coder Social logo

mager-scripts's Introduction

PDF Cutter.py

Script Python untuk membagi file PDF menjadi beberapa file berdasarkan jumlah halaman yang ditentukan dan untuk mengkompresi ukuran file pdf sehingga mudah ketika ingin menerjemahkanya di Google Translate.

Penggunaan PDF Cutter.py

  1. Pastikan Python 3.x telah terinstal.

  2. Unduh / salin Script dari repositori ini.

  3. Buka terminal atau command prompt di direktori tempat Anda menyimpan script.

  4. Jalankan skrip dengan perintah berikut:

    python PDF Cutter.py
  5. Ikuti petunjuk yang muncul di terminal untuk memotong & mengkompres file PDF sesuai kebutuhan.

Catatan

  • Pastikan Anda telah menginstal dependensi yang diperlukan, seperti PyPDF2, sebelum menjalankan script ini. Anda dapat menginstalnya dengan menjalankan pip install PyPDF2 di terminal.

  • Tempatkan Script dan File PDF di dalam satu folder yang sama.

add_hosts.py

Script Python untuk menambahkan, menghapus, atau menampilkan daftar host di file /etc/hosts pada lingkungan Linux dan macOS.

Persyaratan

  • Python 3.x

Penggunaan add_hosts.py

  1. Pastikan Python 3.x telah terinstal di sistem Anda.

  2. Buka terminal di lingkungan Linux atau macOS.

  3. Unduh skrip dengan menjalankan perintah berikut:

    https://github.com/alvinhayy/MageR-Scripts.git
  4. Pindah ke direktori skrip:

    cd MageR-Scripts
  5. Jalankan skrip dengan argumen yang sesuai. Contoh penggunaan:

    • Menampilkan list hosts:

      python add_hosts.py -l
    • Menambahkan host baru:

      python add_hosts.py -ip 192.168.1.1 -hn example.com
    • Menghapus host berdasarkan nama:

      python add_hosts.py -d -hn example.com
  6. Perlu diketahui bahwasanya perlu hak akses Root untuk menjalankan scripts ini.

Catatan

  • Skrip ini hanya dapat dijalankan di lingkungan Linux dan macOS. Jika Anda menggunakan Windows, pastikan Anda memiliki emulator terminal yang mendukung lingkungan Linux.

  • Jika skrip tidak berjalan dengan benar, pastikan bahwa Anda menjalankannya di terminal yang memiliki izin administratif dan memiliki hak akses ke file hosts.

Lisensi

Skrip ini dilisensikan di bawah MIT License.

mager-scripts's People

Contributors

alvinhayy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.