When DKMS uses clang
to compile the nvidia
kernel driver, you're boned.
sudo modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': Exec format error
Unfortunately, dkms
doesn't take CC
and CXX
settings from the environment.
import RickRoll.writer | |
object RickRoll { var writer: (String) -> Unit = { println(it) } } | |
val Never = RickAstleyNever // to get different highlighting color | |
object RickAstleyNever { | |
infix fun gonna(x: give) = give | |
infix fun gonna(x: let) = let | |
infix fun gonna(x: run) = run | |
infix fun gonna(x: make) = make | |
infix fun gonna(x: say) = say |
When DKMS uses clang
to compile the nvidia
kernel driver, you're boned.
sudo modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': Exec format error
Unfortunately, dkms
doesn't take CC
and CXX
settings from the environment.
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
I think it is worthwhile providing some information about JMX, since it is very heavily used by all of our Java based entities in Brooklyn. JMX uses the RMI protocol to communicate, this is called JRMP and is implemented by the javax.management.remote.rmi.RMIConnector
in the JVM.
There are a couple of problems with the RMI protocol as used by default in JMX.
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).