recentpopularlog in

kme : config   53 · master · / gitlab-workhorse · GitLab
FIXME: sit down and document how I *actually* did this. I don't think it was necessary to specify the auth backend in /etc/gitlab/gitlab.rb.
Relative URL support If you are mounting GitLab at a relative URL, e.g., then you should also use this relative URL in the authBackend setting:
<code class="language-bash">gitlab-workhorse -authBackend http://localhost:8080/gitlab</code>
gitlab  workhorse  config  sysadmin  webmaster 
9 weeks ago by kme
apache - Apache2 ProxyPass for Rails App Gitlab - Stack Overflow
The problem I was having was a route that matched "/icons," and it was trying to serve GitLab's 'icons-[HASH].svg' from the filesystem, which resulted in a 404.
webmaster  gitlab  apache  rails  proxy  config  reference 
9 weeks ago by kme
URL Management | Hugo
It's better to use ':filename' for a permalink, since you could easily update the title in the YAML front matter and break existing URLs that you'd already shared with people (or had indexed by search engines).

<code class="language-toml">
post = "/:year/:month/:filename/"

If you've already set up your blog and had it running for a while, good luck creating redirects for all the pages whose titles have changed.
hugo  blog  permalink  config  essential  configfile  bestpractice 
9 weeks ago by kme
tmux windows and pane split's on current directory (Example)
Apparently this behavior changed in 1.9, but the link to the changelog in this article is broken.

<code>bind-key c new-window -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"</code>
tmux  movein  config  dotfile  fuckina  solution 
august 2019 by kme
MediaWiki FAQ - Meta |
How do I purge cached pages?

1. You can use ?action=purge on individual pages to update their cache dates.
2. There is a global $wgCacheEpoch variable which can be set in LocalSettings.php to invalidate all prior cache entries (see DefaultSettings.php)
3. If you want to purge all pages in the parser cache, truncate objectcache table from the wiki database. You may use this command:

<code class="language-sql">TRUNCATE TABLE objectcache;</code>

Hint: If this fails, you might be using a prefix for your database tables!
mediawiki  configsetting  config  webmaster  sysadmin  reference 
june 2018 by kme
Mailing List Archive: Re: MediaWiki 1.28.0 Extension LDAPAuthentication does not work |
There is a new permission available that governs the right to create accounts when logging in with an external user account. It's called "autocreateaccount" [0]. You have to add to your config something like:
<code class="language-php">$wgGroupPermissions['*']['autocreateaccount'] = true;</code>

Or maybe this is enough:
<code class="language-php">$wgGroupPermissions['user']['autocreateaccount'] = true;</code>

See also
mediawiki  ldap  authentication  config  configfile  solution 
june 2018 by kme
Change Apache httpd "Server:" HTTP header - Unix & Linux Stack Exchange |
I simply changed the directives in security.conf and Apache started working as I wanted.
<code class="language-apache">
ServerTokens Prod
ServerSignature Off
webmaster  apache  httpd  config  configfile  security  configuration  solution  dammitbrain 
may 2018 by kme
http - Access-Control-Allow-Origin Multiple Origin Domains? - Stack Overflow

Sounds like the recommended way to do it is to have your server read the Origin header from the client, compare that to the list of domains you'd like to allow, and if it matches, echo the value of the Origin header back to the client as the Access-Control-Allow-Origin header in the response.

With .htaccess you can do it like this:

# ----------------------------------------------------------------------
# Allow loading of external fonts
# ----------------------------------------------------------------------
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
SetEnvIf Origin "http(s)?://(www\.)?(||||$" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin

cors  webmaster  apache  security  config 
september 2017 by kme
mod_wsgi (Apache) — Flask Documentation (0.12) []
Working with Virtual Environments
Virtual environments have the advantage that they never install the required dependencies system wide so you have a better control over what is used where. If you want to use a virtual environment with mod_wsgi you have to modify your .wsgi file slightly.

Add the following lines to the top of your .wsgi file:

activate_this = '/path/to/env/bin/'
execfile(activate_this, dict(__file__=activate_this))
For Python 3 add the following lines to the top of your .wsgi file:

activate_this = '/path/to/env/bin/'
with open(activate_this) as file_:
exec(, dict(__file__=activate_this))
flask  python  webdevel  webmaster  deployment  apache  mod_wsgi  config  solution 
august 2017 by kme
How to stop auto indenting | Vim Tips Wiki | FANDOM powered by Wikia
Disabling file type based indentation for a specific file typeEdit

You may like auto indenting in C programs, but dislike it when editing html files. You can disable auto indentation for particular files types; the following example shows how to do this for html files.

Create the file ~/.vim/indent/html.vim on Unix-based systems, or $HOME/vimfiles/indent/html.vim on Windows systems, containing the single line:

let b:did_indent = 1

This creates a user-specific indent script which will be loaded before the file type indent script. Auto indenting for the particular file type is disabled because well-behaved indent scripts do nothing if the buffer-local variable b:did_indent is defined (that variable indicates that the current buffer already has script-based indenting enabled).
vim  autoindent  config  essential  annoyance  solution 
july 2017 by kme
How do I configure my list to accept non-members' postings? | Stanford Answers
Select 'Privacy Options->Sender filters', In the 'Non-member filters', add one address per line in 'accept_these_nonmembers' field to allow non-member postings. Here are some examples:

Allow an individual address:
Allow Stanford domain only: ^.*
Allow members from another list to post to your list: @LISTNAME (use only the list name and not the full address; that is, @LISTNAME, not
Allow everyone to post: ^.*
mailman  mlm  postmaster  config  solution 
february 2017 by kme
xenoterracide: Making usable
Update 2017-10-25: Finally found out how to keep Ctrl+C from terminating the REPL--add the "Interrupt" plugin.

You will probably need to install Sys::SigAction, because that doesn't seem to be pulled in as a dependency of Devel::REPL.

On a Mac, you will need to install Term::ReadLine::Perl.

<code class="language-perl">
# put this in $HOME/
use 5.012;
use warnings;

load_plugin qw(
perl  repl  config  configfile  movein  syntaxhighlighting  history  completion  solution  fuckina  essential 
december 2016 by kme
WebExtensions - MozillaWiki
type about:config into the URL bar in Firefox
in the Search box type xpinstall.signatures.required
double-click the preference, or right-click and selected "Toggle", to set it to false.
webextension  firefox  addon  extension  config 
september 2015 by kme
BigSmoke » LDAP search filter for Thunderbird and Zimbra
When configuring an LDAP addressbook, one thing that has given me a lot of trouble, is the LDAP filter. Here are two I use.

For thunderbird:


For Zimbra:

thunderbird  ldap  config  settings  tipsandtricks 
january 2014 by kme
New release - Google Groups
- Add boolean hidden pref, OpenFileInNewWindows. When you open a file
(e.g., a shell script) in finder with iTerm2, this controls whether it
opens in a new window or tab.
iterm2  releasenotes  tipsandtricks  mac  osx  defaults  config 
march 2013 by kme

Copy this bookmark:

to read