Skip to content

Instantly share code, notes, and snippets.

View palicao's full-sized avatar
☠️
Computer exorcist

Alessandro Balasco palicao

☠️
Computer exorcist
View GitHub Profile
@palicao
palicao / Introduction.md
Created July 16, 2022 07:30
Test blogging with gist
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@palicao
palicao / readme.md
Created March 2, 2020 21:37 — forked from aymerick/readme.md
How to play neogeo games on your PSP FAT

How to play neogeo games on your PSP FAT

  1. Download the MVSPSP v2.3.1 (PSP Fat) emulator: http://www.gamergen.com/telecharger/mvspsp-v2-3-1-psp-fat-52301

  2. Unarchive and upload it into your PSP: /PSP/GAME/mvspsp

  3. Find a correct neogeo.zip file on the internet, then upload it into: /PSP/GAME/mvspsp/roms

  4. Upload .zip games roms into: /PSP/GAME/mvspsp/roms

$$('main .f4, main .repo-description').forEach(function(e) {
var st = e.innerHTML;
if (st != undefined && st.toLowerCase().includes("laravel")) {
e.parentNode.parentNode.style="display:none";
}
});
@palicao
palicao / bootstrap.sh
Last active February 9, 2020 07:49
Mac Bootstrap script
#!/usr/bin/env bash
b_echo() {
echo "***" $1
echo "***"
}
install_xcode() {
if [ ! -d "$(xcode-select -p)" ]; then
b_echo "Installing XCode Command Line Tools"
@palicao
palicao / redis-delkeys.sh
Created August 22, 2016 16:30 — forked from jdp/redis-delkeys.sh
Delete keys matching a pattern from Redis
#!/bin/sh
#
# Usage: ./redis-delkeys.sh [-h host] [-p port] [-n db] pattern
#
# Matches keys with the KEYS command matching pattern
# and deletes them from the specified Redis DB.
set -e
HOST="localhost"
@palicao
palicao / gist:7643d51d4643ef3a8dea
Created January 23, 2016 14:25 — forked from discordier/gist:ed4b9cba14652e7212f5
options for phpStorm @noinspection annotation
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@palicao
palicao / gist:8511c412f67405028c41
Created August 15, 2014 22:52
ZF2: Use ClassMethods as Hydrator
<?php
// ...
class Module
{
// ...
public function getServiceConfig() {
@palicao
palicao / non-master-guard.sh
Created July 8, 2014 21:20
Non-master guard for bash (if the current repo is not on the master branch, the user has to confirm execution)
#!/bin/bash
if [ `git status | grep -c "On branch master"` == 0 ]; then
read -p "This is an experimental version. Continue anyway? " choice
case "$choice" in
y|Y ) ;;
* ) exit 1;;
esac
fi
import os
class Trovafile:
def percorso(self):
return os.getcwd()
def totale(self, file):
return self.percorso() + '/' + file
x = Trovafile()