Skip to content

Instantly share code, notes, and snippets.

@lahwaacz
lahwaacz / fatcp.zsh
Last active December 14, 2015 22:18
zsh function to 'safe' copy to FAT32 partition
#! /bin/zsh
# Inspired by:
# http://askubuntu.com/questions/11634/how-can-i-substitute-colons-when-i-rsync-on-a-usb-key
autoload zargs zmv
fatcp() {
local src="$1"
local dest="$2"
@lahwaacz
lahwaacz / complex.cpp
Created March 24, 2013 21:27
operator+ overload example
class MyComplex
{
private:
double real, imag;
public:
MyComplex(){
real = 0;
imag = 0;
}
# Makefile for LaTeX files
# Original Makefile from http://www.math.psu.edu/elkin/math/497a/Makefile
# Please check http://www.acoustics.hut.fi/u/mairas/UltimateLatexMakefile
# for new versions.
# Copyright (c) 2005,2012 (in order of appearance):
# Matti Airas <Matti.Airas@hut.fi>
# Rainer Jung
@lahwaacz
lahwaacz / PKGBUILD
Created May 4, 2013 18:05
fixed PKGBUILD for multimarkdown-git
# Contributor: Felix Hanley <felix@seconddrawer.com.au>
pkgname=multimarkdown-git
_pkgname=multimarkdown
pkgver=3.7.1.2.g0d9c20e
pkgrel=1
pkgdesc="Expanded version of John Gruber's original Markdown"
makedepends=('git' 'glib2')
optdepends=('texlive-most: latex and PDF output support')
url="https://github.com/fletcher/peg-multimarkdown"
@lahwaacz
lahwaacz / PKGBUILD
Created June 24, 2013 15:16
fixed PKGBUILD for geomspace
# Maintainer: Michael Kogan <michael dot kogan at gmx dot net>
pkgname=geomspace
pkgver=0.11
pkgrel=1
pkgdesc="A browser for geometric (i.e. Euclidean, Riemann, Minkowski) spaces"
arch=('i686' 'x86_64')
url="https://sourceforge.net/projects/geomspace/"
license=('GPL')
depends=('libxpm' 'mesa' 'fltk')
@lahwaacz
lahwaacz / PKGBUILD
Last active December 18, 2015 22:48
fixed PKGBUILD for python2-pyqtgraph
# Maintainer: Windel Bouwman <windel at windel dot nl>
# Contributor: Jakub Klinkovský <kuba.klinkovsky@gmail.com>
pkgname=python2-pyqtgraph
_pkgname=pyqtgraph
pkgver=0.9.7
pkgrel=1
pkgdesc="Scientific Graphics and GUI Library for Python"
arch=('i686' 'x86_64')
license='MIT'
@lahwaacz
lahwaacz / PKGBUILD
Created July 16, 2013 08:23
minisip-svn PKGBUILD (still broken)
# Contributor: Jakub Klinkovský <kuba.klinkovsky@gmail.com>
# Contributor: rolater <rolater@yahoo.com>
pkgname=minisip-svn
_pkgname=minisip
pkgver=4584
pkgrel=1
pkgdesc="SIP User Agent with focus on security: TLS, end-to-end security, SRTP, MIKEY (DH, PSK, PKE)"
arch=('i686' 'x86_64')
url="http://www.minisip.org"
@lahwaacz
lahwaacz / gist:7419470
Created November 11, 2013 20:07
dbxlz7mhc2.html (see https://aur.archlinux.org/packages/dropbox/ for relevant discussion)
<!DOCTYPE html>
<!-- the following line is required for our script to run in IE -->
<!-- saved from url=(0023)https://www.dropbox.com -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
(function () {
"use strict";
In file included from /home/lahwaacz/build/builddir/vtk-visit/src/build/ThirdParty/netcdf/vtknetcdf/config.h:7:0,
from /home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/libsrc4/nc4internal.c:18:
/home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/include/vtk_netcdf_mangle.h:229:30: error: conflicting types for ‘vtk_netcdf_nc4_rec_find_nc_type’
#define nc4_rec_find_nc_type vtk_netcdf_nc4_rec_find_nc_type
^
/home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/libsrc4/nc4internal.c:383:1: note: in expansion of macro ‘nc4_rec_find_nc_type’
nc4_rec_find_nc_type(NC_GRP_INFO_T *start_grp, nc_type target_nc_typeid)
^~~~~~~~~~~~~~~~~~~~
/home/lahwaacz/build/builddir/vtk-visit/src/VTK-6.1.0/ThirdParty/netcdf/vtknetcdf/include/vtk_netcdf_mangle.h:229:30: note: previous declaration of ‘vtk_netcdf_nc4_rec_find_nc_type’ was here
#define nc4_rec_find_nc_type vtk_netcdf_nc4_rec_find_nc
[[
Category:Stacking WMs
]]
\n
[[
it:JWM
]]
\n
[[
ja:JWM