Skip to content

Instantly share code, notes, and snippets.

@twheel
twheel / install-arch.txt
Created September 28, 2015 13:36
Install Arch Linux on remote server
Protocol that worked to install Arch on a remote server
Situation: host provides CentOS image but not one for Arch.
Default CentOS install includes two hard drives in a RAID 1 setup, mapped as /dev/mapper/vg-root and /dev/mapper/vg-swap
Guides:
https://wiki.archlinux.org/index.php/Remote_installation
https://wiki.archlinux.org/index.php/Install_from_existing_Linux
https://wiki.archlinux.org/index.php/Install_from_SSH
http://ordinatechnic.com/os-specific-guides/arch/archlinux-installing-from-an-existing-linux-installation
@twheel
twheel / apps:myapp:conf:embed.php
Created September 28, 2015 12:56
Slideshow for elefantcms (http://elefantcms.com/) using the Ink (http://ink.sapo.pt) framework
; <?php /*
[myapp/slideshow]
label = "MyApp Slideshow"
icon = picture-o
path[label] = Folder
path[type] = select
path[initial] = "sliders"
@twheel
twheel / facebook_import.php
Last active September 17, 2015 17:13
Facebook events importer for elefantcms
<?php
date_default_timezone_set('My/Time_Zone');
$app_id = '1234567890';
$app_secret = 'abcdefghijklmnopqrstuvwxyz';
//Facebook API function to get the event details from FB
define('FACEBOOK_SDK_V4_SRC_DIR', $_SERVER['DOCUMENT_ROOT']."/facebook-sdk/src/Facebook/");
require $_SERVER["DOCUMENT_ROOT"].'/facebook-sdk/autoload.php';
use Facebook\FacebookSession;