Update system
yum update
Set your timezone
// Pattern (RFC 833, RFC 2045, https://www.ietf.org/rfc/rfc2045.txt) | |
// Tested against 1200~ types @ http://www.iana.org/assignments/media-types/media-types.xhtml | |
const pattern = /^(text|image|audio|video|application+)\/([a-zA-Z\d\+\-\.\:\_]+)$/; | |
// Tests | |
pattern.test("application/x-bzip2"); | |
pattern.test("application/vnd.amazon34.ebook"); | |
pattern.test("application/octet-stream"); | |
// Match |
/** | |
* An example how to define library for require.js (AMD) | |
* Copyright (C) 2014 Igal Alkon | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License | |
* as published by the Free Software Foundation; either version 2 | |
* of the License, or (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
I wanted to test the new stable pthreads extension for PHP on my Arch Linux 64-bit.
to install the pthreads extension using pecl
you are required to use a compiled version
of PHP with the the thread safety support flag --enable-maintainer-zts
.
the most clean way on Arch would be then rebuild the original package with the flag.
this was very important to me to keep my PHP as stable as possible.
so here's what you should do ...
First checked what packages dependent on the 'php' package:
pacman -Qii php
#!bash.exe | |
export SSH_AUTH_SOCK=/tmp/.ssh-socket | |
echo ; | |
echo Starting connection with ssh-agent... | |
ssh-add -l 2>&1 >/dev/null | |
if [ $? = 2 ]; then | |
rm -f /tmp/.ssh-script /tmp/.ssh-agent-pid /tmp/.ssh-socket | |
# Exit status 2 means couldn't connect to ssh-agent; start one now | |
echo Creating new ssh-agent... | |
ssh-agent -a $SSH_AUTH_SOCK > /tmp/.ssh-script |
# Add new user to sasl database | |
saslpasswd2 -c -u domain.net webmaster |
#/bin/bash | |
# Export databases first with the following command: | |
# mysqldump -u user -p db-name > db-name.dbd | |
# Configure your new database | |
file_ext=".dbd" | |
db_user="root" | |
db_pass="myrootpassword" |
#!/bin/bash | |
sudo yum install gcc make php-devel geoip geoip-devel | |
sudo pecl install geoip | |
ls /usr/lib64/php/modules/geoip.so | |
echo -e "; Enable geoip extension module\nextension=geoip.so\n" >> /etc/php.d/geoip.ini | |
echo -e "Done installing GeoIP PHP extention!\n" |
# Generic Makefile for compiling an executable, with pkg-config dependencies. | |
CC := clang | |
PKGS := gtk+-3.0 | |
SRCDIR := src | |
BUILDDIR := build | |
CFLAGS := -g -Wall `pkg-config --cflags $(PKGS)` | |
LIBS := `pkg-config --libs $(PKGS)` | |
TARGET := app |