Skip to content

Instantly share code, notes, and snippets.

@konsolebox
konsolebox / ph
Last active September 19, 2024 04:59
#!/bin/bash -p
# ph (Portage Helper)
#
# An opinionated tool that provides useful commands for querying and
# modifying Portage-related stuff
#
# Usage: ph command [arguments]
#
# Copyright (c) 2024 konsolebox
diff --git a/cnf/make.globals b/cnf/make.globals
index f951bb3..9716371 100644
--- a/cnf/make.globals
+++ b/cnf/make.globals
@@ -80,7 +80,7 @@ FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs
fixlafiles ipc-sandbox merge-sync multilib-strict
network-sandbox news parallel-fetch pid-sandbox
preserve-libs protect-owned qa-unresolved-soname-deps
- sandbox sfperms strict
+ restrict-mirror sandbox sfperms strict
> git diff variables.c examples/loadables/realpath.c
diff --git a/examples/loadables/realpath.c b/examples/loadables/realpath.c
index d52739c9..1cbcaa0d 100644
--- a/examples/loadables/realpath.c
+++ b/examples/loadables/realpath.c
@@ -67,7 +67,7 @@ int
realpath_builtin(WORD_LIST *list)
{
int opt, cflag, vflag, qflag, sflag, aflag, es;
- char *r, realbuf[PATH_MAX], *p, *newpath;
> git diff configure.ac config.h.in variables.c
diff --git a/config.h.in b/config.h.in
index 84113a8f..6647a490 100644
--- a/config.h.in
+++ b/config.h.in
@@ -121,6 +121,10 @@
to have by default */
#undef EXTGLOB_DEFAULT
+/* Define BASH_SOURCE_FULLPATH_DEFAULT to the value you'd like the
> git diff
diff --git a/builtins/evalfile.c b/builtins/evalfile.c
index 17a568a0..4084a496 100644
--- a/builtins/evalfile.c
+++ b/builtins/evalfile.c
@@ -85,8 +85,9 @@ _evalfile (const char *filename, int flags)
size_t file_size;
sh_vmsg_func_t *errfunc;
#if defined (ARRAY_VARS)
- SHELL_VAR *funcname_v, *bash_source_v, *bash_lineno_v;
ℹ info Ruby version="3.3.0"
ℹ info OpenSSL (gem) version="3.2.0"
ℹ info digest-xxhash version="0.2.7"
ℹ info MurmurHash3 version="0.1.7"
ℹ info CityHash version="0.9.0"
ℹ info Generating random data size="1.0MiB"
ℹ info Running benchmarks iterations=10000
Rehearsal -------------------------------------------------------------
Digest::MD5 14.616807 0.023065 14.639872 ( 14.678677)
Digest::SHA1 12.981430 0.000000 12.981430 ( 12.995658)
diff --git a/modules/pam_pwhistory/opasswd.c b/modules/pam_pwhistory/opasswd.c
index 859b3da..7fbdc0a 100644
--- a/modules/pam_pwhistory/opasswd.c
+++ b/modules/pam_pwhistory/opasswd.c
@@ -128,9 +128,9 @@ static int
compare_password(const char *newpass, const char *oldpass)
{
char *outval;
+ int retval;
#ifdef HAVE_CRYPT_R
> git diff shell.c builtins/evalfile.c
diff --git a/builtins/evalfile.c b/builtins/evalfile.c
index 17a568a0..204f0044 100644
--- a/builtins/evalfile.c
+++ b/builtins/evalfile.c
@@ -85,6 +85,7 @@ _evalfile (const char *filename, int flags)
size_t file_size;
sh_vmsg_func_t *errfunc;
#if defined (ARRAY_VARS)
+ char *real_filename, realbuf[PATH_MAX+1];
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 9c543da..9e2ce5d 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -191,7 +191,6 @@ static gboolean terminal_window_action_close_tab (TerminalWindo
static gboolean terminal_window_action_close_other_tabs (TerminalWindow *window);
static gboolean terminal_window_action_close_window (TerminalWindow *window);
static gboolean terminal_window_action_copy (TerminalWindow *window);
-static gboolean terminal_window_action_copy_html (TerminalWindow *window);
static gboolean terminal_window_action_paste (TerminalWindow *window);
XfdesktopIconView.view.label {
text-shadow: 1px 1px 2px #888888;
color: black;
background: alpha(#ffffff, 0.75);
}