This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: logging | |
spec: | |
template: | |
metadata: | |
labels: | |
app: logging-app | |
spec: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import random | |
import sys | |
from fractions import gcd | |
def giveMePrimes(): | |
primeList = list() | |
for num in range(1000,10001): | |
if all(num%i!=0 for i in range(2,int(math.sqrt(num))+1)): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pylab as pl | |
def f(x): | |
return x**3 -3*x + 4 | |
Y, X = np.mgrid[-10:10:100j, -10:10:100j] | |
print "res" | |
ys = list() | |
xs = list() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pylab as pl | |
def f(x): | |
return x**3 -3*x + 4 | |
Y, X = np.mgrid[-10:10:100j, -10:10:100j] | |
pl.contour(X, Y, Y**2 - f(X), levels=[0]) | |
pl.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pylab as pl | |
Y, X = np.mgrid[-10:10:100j, -10:10:100j] | |
# Domain Parameters | |
a = 3 | |
bb = 7 | |
def f(x): | |
return x**3 -a*x + bb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <linux/kernel.h> | |
#include <linux/module.h> | |
#include <linux/netfilter.h> | |
#include <linux/netfilter_ipv4.h> | |
#include <linux/init.h> | |
#include <linux/netfilter_bridge.h> | |
#include <linux/ip.h> | |
#include <net/netfilter/nf_tables_ipv4.h> | |
#include <net/netfilter/nf_tables.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj-m += nf_foobar.o | |
all: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
clean: | |
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENSSH=/opt/openssh2 | |
mkdir -p /opt/openssh2/dist/ | |
cd ${OPENSSH} | |
wget http://zlib.net/zlib-1.2.11.tar.gz | |
tar xvfz zlib-1.2.11.tar.gz | |
cd zlib-1.2.11 | |
./configure --prefix=${OPENSSH}/dist/ && make && make install | |
cd ${OPENSSH} | |
wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENSSH=/opt/openssh2 | |
mkdir -p /opt/openssh2/dist/ | |
cd ${OPENSSH} | |
wget http://zlib.net/zlib-1.2.11.tar.gz | |
tar xvfz zlib-1.2.11.tar.gz | |
cd zlib-1.2.11 | |
./configure --prefix=${OPENSSH}/dist/ && make && make install | |
cd ${OPENSSH} | |
wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz | |
tar xvfz openssl-1.0.1e.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URxvt.foreground: #ffffff | |
URxvt.background: #1d1f21 | |
!! black | |
URxvt.color0: #282a2e | |
URxvt.color8: #373b41 | |
!! red | |
URxvt.color1: #FF69B4 | |
URxvt.color9: #cc6666 | |
!! green |