Skip to content

Instantly share code, notes, and snippets.

@cofi89
cofi89 / xfce4-session-default-button.patch
Created December 30, 2020 20:05
Changes the XFCE logout dialog default button focus from LogOut to Shutdown.
*** /tmp/xfce4-session-4.16.0/xfce4-session/xfsm-logout-dialog.c 2020-05-19 01:02:37.000000000 +0200
--- /home/filip/Builds/xfce4.16/xfce4-session/4.16.0/xfce4-session-4.16.0/xfce4-session/xfsm-logout-dialog.c 2020-12-30 20:32:45.000000000 +0100
***************
*** 235,253 ****
/**
* Logout
**/
button = xfsm_logout_dialog_button (_("_Log Out"), "xfsm-logout",
"system-log-out", NULL,
XFSM_SHUTDOWN_LOGOUT, dialog);
@cofi89
cofi89 / gw_qtwk-ng_a1.log
Created June 18, 2017 23:14
Ghostwriter build log against WebKit-NG alpha 1
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DAPPVERSION=\"v1.5.0\" -DDATADIR=\"/usr/local/share/ghostwriter\" -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I. -Isrc -Isrc/spelling -isystem /usr/include/hunspell -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtWebKitWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtWebKit -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtConcurrent -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Ibuild/release -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o build/release/dictionary_provider_hunspell.o src/spelling/dictionary_provider_hunspell.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DAPPVERS
@cofi89
cofi89 / configure.in.diff
Created March 2, 2017 00:33
PM JXR configure.in.diff
dnl ========================================================
dnl = Enable JPEG-XR (JXR) decoder support
dnl ========================================================
-MOZ_JXR=1
-
MOZ_ARG_ENABLE_BOOL(jxr,
[ --disable-jxr Disable support for JPEG-XR (JXR) image format],
+ MOZ_JXR=1,
MOZ_JXR=)
This file has been truncated, but you can view the full file.
client.mk:201: /home/filip/git/Pale-Moon/pmbuild/.mozconfig.mk: No such file or directory
mkdir -p '/home/filip/git/Pale-Moon/pmbuild/'
python2.7 /home/filip/git/Pale-Moon/config/pythonpath.py -I /home/filip/git/Pale-Moon/testing/mozbase/mozfile \
/home/filip/git/Pale-Moon/python/mozbuild/mozbuild/controller/clobber.py /home/filip/git/Pale-Moon /home/filip/git/Pale-Moon/pmbuild
Clobber not needed.
> /home/filip/git/Pale-Moon/pmbuild/.mozconfig.mk
make -f /home/filip/git/Pale-Moon/client.mk realbuild CREATE_MOZCONFIG_JSON=
make[1]: Entering directory '/home/filip/git/Pale-Moon'
Adding client.mk options from /home/filip/git/Pale-Moon/mozconfig:
MOZ_CO_PROJECT=browser
System: Host: stretch-K10 Kernel: 4.9.11-ck1 x86_64 (64 bit gcc: 6.3.0)
Desktop: Xfce 4.12.3 (Gtk 2.24.31) info: xfce4-panel dm: lightdm
Distro: Debian GNU/Linux 9 (stretch)
Machine: Device: desktop Mobo: Gigabyte model: GA-880GA-UD3H BIOS: Award v: F7 date: 11/24/2010
CPU: Quad core AMD Phenom II X4 B55 (-MCP-) cache: 2048 KB
flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 27320
clock speeds: min/max: 800/3400 MHz 1: 2100 MHz 2: 2500 MHz 3: 800 MHz 4: 3400 MHz
Graphics: Card: Advanced Micro Devices [AMD/ATI] Baffin [Radeon RX 460]
bus-ID: 01:00.0 chip-ID: 1002:67ef
Display Server: X.Org 1.19.1 driver: amdgpu Resolution: 1920x1080@60.00hz
# Please see https://www.palemoon.org/redist.shtml for restrictions when using the official branding.
export MOZILLA_OFFICIAL=1
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=pmbuild
ac_add_options --enable-official-branding
ac_add_options --enable-application=browser
# mk_add_options MOZ_OBJDIR=/home/$USER/.pmbuild/
[snip]
INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")
/home/filip/git/Pale-Moon-bisect/netwerk/streamconv/converters/nsMultiMixedConv.cpp:477:7: warning: type ‘struct AutoFree’ violates the C++ One Definition Rule [-Wodr]
class AutoFree
^
/home/filip/git/Pale-Moon-bisect/dom/base/nsJSEnvironment.cpp:298:0: note: a different type is defined in another translation unit
class AutoFree {
/home/filip/git/Pale-Moon-bisect/netwerk/streamconv/converters/nsMultiMixedConv.cpp:497:9: note: the first difference of corresponding definitions is field ‘mBuffer’
@cofi89
cofi89 / icons.py
Last active January 7, 2017 23:28
Git-Cola "icons_dir" prototype ( absolute + ~/.config/git-cola/icons check )
def icon_dir(theme=None):
"""Return the path to the style dir within the cola install tree."""
if theme:
theme_final_dir = None
theme_absolute_dir = None
try:
theme_absolute_dir = os.path.expanduser(theme)
theme_final_dir = os.path.isdir(theme_absolute_dir)
except TypeError:
pass
@cofi89
cofi89 / trios-image-writer.sh
Created July 25, 2015 01:28
TRIOS Image writer - Detect and list USB devices...
# usb_detection
USB_DET=(`ls -l /dev/disk/by-path/*usb* | grep -v "part" | awk '{print $NF}' | awk -F "/" '{print $NF}' | sort`)
for usb in "${USB_DET[@]}"; do
if [ ! -b "/dev/$usb" ];
then
USB_DET=(${USB_DET[@]/$usb})
fi
done