Skip to content

Instantly share code, notes, and snippets.

View gulafaran's full-sized avatar

Tom Englund gulafaran

View GitHub Profile
/* Copyright (c) 2012 Dave Reisner
*
* pulsemix.c
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
Upgrade Options (apply to -S and -U)
--force
Bypass file conflict checks and overwrite conflicting files. If the package that is about to be installed contains files that are already installed, this option will cause all those files to be overwritten. Using --force will not allow overwriting a directory with a file or installing packages with conflicting files and directories. This option should be used with care, ideally not at all.
--asdeps
Install packages non-explicitly; in other words, fake their install reason to be installed as a dependency. This is useful for makepkg and other build from source tools that need to install dependencies before building the package.
--asexplicit
@gulafaran
gulafaran / epicabs
Last active August 29, 2015 14:10 — forked from anonymous/epicabs
#!/bin/bash
epicabs() {
package="$@"
fullpath="$(pwd)/$package"
if [ -d "$fullpath" ] ; then
cd "$fullpath"
git pull
cd ..
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("naughty")
local menubar = require("menubar")
local vicious = require("vicious")
/*
* --------------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <tomenglund26@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Tom Englund
* --------------------------------------------------------------------------------
*/
#define _LARGEFILE64_SOURCE
#include <sys/stat.h>
#include <linux/types.h>
#define FIEMAP _IOWR ('f', 11, struct fm_s)
#define FE_COUNT 8000
#define FE_FLAG_LAST (1 << 0)
#define FE_FLAG_UNKNOWN (1 << 1)
#define FE_FLAG_UNALLOC (1 << 2)
#define FE_FLAG_NOALIGN (1 << 8)
#define EXTENT_UNKNOWN (FE_FLAG_UNKNOWN | FE_FLAG_UNALLOC | FE_FLAG_NOALIGN)
#include <stdio.h>
void init(int *wat) {
*wat = 1;
}
void init2(int wat) {
wat = 2;
}
#version 150
#define FragmentShader
#ifdef FragmentShader
#define varying in
#else
#define varying out
#endif
void fake_sincos( float a, out float s, out float c)
{
float b = fract (a + 0.75);
#version 150
#define VertexShader
#ifdef FragmentShader
#define varying in
#else
#define varying out
#endif
void fake_sincos( float a, out float s, out float c)
{
float b = fract (a + 0.75);
[ 5099.258910] nouveau 0000:01:00.0: gr: GPC4/TPC2/MP trap: global 00000004 [MULTIPLE_WARP_ERRORS] warp 30008 [MISALIGNED_GPR]
[ 5099.285218] nouveau 0000:01:00.0: gr: TRAP ch 12 [00be45a000 glretrace[20684]]
[ 5099.285224] nouveau 0000:01:00.0: gr: GPC0/TPC0/MP trap: global 00000004 [MULTIPLE_WARP_ERRORS] warp 230008 [MISALIGNED_GPR]
[ 5099.285228] nouveau 0000:01:00.0: gr: GPC0/TPC1/MP trap: global 00000004 [MULTIPLE_WARP_ERRORS] warp 240008 [MISALIGNED_GPR]
[ 5099.285231] nouveau 0000:01:00.0: gr: GPC0/TPC2/MP trap: global 00000004 [MULTIPLE_WARP_ERRORS] warp 210008 [MISALIGNED_GPR]
[ 5099.285235] nouveau 0000:01:00.0: gr: GPC1/TPC0/MP trap: global 00000004 [MULTIPLE_WARP_ERRORS] warp 390008 [MISALIGNED_GPR]
[ 5099.285238] nouveau 0000:01:00.0: gr: GPC1/TPC1/MP trap: global 00000004 [MULTIPLE_WARP_ERRORS] warp 290008 [MISALIGNED_GPR]
[ 5099.285241] nouveau 0000:01:00.0: gr: GPC1/TPC2/MP trap: global 00000004 [MULTIPLE_WARP_ERRORS] warp 1a0008 [MISALIGNED_GPR]
[ 5099.285245] nouveau 0000:01:00.0: gr: GPC2/T