Skip to content

Instantly share code, notes, and snippets.

View nietaki's full-sized avatar
😌
purposeful

Jacek Królikowski nietaki

😌
purposeful
View GitHub Profile
@nietaki
nietaki / gist:8870674
Created February 7, 2014 20:03
building OwlNest
nietaki@xebab:~/OwlNest/Builds/Linux$ make
Linking OwlNest
../../Libraries/libusbx/libusb-1.0.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make: *** [build/OwlNest] Error 1
nietaki@xebab:~/OwlNest/Builds/Linux$ make clean
Cleaning OwlNest
nietaki@xebab:~/OwlNest/Builds/Linux$ make
Compiling ApplicationSettingsWindow.cpp
Compiling DualPatchPanel.cpp
nietaki@zombie:~/minecraft_server/forge_automatic$ java -Xmx1500M -Xms1500M -jar forge-1.7.2-10.12.0.1024-universal.jar nogui
[22:38:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
[22:38:31] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLServerTweaker
[22:38:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLServerTweaker
[22:38:31] [main/INFO] [FML]: Forge Mod Loader version 7.2.116.1024 for Minecraft 1.7.2 loading
[22:38:31] [main/INFO] [FML]: Java is OpenJDK Client VM, version 1.7.0_25, running on Linux:i386:3.11.0-12-generic, installed at /usr/lib/jvm/java-7-openjdk-i386/jre
[22:38:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[22:38:31] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[22:38:31] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods
screen -S "somename" -d -m
screen -r "somename" -X stuff $'ls\n'
/**
* Created by nietaki on 21.05.14.
*/
import scala.util.Properties
object Runner {
def main(args: Array[String]): Unit = {
Properties.envOrNone("EDITOR").map(v => println(s"editor set to $v"))
}
}
@nietaki
nietaki / .bashrc
Created June 4, 2014 11:34
findall
# findall sth /home/nietaki znajduje wszystkie pliki zawierające słowo sth w katalogu (i podkatalogach) /home/nietaki
function findall() { /bin/grep -H -I "$@" -R | cut -d: -f1 | uniq | sort;}
#AppStore: Install XCode
#install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
curl https://gist.githubusercontent.com/pyetras/4b59e1902cfaf9af3c98/raw/Caskfile > Caskfile
curl https://gist.githubusercontent.com/pyetras/4b59e1902cfaf9af3c98/raw/Brewfile > Brewfile
/* Rozwiazanie zadania Nawiasy
* Autor: Jacek Królikowski
* Data: 30.09.2008
*/
//poprawiam repo
//
//
//
//cd
//#include <cstdio>
set nocompatible
set showmatch
set autoindent
set smartindent
:set ts=3
:set langmenu=en_US.UTF-8
:command Tree NERDTree
int intSnd(int qid, int type, int msg){
int ret;
struct intmsgbuf in;
in.mtype = type;
in.mtext[0] = msg;
ret = msgsnd(qid, &in, sizeof(int), SND_MSG_FLAG);
if(ret == -1){
syserr("msgsnd");
}
return ret;
void *watek(void *intype_ptr){
printf("samo wnetrze watku \n");
int intype = *((int*)intype_ptr);
free((int*)intype_ptr);
printf("%i - intype\n", intype);
int k = intRcv(inqid, intype);
printf("rozmiar wiadomosci do odebrania - %i \n", k);
int i, tmp;
/*for(i=0;i<k;i++){