Skip to main content

Articles

Git Setup Your Own Server
Life

Git Setup Your Own Server

Hello everyone, I recently decided to move all my code under GIT, I’ve used it before and I’ve used also SVN, but I find GIT to be more straightforward in some aspects. In order to use git I needed a place online where to store my projects, and I thought that github could be a good place, but the fact that you have to pay to keep a project private just didn’t sound right in my opinion. Of course github is there to make money (specially now that M$ bought it), but I prefer to have a simpler setup and be able to do things my way as much as possible. So I started planning what I wanted my git server to have. Here’s a list: Security - I decided to make it work only under ssh, that way only someone who has the key can clone or access the repository. I also added an unprivileged git user that has only access to very few commands, so even if somebody manages to access through ssh he’ll find himrself with only very few options available. **Notifications** - my server already tells me a lot of what happens, so I wanted my git service to do the same. I implemented a mail service that notifies me every time a new repository is added or everytime there's a push to a repository. Automation - I wanted to have less steps possible between creation of the project and deployment to production. Now in two steps I can create a repository and clone it to my local computer, and when I’m done I just need to push my modifications and the code is deployed automatically . Visibility - I haven’t yet decided if I want my code to be visible, so I haven’t even started thinking about this possibility.

Read more
Manage your passwords with password-store
Life

Manage your passwords with password-store

Hello everyone, lately I’ve decided not to use the password manager offered by all major browsers nowadays, but instead try to manage all my passwords using some open source software in order to have a better control over my passwords. I’ve decided to write this article after reading this blog entry by AlienBob where he speaks of KeepassXC, and since I’ve used it, I wanted to give a valid alternative to some downsides that I’ve stumbled upon while using it. The first approach I’ve attempted, as I said, was using KeepassXC, quoting their website: KeepassXC website What I did was install keepassXC on my Slackware64-current, export all my passwords from my main browser, save them as CSV and import them inside keepassXC. Now I have to remember just one password to access my database and I can install the browser integration add-on for chromium (or firefox) to have all my passwords readily available. Neat!! To share my passwords between my devices, I simply made a private git repository on my server and synced the password database with it. I then went and installed KeePassDroid, which is an Android implementation of keepassXC. Since keepassdroid doesn’t sync automatically from a remote server, I had to use git on my phone to pull/push to my remote in order to keep the password database up to date, and even if that’s not a big deal, I wasn’t happy with my password workflow so, while still using this approach, I was looking for alternatives.

Read more
CAD designing in GNU/Linux
Tech

CAD designing in GNU/Linux

Guess who's back back again danix's back tell your friends — semicit. Eminem So, I’m back at writing on this blog, it’s been a long time, I’ve been through quite some shitty times and a lot happened on a personal level that kept my attention away from blogging. One of the things that I’ve introduced in my life is a 3D printer, I’m the proud owner of an Ender3 Pro by creality. I’ve had it for a few months now and I’m pretty happy I purchased it, as it’s been a very helpful hobby, and even though I started this hobby using tools available for windows, I’m slowly moving back to GNU/Linux.

Read more
new home server ideas
Life

new home server ideas

I’m thinking about building a new home server, so I picked some parts I think might work well for what I need to do. Here’s the list for future reference: PCPartPicker Part List: part list on PCPartPicker CPU: AMD Ryzen 3 3200G 3.6 GHz Quad-Core Processor CPU Cooler: Cooler Master MasterLiquid ML240L RGB 66.7 CFM Liquid CPU Cooler Thermal Compound: Thermal Grizzly Kryonaut 1g 1 g Thermal Paste Motherboard: Gigabyte B450 AORUS M Micro ATX AM4 Motherboard Memory: Corsair Vengeance LPX 16 GB (2 x 8 GB) DDR4-3200 Memory Case: Antec VSK10 MicroATX Mid Tower Case Power Supply: EVGA BT 450 W 80+ Bronze Certified ATX Power Supply Case Fan: 2x be quiet! Pure Wings 2 140 PWM 61.2 CFM 140 mm Fan Total around €445.00 on amazon as suggested by PCPartPicker.

Read more
baking programs
Life

baking programs

Compiling programs always feels like you’re baking a cake, you look for it, check the dependancies and then run the slackbuild, leave your computer to go grab a drink and when you come back you see an error, checking for it you notice you’ve forgotten a dependency, it’s like you put your cake in the oven, starts cooking and after a while you go “oh shit, I forgot to add sugar to the dough“.

Read more
Vulnerabilities for PGP and emails
Life

Vulnerabilities for PGP and emails

following a series of tweets from the Electronic Frontier Foundation, I’m reblogging their article to give it even more visibility on a topic that many don’t seem to know, which is email encryption. A group of researchers has found out and published a series of vulnerabilities affecting the use of PGP for email encryption (you can read more in depth coverage on this topic on the EFF website) From what I understand the problem is related to those plugins that rely on PGP or GnuPG to automatically decrypt emails. This vulnerability could allow an attacker to read not only an encrypted message but even older messages encrypted with the same key.

Read more
playing with colors
Life

playing with colors

palette-viewer on github Today I decided I wanted to have a little "old school" fun, so instead of working on some WordPress theme/plugin, I went for the "lemme write some php from scratch" approach. I was having a look at some color palettes for I’m not gonna tell ya, and it was quite hard for me to mix them together in my mind and decide which color goes where and how to use it, so after thinking about it for a while, I decided I’d narrow my options to 6 colors per palette, and in order to better visualize them, I wrote a small php page to help me.

