Skip to content

Instantly share code, notes, and snippets.

View joiggama's full-sized avatar

Ignacio Galindo joiggama

  • Málaga, Spain
  • 02:34 (UTC +02:00)
View GitHub Profile
@adriansr
adriansr / svg2icns.sh
Created February 19, 2018 15:21
Convert SVG file to macOS icon (icns) format
#!/bin/sh -x
set -e
SIZES="
16,16x16
32,16x16@2x
32,32x32
64,32x32@2x
128,128x128
@nbaksalyar
nbaksalyar / decentralized-resources.md
Last active March 1, 2023 06:11
Resources and links for the WebRTC talk at Full Stack Fest 2017
Gem::Version.new('0.3.2') < Gem::Version.new('0.10.1')
=> true
Gem::Version.new('0.3.0') == Gem::Version.new('0.3')
=> true
@iamluc
iamluc / symfony_docker-compose.yml
Last active December 10, 2022 13:25
Exemple of a simple docker-compose file for Symfony project with official images
#
# to execute a command in the container:
# docker exec -it XXX_web_1 su www-data -c "php app/console"
#
web:
# container_name: sf
image: php:apache
ports:
- 8888:80
@postmodern
postmodern / git_file_filter.sh
Last active April 1, 2022 23:13
A `git filter-branch` script for extracting arbitrary files in a repo.
#!/bin/bash
#
# usage: git filter-branch --force --prune-empty --index-filter "$(cat git_file_filter.sh)" --tag-name-filter cat -- --all
#
shopt -s globstar
whitelist=(
# files and globs go here
)
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active January 12, 2024 03:46
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@anikalindtner
anikalindtner / gist:9524950
Last active March 1, 2023 11:52
Workshops/Mailinglists/Lists
@campoy
campoy / letitfail.go
Last active January 6, 2024 07:26
This example shows how to have a set of goroutines running concurrently and processing requests. Panics from goroutines are recovered and the worker is restarted. You can download it and run it directly using `go run letitfail.go`
package main
import (
"bufio"
"fmt"
"os"
"time"
)
const numWorkers = 3
@tarcieri
tarcieri / gist:5483325
Last active December 16, 2015 19:10
The DHH Drinking Game

The @dhh Drinking Game

Take a drink whenever @dhh:

  1. Drops the f-bomb (or says "shit")
  2. Makes fun of Java (or Struts, Hibernate, etc)
  3. Mentions "frameworks should be extractions, not inventions"
  4. Mentions "constraints are liberating"
  5. Defends TurboLinks or the asset pipeline
  6. Mentions Basecamp