Skip to content

Instantly share code, notes, and snippets.

@mcasperson
mcasperson / gist:5543342
Created May 8, 2013 20:22
How to run Serna Free Fedora 18 x64
Download from http://sourceforge.net/projects/sernafree.mirror/
sudo yum install libXmu.i686
sudo yum install libXinerama.i686
@mcasperson
mcasperson / gist:5565126
Created May 12, 2013 22:14
Run Serna free in Ubuntu 64 bit
Error:
./serna.sh: 39: exec: /opt/serna-free-4.4/bin/serna.bin: not found
Fix:
install ia32-libs
@mcasperson
mcasperson / gist:5588341
Created May 15, 2013 23:43
Installing Supervisord 3 in RHEL
yum install python-setuptools
Follow install instructions at http://supervisord.org/installing.html
Create /etc/init.d/supervisord
#!/bin/bash
#
# supervisord This scripts turns supervisord on
#
@mcasperson
mcasperson / gist:5694842
Last active December 18, 2015 00:09
SpiderOak Headless
# Setup user and device from terminal
SpiderOak --setup=-
# Setup cron job to run batch mode
SpiderOak --batchmode --backup=/mybackup
@mcasperson
mcasperson / gist:5764270
Created June 12, 2013 10:31
Network install in Virtual Machine Manager
Copy vmlinuz and initrd.img to the local system
Open Boot Options -> Direct kernel boot
Set Kernel path to vmlinuz
Set Initrd path to initrd.img
Set Kernel arguments to method=http://whatever/path/to/extracted/dvd
@mcasperson
mcasperson / gist:5820329
Last active December 23, 2018 16:56
emscripten libxml
Install python-all-dev
emscripten/system/include/net/netinet/in.h
Add the following lines (see http://pubs.opengroup.org/onlinepubs/009695399/basedefs/arpa/inet.h.html)
#define INET_ADDRSTRLEN (16)
#define INET6_ADDRSTRLEN (48)
nanohttp.c
@mcasperson
mcasperson / gist:6050194
Created July 21, 2013 22:03
detect maven updates
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.1</version>
</plugin>
versions:display-dependency-updates
http://mojo.codehaus.org/versions-maven-plugin/usage.html
@mcasperson
mcasperson / gist:6181309
Created August 8, 2013 03:52
Compile CCVisu and run on RHEL
Create artifact in IntelliJ
Delete all *.RSA, *.SF, *.DSA files from JAR - fixes Exception in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
Install Java 7 in RHEL
@mcasperson
mcasperson / gist:6302373
Created August 22, 2013 01:57
Oracle Java alternatives in RHEL
alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000
alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000
alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 20000
@mcasperson
mcasperson / gist:6678198
Created September 23, 2013 23:01
Scroll to bottom bookmarklet
javascript:scroll=function(){setTimeout(function(){window.scrollTo(0,document.body.scrollHeight);scroll();}, 100);};scroll();