Skip to content

Instantly share code, notes, and snippets.

View ironhouzi's full-sized avatar

Robin Skahjem-Eriksen ironhouzi

View GitHub Profile
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 4850 0.0 0.0 81464 5552 pts/2 T 10:39 0:00 | \_ sudo udevmon -c /etc/udev/udevmon_ctrl.yaml
root 5067 0.0 0.0 81740 5548 pts/2 S 10:40 0:00 | \_ sudo udevmon -c /etc/udev/udevmon_ctrl.yaml
root 5077 0.0 0.0 22892 4440 pts/2 S 10:40 0:00 | | \_ udevmon -c /etc/udev/udevmon_ctrl.yaml
root 5107 0.0 0.0 14188 2696 pts/2 S 10:40 0:00 | | \_ sh -c intercept -g $DEVNODE | ctrl2esc | uinput -d $DEVNODE
root 5108 0.0 0.0 9812 1080 pts/2 S 10:40 0:00 | | | \_ intercept -g /dev/input/event20
root 5109 0.0 0.0 4140 684 pts/2 S 10:40 0:01 | | | \_ ctrl2esc
root 5110 0.0 0.0 18328 3672 pts/2 S 10:40 0:01 | | | \_ uinput -d /dev/input/event20
root 5117 0.0 0.0 14188 2848 pts/2 S 10:40 0:00 | | \_ sh -c intercept -g $DEVNODE | ctrl2esc | uinput -d $D
In [41]: lon[250][145]
Out[41]: 34.34894069196243
In [42]: mlon = np.full(lon.shape, lon[250][145], dtype=np.float64)
In [43]: lat[250][145]
Out[43]: 49.475985060839555
In [44]: mlat = np.full(lat.shape, lat[250][145], dtype=np.float64)
[uwsgi]
http = 0.0.0.0:17495
http-modifier1 = 9
master = true
plugins = cgi
threads = 2
uid = www-data
gid = www-data
cgi = /usr/local/bin/mapserv
chdir = /data/maplayer
.text
.globl _start
_start:
movq $60, %rax
movq $1, %rdi
syscall
server {
listen 80;
server_name mysite.com;
location /.foo {
alias /opt/foo;
try_files $uri @proxy;
}
location @proxy {
Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
2m 2m 1 default-scheduler Normal Scheduled Successfully assigned 7ec0f710-b9b5-4d98-9e56-441467507b67-mdp4k to ip-172-20-48-43.eu-west-1.compute.internal
22s 22s 1 kubelet, ip-172-20-48-43.eu-west-1.compute.internal Warning FailedMount Unable to mount volumes for pod "7ec0f710-b9b5-4d98-9e56-441467507b67-mdp4k_default(496819b6-1b6d-11e7-905f-02df02353cdd)": timeout expired waiting for volumes to attach/mount for pod "default"/"7ec0f710-b9b5-4d98-9e56-441467507b67-mdp4k". list of unattached/unmounted volumes=[processor-workdir-pvc]
22s
@ironhouzi
ironhouzi / lib.rs
Last active March 5, 2017 20:00
mismatched types error
pub mod table;
fn sanskrit_quickcheck(string: &str) -> bool {
for r in &table::S_BASIC_RULES {
if string.starts_swith(r) { // rustc: no method named `starts_swith` found for type `&str` in the current scope
return true;
}
}
false
}
def occurrance(graph_links):
normalized_graph_links = []
# validate_proc_defs() is a generator
for l in validate_proc_defs(proc_defs, graph_links, is_input=True):
normalized_graph_links.extend(l)
for l in validate_proc_defs(proc_defs, graph_links, is_input=False):
normalized_graph_links.extend(l)
kind: ConfigMap
apiVersion: v1
metadata:
name: nginxconfigmap
data:
nginxconfig: |-
worker_processes 1;
events {
worker_connections 1024;
@ironhouzi
ironhouzi / home_models.py
Last active November 7, 2016 23:48
Error: django.db.utils.ProgrammingError: multiple primary keys for table "gcal_centre" are not allowed
class AbstractHomePage(Page):
body = StreamField(HomePageStreamBlock(), verbose_name='hovedinnhold')
headingpanel = StreamField(
HeadingPanelStreamBlock(),
verbose_name='overpanel'
)
sidepanel = StreamField(SidePanelStreamBlock(), verbose_name='sidepanel')
class Meta:
abstract = True