• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of personal scripts.

A collection of personal scripts

v1.4 license Python Bash
code size repo size total lines

Table of contents

Introduction

This repository contains some scripts I write for other personal and working projects. I keep them here for two reasons: first, to keep them easily accessible to me in case of the needing to retrieve some parts of code; secondly, to let everybody accessing them freely.

For each script folder there is a requirements.txt file which contains prerequisites for correct usage.

If you want to use one of my scripts please cite them with this template citation file.

Python

size_of_dir.py

Description: script used to compute the size of a single or more directories in a precise way, by considering also all the subdirectories and files.

Arguments:

  • --paths: directory path, or paths. Example: "path_1 path_2 path_n".
  • --message: a flag to turn on/off the final message.
  • --exception: exclude a particular file from the final count.

dirs_remover.py

Description: script used to efficiently remove directories in parallel.

Arguments:

  • --dirs: contains path to dirs to be removed in parallel. Example: "dir_1 dir_2 dir_3".

send_whatsapp.py

Description: script used to send whatsapp messages using Twilio API. It can be easily used for bots.

Arguments:

  • --number: your personal telephone number (with prefix and +).
  • --message: the message to be sent.

system_info.py

Description: script used to get current device information (RAM, CPU, etc...).

Bash

debug.sh

Description: script used to debug C/C++ code with Valgrind and cppcheck.

Requirements:

Arguments:

  • $1: debug option (cppcheck, memcheck, helgrind etc...).
  • $2: source file to be debugged.

update.sh

Description: script used to update a repository without using git.

Requirements:

setup_env.sh

Description: script used to create a virtual environment specifying Python version, environment name and requirements file. If it is the first time you run it, a virtual environment will be created and activated and prerequisites Python modules will be installed. From the second time on, the script will simply activate the virtual environment.

⚠️ Launch it with source setup_env.sh since source command is used into the script.

Requirements:

Arguments:

  • $1: Python version.
  • $2: Virtual environment name.
  • $3: Requirements file.

include_tests.sh

Description: script used to launch include tests of a .h/.hpp c++ file. Basically it tests if the file can be included correctly in a generic program and if there are no inline errors in case of multiple inclusion from different files.

Requirements:

  • g++ compiler.

Arguments:

  • $1: the input .h/.hpp file to be tested for include. Use complete path in string format.

benchmarking.sh

Description: script used to optimize benchmark result precision. To use it open the script and add your benchmark command in the respective line, doesn't matter which command you prefer, it is not relevant. The script allows to set scaling governor to "precision", to disable Turboboost, to drop file cache and to disable address space randomization. All these operations will improve the precision of the result. At the end all the settings will be restored.

Arguments:

  • $1: the number of benchmarking iterations.

CMake

Qt installer

Description: script used to install Qt. Default is Qt6 but the version can be changed from the script.

Stargazers over time

Stargazers over time

More Repositories

1

osmanip

A cross-platform library for output stream manipulation using ANSI escape sequences.
C++
212
star
2

ptc-print

A single-header cross-platform library for custom printing to the output stream.
C++
42
star
3

key-manager

A desktop app for password management and creation, developed using Qt.
C++
29
star
4

higgs-decay-classification

Classification of Higgs boson decays using machine learning. Project for the "Tandem Project" activity at Master degree in Physics.
Python
23
star
5

SAFD-algorithm

An app to compute the coefficients of a function development in a spherical harmonics convergent series.
C++
20
star
6

QUnfold

A module to perform the statistical unfolding / deconvolution / matrix-inversion problem using quantum annealing with D-Wave quantum computer.
Python
18
star
7

arsenalgear-py

A library containing general purpose Python utils.
Python
14
star
8

snake-game

A snake game with scores, options, audio and more created using SFML.
C++
12
star
9

useful-guides

A set of useful guides about general computing and physics teaching I wrote for beginners.
7
star
10

WaveNCC

An app to compute the normalization coefficients of a given set of orthogonal 1D complex wave functions.
Python
6
star
11

root-framework-installer

A shell script to automatically install the ROOT framework on Ubuntu, Windows or MacOS operating systems.
Shell
5
star
12

matrixop

A C++11 matrix algebra library. Project for the exam "Elementi di programmazione per la fisica" at Bachelor in Physics.
C++
4
star
13

arsenalgear-cpp

A library containing general purpose C++ utils.
C++
3
star
14

PyXSec

Python framework to measure differential cross-sections of particle physics processes using classical- and quantum-computing based unfolding techniques.
Python
2
star
15

dotfiles

Collection of all my dotfiles.
Shell
1
star
16

IGStatTools

An app to retrieve general statistics about an Instagram profile using the Instaloader API.
Python
1
star
17

the-sonar-project

Application of machine learning to classify the Sonar data. Project for the course "Applied Machine Learning (Basic)" at PhD in Physics.
Python
1
star