Skip to content

Instantly share code, notes, and snippets.

@trap000d
trap000d / seafile-8.0.3-invalid_file_name_windows_in_Linux.diff
Created July 1, 2021 07:46
Suppress invalid windows file names error in Seafile 8.0.3 client daemon
diff -ru seafile-8.0.3.original/daemon/repo-mgr.c seafile-8.0.3/daemon/repo-mgr.c
--- seafile-8.0.3.original/daemon/repo-mgr.c 2021-06-24 18:03:18.000000000 +1200
+++ seafile-8.0.3/daemon/repo-mgr.c 2021-07-01 19:23:57.291706307 +1200
@@ -1362,7 +1362,7 @@
}
#endif
-#ifndef WIN32
+#ifdef WIN32
base_name = g_path_get_basename(full_path);
@trap000d
trap000d / rstudio-aee4453_libboost175.diff
Last active December 23, 2020 04:31
Build RStudio against boost 1.75
diff -Nru rstudio-rstudio-aee4453.original/src/cpp/CMakeLists.txt rstudio-rstudio-aee4453/src/cpp/CMakeLists.txt
--- rstudio-rstudio-aee4453.original/src/cpp/CMakeLists.txt 2020-09-18 06:16:48.000000000 +1200
+++ rstudio-rstudio-aee4453/src/cpp/CMakeLists.txt 2020-12-23 17:29:51.015656459 +1300
@@ -28,6 +28,7 @@
# global directives
add_definitions(-DBOOST_ENABLE_ASSERT_HANDLER)
+add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
# explicitly do not use new c++ 11 features for websocketpp
@trap000d
trap000d / debpackagingHowTo.txt
Created February 23, 2018 22:26
Create Ubuntu DEB package from a Qt application for Launchpad
Create Ubuntu DEB package from a Qt application
Setting up the environment
sudo apt-get install build-essential devscripts ubuntu-dev-tools debhelper dh-make diff patch gnupg fakeroot lintian pbuilder
sudo apt-get install cdbs
Pbuilder lets you build in a clean, chroot environment, ensuring
all dependencies are present. Create a file .pbuilderrc
#Uploaded in response to query on psychopy list: https://groups.google.com/group/psychopy-users/browse_thread/thread/c65e453edf530f8
#asking for code to input a string.
#Program flashes string on screen, and user tries to type it in. Supports backspace but no other editing special characters.
#Checks whether subject got it right
#Alex Holcombe alex.holcombe@sydney.edu.au 21 August 2012
#licensing: CC-BY whch means do whatever you want with it, with an attribution to the author. If you want permission to use it without
#attribution, just contact me.
from psychopy import monitors, visual, event, data, logging, core, sound, gui
import psychopy.info