Skip to content

Instantly share code, notes, and snippets.

View gist:156021
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ;
USE `mydb`;
-- -----------------------------------------------------
-- Table `mydb`.`pubmed`
-- -----------------------------------------------------
View gist:167645
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# Load "freetype" # This loads the font modules
Load "glx" # This loads the GLX module
EndSection
View gist:168055
#!/bin/bash
## Usage make_package.sh [<PackageName>] [<TargetDir>]
## Must be run in basedir of package.
## PackageName defaults to name of current dir.
## TargetDir defaults to /tmp/package
## Uses .rsync-filter if present
PKG=${1:-"$(basename $PWD)"}
View gist:170129
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# Load "freetype" # This loads the font modules
Load "glx" # This loads the GLX module
EndSection
View gist:170734
# Slackware build script for conky
# Copyright (c) 2008, Antonio Hernández Blas <hba.nihilismus@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1.- Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
View gist:171233
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler-------------------------------------------------------|
qemu-kvm: qemu-kvm (open source processor emulator)
qemu-kvm:
View gist:171235
Creating Slackware package: /tmp/qemu-kvm-0.11.0-rc1-x86_64-1_jet.tgz
./
install/
install/slack-desc
usr/
usr/man/
usr/man/man1/
usr/man/man1/qemu.1.gz
usr/man/man1/qemu-img.1.gz
View gist:171237
#!/bin/sh
# Slackware build script for qemu-kvm
# Copyright 2009 John Tyree <johntyreeREMOVETHIS@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#