Skip to content

Instantly share code, notes, and snippets.

Ivan Kozik ivan

Block or report user

Report or block ivan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ivan
ivan / firefox-and-push-mozilla.sh
Last active Nov 8, 2019
Share Firefox profile between two Linux machines without Firefox Sync
View firefox-and-push-mozilla.sh
#!/usr/bin/env bash
"$@"
if [[ $HOSTNAME != "ra" ]]; then
push-mozilla
fi
@ivan
ivan / xfce4-panel-window-buttons-icon-size.patch
Last active Nov 8, 2019
xfce4-panel: window buttons: fix tiny icons when labels are enabled
View xfce4-panel-window-buttons-icon-size.patch
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 74119d1a..e694f651 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -651,7 +651,7 @@ xfce_tasklist_get_window_icon (WnckWindow *window,
{
GdkPixbuf *pixbuf;
- if (show_labels || type == CHILD_TYPE_GROUP_MENU || size <= 31)
+ if (size <= 31)
@ivan
ivan / use-ctrl-j-to-open-downloads.patch
Last active Nov 8, 2019
Firefox: use ctrl-j to open downloads on Linux
View use-ctrl-j-to-open-downloads.patch
diff --git a/browser/base/content/browser-sets.inc b/browser/base/content/browser-sets.inc
index c90f3aa340ef..fcd9f17e9971 100644
--- a/browser/base/content/browser-sets.inc
+++ b/browser/base/content/browser-sets.inc
@@ -129,11 +129,10 @@
#
# Search Command Key Logic works like this:
#
-# Unix: Ctrl+K (cross platform binding)
-# Ctrl+J (in case of emacs Ctrl-K conflict)
@ivan
ivan / sanitize.ex
Last active Nov 3, 2019
Elixir vs Rust: delete all ?ei= or &ei= from URL
View sanitize.ex
defp sanitize_url(s) do
uri = URI.parse(s)
new_query = case uri.query do
nil -> nil
query ->
query
|> URI.decode_query()
|> Map.delete("ei")
|> URI.encode_query()
end
@ivan
ivan / chromium-revert-commit-causing-tearing.patch
Created Sep 22, 2019
chromium-revert-commit-causing-tearing.patch
View chromium-revert-commit-causing-tearing.patch
From cd0dc202be0a2b5964a920bc48bffd1bc2135c31 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Sun, 22 Sep 2019 00:26:17 +0000
Subject: [PATCH] Revert "Always use the same visual for GLSurfaceGLX"
This reverts commit ec69eaf767f86d6fc1cd43f4800b0486e8d656af.
---
ui/gl/gl_surface_glx.cc | 41 ++++++++++++++++-------------------------
ui/gl/gl_surface_glx.h | 3 +++
2 files changed, 19 insertions(+), 25 deletions(-)
View gist:29429a8fc04b7e356332b7225ba3b241
# nix-env --builders '' -f ~/code/system/nixpkgs -iA nodejs-12_x
installing 'nodejs-12.10.0'
warning: ignoring the user-specified setting 'auto-optimise-store', because it is a restricted setting and you are not a trusted user
warning: ignoring the user-specified setting 'require-sigs', because it is a restricted setting and you are not a trusted user
warning: ignoring the user-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user
warning: ignoring the user-specified setting 'trusted-substituters', because it is a restricted setting and you are not a trusted user
warning: ignoring the user-specified setting 'trusted-users', because it is a restricted setting and you are not a trusted user
...
@ivan
ivan / konsole-focus-tab-to-the-right-on-close.patch
Created Sep 2, 2019
Fix konsole behavior on tab close: don't focus the most-recently-used tab; focus the tab to the right instead
View konsole-focus-tab-to-the-right-on-close.patch
diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp
index ebceaeed..7e31fbea 100644
--- a/src/ViewManager.cpp
+++ b/src/ViewManager.cpp
@@ -507,8 +507,7 @@ void ViewManager::focusAnotherTerminal(ViewSplitter *toplevelSplitter)
}
}
} else if (_terminalDisplayHistory.count() >= 1) {
- // Give focus to the last used terminal tab
- switchToTerminalDisplay(_terminalDisplayHistory[0]);
@ivan
ivan / nixpkgs.patch
Created Aug 29, 2019
Let hardened NixOS run 32-bit executables
View nixpkgs.patch
From 0554a382fc0e0a31a12dabe2e09c4fae3388d0e9 Mon Sep 17 00:00:00 2001
From: Ivan Kozik <ivan@ludios.org>
Date: Thu, 20 Dec 2018 00:34:04 +0000
Subject: [PATCH] hardened kernel: keep support for 32-bit executables
NixOS relies on them: https://github.com/NixOS/nixpkgs/issues/51097
We also use 32-bit foobar2000 and some 32-bit games.
---
pkgs/os-specific/linux/kernel/hardened-config.nix | 1 -
View xfceUnstable.patch
diff --git a/nixos/modules/services/x11/desktop-managers/xfce.nix b/nixos/modules/services/x11/desktop-managers/xfce.nix
index 98a813480c9..ef2c87b6d37 100644
--- a/nixos/modules/services/x11/desktop-managers/xfce.nix
+++ b/nixos/modules/services/x11/desktop-managers/xfce.nix
@@ -47,7 +47,7 @@ in
};
config = mkIf cfg.enable {
- environment.systemPackages = with pkgs.xfce // pkgs; [
+ environment.systemPackages = with pkgs.xfceUnstable // pkgs; [
You can’t perform that action at this time.