Skip to main content

Category

Diy

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
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

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

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