Skip to content

Instantly share code, notes, and snippets.

View nietaki's full-sized avatar
😌
purposeful

Jacek Królikowski nietaki

😌
purposeful
View GitHub Profile
ld -o $fbase -melf_i386 $fbase.o /usr/lib32/crt?.o -l:/usr/lib32/libc.a
/usr/lib32/libc.a(vfprintf.o): In function `vfprintf':
(.text+0x147c): undefined reference to `_Unwind_Resume'
/usr/lib32/libc.a(vfprintf.o):(.eh_frame+0x1fb): undefined reference to `__gcc_personality_v0'
/usr/lib32/libc.a(syslog.o): In function `__vsyslog_chk':
(.text+0x798): undefined reference to `_Unwind_Resume'
/usr/lib32/libc.a(syslog.o): In function `__vsyslog_chk':
(.text+0x7aa): undefined reference to `_Unwind_Resume'
/usr/lib32/libc.a(syslog.o): In function `openlog':
(.text+0x8a9): undefined reference to `_Unwind_Resume'
@nietaki
nietaki / CLInfo
Created April 13, 2013 18:43
CLInfo z nvidia i khaki
[khaki02 CLInfo]$ ./CLInfo
Number of platforms: 1
Platform Profile: FULL_PROFILE
Platform Version: OpenCL 1.1 CUDA 4.2.1
Platform Name: NVIDIA CUDA
Platform Vendor: NVIDIA Corporation
Platform Extensions: cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll
Platform Name: NVIDIA CUDA
object camps {
import scala.collection.mutable.Queue
import scala.math.Ordering.Implicits._ //do porównywania tupli, można też napisać własną funkcję
//zakładam, że na początku mamy wybór do którego z pierwszych trzech kampów zawitać i że musimy trafić do ostatniego
def getBestRoute( camps: List[Int]): Tuple2[Int, List[Int]] = {
if(camps.length == 0) { //jak nie ma żadnych campingów
(0, List())
/opt/cuda-5.0.35/lib64:
/opt/XLE/lib:
/lib:
/lib64:
/usr/lib:
/usr/lib64:
jk292749@students:/lib$ find /usr/lib64 -iname "*boost*" 2>/dev/null
/usr/lib64/libboost_date_time.so
/usr/lib64/libboost_filesystem.so
@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