Skip to content

Instantly share code, notes, and snippets.

View supr's full-sized avatar

supr

  • C|^_^|Ɔ
  • GU HQ, 21 Faro System.
View GitHub Profile
@supr
supr / main.rs
Created December 23, 2015 06:48
use std::env;
use std::process;
use std::str;
use std::io::{Error, Read};
extern crate hyper;
use hyper::client::Client;
use hyper::header::UserAgent;
use hyper::method::Method;
# End of file
foo - renice -10
bar - memlock unlimited
foo - core unlimited
bar - nofile 32768
foo - nproc unlimited
bar - nice -10
with open('/my/log.log', 'w') as f:
f.write("Hello World")
f = open('/my/log', 'w')
f.write("1")
f.write("2")
2015-02-06 21:50:04,232 ERROR GlobalExceptionMapper PATCH /api/process exception:
java.lang.NullPointerException
at com.mapr.installer.model.Process.addNewGroup(Process.java:462)
at com.mapr.installer.model.Process.provision(Process.java:384)
at com.mapr.installer.model.Process.patch(Process.java:343)
at com.mapr.installer.controller.ProcessController.patch(ProcessController.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
@supr
supr / vimrc
Created November 20, 2014 22:24
vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle.vim
call vundle#begin()
Plugin 'gmarik/vundle.vim'
" A Buffer/file/mru/tag explorer with fuzzy text matching
Plugin 'kien/ctrlp.vim'
@supr
supr / main.rs
Created September 19, 2014 05:22
Simple Thread Implementations in Rust
use std::os;
fn main() {
let (tx, rx) = channel();
let args = os::args();
let mut max_messages: uint = 10u;
println!("Command line args len: {}", args.len());
#include<iostream>
template<typename T>
class Node {
public:
T data;
Node<T>* next;
};
template<typename T> class List;
#include <iostream>
#include <string>
using namespace std;
template<typename T>
struct Node {
T item;
struct Node<T> *next;
};
FROM centos:centos6
MAINTAINER foo@bar.com
ADD ./file1 /opt/example/
ADD ./file2 /opt/example/
ADD ./dir1 /opt/example/
ADD ./dir2 /opt/example/
RUN ls -l /opt/example
docker build -t 'deleteme' .
Sending build context to Docker daemon 9.728 kB