From 92e0160cefdfbbef0ea6069e7e8d705e23cbce32 Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo <71768+gionn@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:10:52 +0200 Subject: [PATCH] add pre-commit workflow (#44) --- .github/workflows/pre-commit.yml | 13 +++++++++++++ .pre-commit-config.yaml | 12 ++++++++++++ .python-version | 1 + _includes/custom-head.html | 2 +- _layouts/post.html | 2 +- ...ream-g1-tim-testato-a-android-1-6-cyanogenmod.md | 4 ++-- ...-07-10-connect-to-freenode-via-tor-with-irssi.md | 7 +++---- ...e-417-expectation-failed-behind-a-squid-proxy.md | 2 +- 8 files changed, 34 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/pre-commit.yml create mode 100644 .pre-commit-config.yaml create mode 100644 .python-version diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..0d0fbe8 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,13 @@ +name: pre-commit + +on: + pull_request: + branches: [ master ] + push: + branches: [ master ] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v5.24.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..0882471 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-json + - id: check-merge-conflict + - id: check-xml + - id: check-yaml + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..b6d8b76 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.11.8 diff --git a/_includes/custom-head.html b/_includes/custom-head.html index 8694692..32d5610 100644 --- a/_includes/custom-head.html +++ b/_includes/custom-head.html @@ -1 +1 @@ -{% seo %} \ No newline at end of file +{% seo %} diff --git a/_layouts/post.html b/_layouts/post.html index 30a5e98..c5c4575 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -28,4 +28,4 @@

{{ page.title }}

{% include comments.html %} {% include related_posts.html %} - \ No newline at end of file + diff --git a/_posts/2009-11-21-aggiornare-firmware-android-su-htc-dream-g1-tim-testato-a-android-1-6-cyanogenmod.md b/_posts/2009-11-21-aggiornare-firmware-android-su-htc-dream-g1-tim-testato-a-android-1-6-cyanogenmod.md index 90e3708..3eefc88 100644 --- a/_posts/2009-11-21-aggiornare-firmware-android-su-htc-dream-g1-tim-testato-a-android-1-6-cyanogenmod.md +++ b/_posts/2009-11-21-aggiornare-firmware-android-su-htc-dream-g1-tim-testato-a-android-1-6-cyanogenmod.md @@ -47,7 +47,7 @@ Le SDK contengono software e documentazione necessaria a chi vuol sviluppare sia

Abilita USB Debugging

Menu -> Impostazioni -> Applicazioni -> Sviluppo -> Debug USB $ ./tools/adb devices -List of devices attached +List of devices attached HT935NG08417 device Se il vostro device viene riportato, siete pronti per poter utilizzare Fastboot @@ -75,7 +75,7 @@ Così a naso, sembra che il miglior Android mantenuto dalla comunità è Cyanog

Installazione rom di recovery

Scarica la più recente versione della Recovery Image CyanogenMod (sostituisce il sistema minimale di recovery, sarà  utilizzato per poter installare facilmente Android+CyanogenMod) -Scarica la più recente versione della ra-recovery da XDA. +Scarica la più recente versione della ra-recovery da XDA. Scompatta e copia la prima immagine direttamente nella cartella principale della tua memoria SD (con il telefono collegato al pc, seleziona l'avviso che esce fra le notifiche in alto del device e fai Connetti) e riapri una shell: $ ./tools/adb shell diff --git a/_posts/2010-07-10-connect-to-freenode-via-tor-with-irssi.md b/_posts/2010-07-10-connect-to-freenode-via-tor-with-irssi.md index a7c81f4..5b61049 100644 --- a/_posts/2010-07-10-connect-to-freenode-via-tor-with-irssi.md +++ b/_posts/2010-07-10-connect-to-freenode-via-tor-with-irssi.md @@ -44,10 +44,10 @@ As an additional note, I added a line to the perl script to +++ cap_sasl.pl 2010-07-10 13:10:04.000000000 +0200 @@ -4,6 +4,7 @@ # $Id$ - + use MIME::Base64; +use Irssi::Irc; - + $VERSION = "1.1"; @@ -55,7 +55,6 @@ For macports users:
sudo port install p5-crypt-blowfish p5-crypt-dh p5-crypt-openssl-bignum \
 p5-math-gmp p5-math-pari
Although I've installed these libraries, I continue to get the error: -
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at 
+
Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at
           /opt/local/lib/perl5/vendor_perl/5.8.9/Crypt/DH.pm line 6
Comments welcome. - diff --git a/_posts/2010-09-07-how-to-circumvent-the-417-expectation-failed-behind-a-squid-proxy.md b/_posts/2010-09-07-how-to-circumvent-the-417-expectation-failed-behind-a-squid-proxy.md index 827f2a9..a6b5875 100644 --- a/_posts/2010-09-07-how-to-circumvent-the-417-expectation-failed-behind-a-squid-proxy.md +++ b/_posts/2010-09-07-how-to-circumvent-the-417-expectation-failed-behind-a-squid-proxy.md @@ -18,5 +18,5 @@ We can configure Squid to simply ignore that request header, and usually client Add in squid.conf: ignore_expect_100 on - + Android application like AppBrain and Facebook Contact Sync, and BOINC client was having login issues due to this reason.