I hereby claim:
- I am tefnet on github.
- I am jezier (https://keybase.io/jezier) on keybase.
- I have a public key ASB6Yi_U4Om5zX61O12YG1x7lYorxA1Cq1mrZp5VCzqmnwo
To claim this, I am signing this object:
%global VERSION 6.8.9 | |
%global Patchlevel 10 | |
Name: ImageMagick | |
Version: %{VERSION} | |
Release: %{Patchlevel} | |
Summary: Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition resize, rotate, shear, distort and transform images. | |
Group: Applications/Multimedia | |
License: http://www.imagemagick.org/script/license.php | |
Url: http://www.imagemagick.org/ |
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
# Inspired from https://gist.github.com/faleev/3435377 | |
# Remove any existing packages: | |
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
# Get the dependencies (Ubuntu Server or headless users): | |
sudo apt-get update |
#!/usr/bin/env bash | |
ESC_SEQ="\x1b[" | |
COL_RESET=$ESC_SEQ"39;49;00m" | |
COL_RED=$ESC_SEQ"31;01m" | |
COL_GREEN=$ESC_SEQ"32;01m" | |
COL_YELLOW=$ESC_SEQ"33;01m" | |
DOMAIN="xxx.vn" | |
PASS_DB_ROUNDCUBE="xxx" |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/bash | |
# | |
# pgpool-II replication manager | |
# | |
# Interfaces with pgpool's pcp command-line tools to provide access to common functions for managing | |
# load-balancing and failover. | |
# | |
# dsimmons@squiz.co.uk | |
# 2011-08-28 |
from eve import Eve | |
from eve.io.sqlalchemy import SQLAlchemy, Validator | |
import models | |
app = Eve(validator=Validator, data=SQLAlchemy) | |
db = app.data.driver | |
db.create_all() | |
if not db.session.query(models.People).count(): | |
for item in models.test_data: |
from eve import Eve | |
from eve.io.sqlalchemy import SQLAlchemy | |
app = Eve(data=SQLAlchemy) | |
db = app.data.driver | |
test_data = [ | |
(u'George', u'Washington'), |
import sqlalchemy | |
import sqlalchemy.orm | |
import sqlalchemy.ext.declarative | |
class BaseClsMeta(sqlalchemy.ext.declarative.DeclarativeMeta): | |
def __init__(cls, classname, bases, dict_): | |
if getattr(cls, '__dupa__', False): | |
for i in range(10): | |
fname = 'fid%d' % i | |
dict_[fname] = sqlalchemy.Column(fname, sqlalchemy.types.Integer()) |