Read more
gify.sh – back to bash scripting
Tech

gify.sh – back to bash scripting

gif image created using gify.sh Today I’ll present you a useful script that will help you create amazing gifs from your still photos using a couple tools from the IMAGEMAGIK suite, so without further ado, here it is, straight from github’s gists. Download as ZIP archive what the code does is quite simple, it takes a few arguments and helps you resize your images while keeping the original proportions. Put the code in your path and let’s put it to work.

Read more

Walt quote

all our dreams can come true if we have the courage to pursue them — Walt Disney

Read more

convertire file video in mp3

un piccolo appunto su come convertire velocemente un video in mp3.. ffmpeg -i file_da_convertire.flv -f mp3 -ab 192000 -vn nuovo_file.mp3 ovviamente bisogna avere ffmpeg installato nel sistema, le opzioni che abbiamo passato sulla riga sono: -i: file di input -f: formato di output -ab: bitrate del file mp3 -vn: non catturare il video Semplice e veloce, provare per credere.. ;) e ovviamente se usate questo comando o lo migliorate in qualche modo fatemelo sapere nei commenti..

Read more

Ceasar quote

What we wish, we readily believe, and what we ourselves think, we imagine others think also. — Julius Caesar

Read more
Katsushika Hokusai
Life

Katsushika Hokusai

I just wanted to share a few images by one of my favourite artists with you. **Katsushika Hokusai** (葛飾北斎, Katsushika Hokusai 1760–May 10, 1849) was a Japanese artist, ukiyo-e painter and printmaker of the Edo period. In his time he was Japan&'s leading expert on Chinese painting. Born in Edo (now Tokyo), Hokusai is best-known as author of the woodblock print series Thirty-six Views of Mount Fuji (c. 1831) which includes the iconic and internationally recognized print, The Great Wave off Kanagawa, created during the 1820s. Hokusai created the "Thirty-Six Views" both as a response to a domestic travel boom and as part of a personal obsession with Mount Fuji. It was this series, specifically The Great Wave print and Fuji in Clear Weather, that secured Hokusai’s fame both within Japan and overseas. As historian Richard Lane concludes, “Indeed, if there is one work that made Hokusai&'s name, both in Japan and abroad, it must be this monumental print-series...” While Hokusai&'s work prior to this series is certainly important, it was not until this series that he gained broad recognition and left a lasting impact on the art world. It was The Great Wave print that initially received, and continues to receive, acclaim and popularity in the Western world.

Read more

haiku

il suo profumo. il piacere dei sensi. fine di un sogno. — yours truly

Read more

haiku

Gli uccelli cantano nel buio. Alba piovosa. — Jack Kerouac

Read more
sasso, carta, forbice, lucertola, spock!
Life

sasso, carta, forbice, lucertola, spock!

Chi di voi miei fedeli (3) lettori non ha giocato almeno una volta nella vita a Sasso, Carta, Forbice? Beh, se ci avete giocato, avrete notato che tra giocatori che si frequentano assiduamente, c’è l’80% di probabilità di un pareggio causato dalla scarsità di alternative… Ecco che vi viene in aiuto l’espansione del classico gioco: Sasso, Carta, Forbice, Lucertola, Spock! In quest’espansione sono aggiunti 2 ulteriori simboli, la mano a forma di lucertola (un po’ come il serpente delle ombre cinesi) e il classico saluto vulcaniano (indice e medio da una parte e anulare e mignolo dall’altra).

Read more

La giornata del pi Greco

Buona giornata del pi Greco a tutti… :D Dal 1988 si festeggia il 14 Marzo la giornata del pi Greco, la data è stata scelta in base alla scrittura anglosassone di questo giorno, 3.14 che ricorda l’approssimazione per 3 cifre del pi Greco.

Read more

Mario Congiusta candidato al Consiglio Regionale calabrese

Vi voglio segnalare un avvenimento molto importante per me. Premesso che io non mi interesso molto di politica, mi guardo intorno e mi rendo conto che la situazione in Calabria e in Italia sta cadendo vertiginosamente in un baratro senza fondo. La corruzione c’è sempre stata, ma ultimamente la nostra politica sembra diretta sempre più verso un’idea totalitaria, verso un futuro che non voglio nemmeno immaginare. Chi è al potere cerca di accentrare sempre più potere su se stesso, non esistono più schieramenti, tutti le parti politiche collaborano tra loro di nascosto, si scambiano favori in modo da ottenerne altri, e tutto questo uccide la democrazia, tutto questo uccide la voce che il popolo ha in merito alle questioni dello Stato.

Read more

wp_patcher – un metodo per aggiornare WordPress

Ciao a tutti, purtroppo si sa, l’estate è molto dannosa ai contenuti del mio blog, in questa stagione diventa difficile rimanere a casa a scrivere al pc, la tastiera del portatile si trasforma in una piastra su cui si potrebbe tranquillamente arrostire la carne per un picnic e starci vicino e come accendere il caminetto con 40 gradi di temperatura ambientale, praticamente un supplizio…

Read more

xrandr e dual head su slackware 12.2 e intel

Oggi mi è capitato sottomano un monitor 17″ e mi è venuta la curiosità di provare a collegarlo all’uscita vga esterna del mio laptop. Detto fatto ho provato a fare qualche ricerca su internet per vedere se riuscivo a tirare su un sistema dual head in cui i 2 schermi formassero un unico desktop più grande.

Read more