Skip to content

Instantly share code, notes, and snippets.

git clone git://git.buildroot.net/buildroot --depth 1
cd buildroot
make qemu_arm_versatile_defconfig
echo "default -1 default -1 =password - /bin/sh - " > user.tables
make menuconfig
# System configuration
# -> System hostname
# -> Root password
# -> Network interface to configure through DHCP
# -> Install timezone info
#include <cstddef>
#include <cuda_runtime_api.h>
#include "benchmark/benchmark.h"
#define BASIC_BENCHMARK_TEST(x) \
BENCHMARK(x)->Range(8, 8<<20)
void BM_malloc(benchmark::State& state) {
void * ptr = 0;
while (state.KeepRunning()) {
#/bin/sh -f
# things to do for travis-ci in the before_install section
if ( test "`uname -s`" = "Darwin" )
then
#cmake v2.8.12 is installed on the Mac workers now
#brew update
#brew install cmake
echo
@janisz
janisz / warsjava_confirmation.py
Created September 20, 2014 18:20
Warsjava confirmation page generator
return """<!DOCTYPE html>
<html>
<head lang="en"><link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"><title>Warsjawa: 100% workshop formula | Confirmation</title><meta name="description" content="Conference for developers, by developers. Unique 100% workshop formula. “Learn by doing” approach. Proudly host workshops related to all aspects of software development: designing, developing, testing, maintaining etc. Initially oriented around Java and JVM programming languages. Now open to other programming languages like Scala, Groovy, Python, mobile development for Android, iOS and others."><link rel="stylesheet" href="http://warsjawa.pl/stylesheets/warsjawa.css"><link rel="shortcut icon" href="http://warsjawa.pl/images/favicons/favicon.ico"><link rel="apple-touch-icon" sizes="57x57" href="http://warsjawa.pl/images/favicons/apple-touch-icon-57x57.png">
@janisz
janisz / wsdl2java.gradle
Created August 26, 2014 07:21
wsdl2java
repositories.mavenCentral()
configurations { wsdl }
dependencies {
wsdl 'org.apache.axis:axis:1.4'
wsdl 'commons-logging:commons-logging:1.1.1'
wsdl 'javax.xml:jaxrpc:1.1'
wsdl 'commons-discovery:commons-discovery:0.2'
wsdl 'javax.xml.soap:saaj-api:1.3.5'
@janisz
janisz / build.gradle
Created July 10, 2014 08:49
WSDL2Java
repositories.mavenCentral()
configurations { wsdl }
dependencies {
wsdl 'org.apache.axis:axis:1.4'
wsdl 'commons-logging:commons-logging:1.1.1'
wsdl 'javax.xml:jaxrpc:1.1'
wsdl 'commons-discovery:commons-discovery:0.2'
wsdl 'javax.xml.soap:saaj-api:1.3.5'
@janisz
janisz / zpi
Last active August 29, 2015 14:01
ZPI
1. Projekt wg PMBOK:
* ✓ **Powinien mieć ograniczony czas trwania**
* ✓ **Tworzyć unikalne produkty i/lub usługi**
* Może być realizowany wielokrotnie np. produkcja seria monitorów to seria projektów o identycznych wymaganiach
* Jest zarządzany przez sponsora projektu
* Jest zarządzany przez przewodniczącego komitetu sterującego
2. Zmiana w zakresie projektu wg PMBOK, w trakcie trwania projektu:
* Nigdy nie powinna występować
* ✓ **Jest dozwolona**
@janisz
janisz / aciart
Created January 18, 2014 20:28
make love not war
_ __ ___ __ _ | | __ ___
| '_ ` _ \ / _` || |/ // _ \
| | | | | || (_| || <| __/
|_| |_| |_| \__,_||_|\_\\___|
_
| | ___ __ __ ___
| | / _ \\ \ / // _ \
| || (_) |\ V /| __/
|_| \___/ \_/ \___|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda.h>
#define BLOCKS 10
#define THREADS 100
#define ELEMENTS_COUNT (BLOCKS*THREADS)
#define DATA_SIZE (ELEMENTS_COUNT * sizeof(storeElement))
#define COMPRESSED_ELEMENT_SIZE 10
@janisz
janisz / .gitconfig
Last active December 31, 2015 06:39
[push]
default = current
[merge]
tool = meld
[alias]
cp = cherry-pick
st = status -s
cl = clone
ci = commit
co = checkout