Skip to main content

Category

Code

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