Skip to content

Instantly share code, notes, and snippets.

@neitanod
neitanod / forceutf8
Last active February 2, 2021 23:13
Command line script to run forceutf8 function directly from bash
#!/usr/bin/env php
<?php
require_once("Encoding.php"); // Specify correct path to library here.
if(empty($argv[1])) {
while($f = fgets(STDIN)){
echo ForceUTF8\Encoding::toUTF8($f);
}
} else {

Aligning images

left alignment

This is the code you need to align images to the left:

@neitanod
neitanod / try.php
Last active July 6, 2019 06:00
Ejemplo de uso de github.com/neitanod/struct
<?php
require_once('vendor/neitanod/struct/src/Struct/Struct.php');
use \Neitanod\Struct\Struct;
$s = new Struct();
$s ->access('node-1')
->access('node-1.1')
->access('node-1.1.1')
#!/usr/bin/env php
<?php
/**
Usage:
ls | forceutf8 # send input via stdin
forceutf8 file.txt # output converted file.txt
forceutf8 file.txt replace # do not output contents, replace instead (caution!)
@neitanod
neitanod / radios_ar.m3u
Last active January 30, 2018 19:37
Radios en vivo
#EXTM3U
#EXTINF:0,Blue 100.7 FM
http://mp3.metroaudio1.stream.avstreaming.net:7200/bluefmaudio1
#EXTINF:0,Metro 95.1 FM
http://mp3.metroaudio1.stream.avstreaming.net:7200/metro
#EXTINF:0,Mitre 790 AM
https://buecrplb01.cienradios.com.ar/Mitre790.aac
@neitanod
neitanod / playlist_ar.m3u
Created January 30, 2018 18:48
EN VIVO Argentina
#EXTM3U
#EXTINF:0,América TV
https://www.youtube.com/embed/IFcUP8xs27A?autoplay=1
@neitanod
neitanod / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console