Skip to content

Instantly share code, notes, and snippets.

View PortNumber53's full-sized avatar
😃
clicking the things

Mauricio S Otta PortNumber53

😃
clicking the things
View GitHub Profile
@PortNumber53
PortNumber53 / convert1.sh
Created December 8, 2022 07:55 — forked from zengxinhui/convert2arch_arm.sh
Replace Oracle Cloud Linux with Arch Linux ARM remotely
Refs:
1. http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.13/releases/aarch64/alpine-virt-3.13.5-aarch64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
5. https://archlinuxarm.org/platforms/armv8/generic
Requirement:
Console access.
@PortNumber53
PortNumber53 / url_slug.php
Created November 27, 2015 20:35 — forked from sgmurphy/url_slug.php
URL Slugs in PHP (with UTF-8 and Transliteration Support)
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.
@PortNumber53
PortNumber53 / gist:3910480
Created October 18, 2012 08:35 — forked from marekjelen/gist:3256675
New PostgreSQL on OpenShift
#!/bin/bash
# This is a simple build script and will be executed on your CI system if
# available. Otherwise it will execute while your application is stopped
# before the deploy step. This script gets executed directly, so it
# could be python, php, ruby, etc.
#!/bin/bash
POSTGRESQL_VERSION="9.2.1"
# Installing DB (one-time)