apt-get install openresolv
echo > vpntarget.ovpn <<<EOF
script-security 2
dhcp-option DNS 8.8.8.4
dhcp-option DNS 8.8.4.4
up /etc/openvpn/update-resolv-conf
ps -s | grep ssh-agent | sed -re 's/^\s+([[:digit:]]+).*$/\1/' | xargs kill -TERM |
(IFS=:;for p in ${PATH}; do if [[ -d $p ]]; then echo "OK $p"; else echo "ERR $p"; fi; done; ) |
apt-get install openresolv
echo > vpntarget.ovpn <<<EOF
script-security 2
dhcp-option DNS 8.8.8.4
dhcp-option DNS 8.8.4.4
up /etc/openvpn/update-resolv-conf
public class Cell<E> { | |
private E value; | |
public Cell(E value){ | |
if (value == null) | |
throw new NullPointerException(); | |
this.value = value; | |
} | |
public boolean isCell(){return true;} |
#include <iostream> | |
int main () | |
{ | |
int z; | |
for (int i = 39; i < 43; i++){ | |
std::cerr << "i: " << i << std::endl; | |
for (int j = 29; j < i-9; j+=3){ | |
z = i % j; | |
std::cerr << "z: " << z << std::endl; |
import java.util.List; | |
import java.util.LinkedList; | |
import java.util.Iterator; | |
import java.util.Random; | |
class Tuple { | |
private final char c; | |
private boolean visited; | |
public Tuple(char c){ |
#include <bits/wordsize.h> | |
#include <stdio.h> | |
#include <inttypes.h> | |
int main(void) | |
{ | |
uint64_t f, b, q, *foo, *bar, *qux; | |
foo=&f, bar=&b, qux=&q; | |
printf("size of a pointer is %d bytes\n",__WORDSIZE/8); |
/* | |
* Question 5 | |
* All of these classes should be public and in their own file. | |
*/ | |
class Shape { | |
protected double x,y; | |
public Shape(double x, double y){ | |
this.x=x; | |
this.y=y; | |
} |
trig: trig.cc | |
g++ -o trig trig.cc -Wall -Wextra -pipe -lm |
import java.util.LinkedList; | |
public class Lucas { | |
public static int lucas(int n){ | |
switch(n){ | |
case 0: | |
return 2; | |
case 1: | |
return 1; | |
default: | |
if (n < 0) |