Skip to content

Instantly share code, notes, and snippets.

@lahwaacz
lahwaacz / fatcp.zsh
Last active Dec 14, 2015
zsh function to 'safe' copy to FAT32 partition
View fatcp.zsh
#! /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 Mar 24, 2013
operator+ overload example
View complex.cpp
class MyComplex
{
private:
double real, imag;
public:
MyComplex(){
real = 0;
imag = 0;
}
View Makefile
# 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
fixed PKGBUILD for multimarkdown-git
View PKGBUILD
# 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 Jun 24, 2013
fixed PKGBUILD for geomspace
View PKGBUILD
# 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 Dec 18, 2015
fixed PKGBUILD for python2-pyqtgraph
View PKGBUILD
# 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 Jul 16, 2013
minisip-svn PKGBUILD (still broken)
View PKGBUILD
# 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 Nov 11, 2013
dbxlz7mhc2.html (see https://aur.archlinux.org/packages/dropbox/ for relevant discussion)
View gist:7419470
<!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";
View gist:f3189b5aefc9b3a0d242a1b84142d815
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
View JWM parse tree
[[
Category:Stacking WMs
]]
\n
[[
it:JWM
]]
\n
[[
ja:JWM