configfile   379

« earlier    

autocomplete - Disable bash tab completion - Unix & Linux Stack Exchange |
Dennis' solution
<code class="language-bash">
bind 'set disable-completion on'

can be done on the fly in Bash as well. You do not need to put it in .bashrc.

Musta's solution (bash --noediting) works but also disables command line editing.

Another way is
<code class="language-bash">
bind -u complete

(unset key binding associated with 'complete'), 4.2 Bash Builtin Commands.
bash  configsetting  configfile  completion  tabcompletion  itsslow  fuckina  solution 
22 days ago by kme
You can make readline (and bash) much more user friendly by adding a few options to ~/.inputrc : commandline |
set completion-prefix-display-length 2

This one is insanely useful when you have a folder with lots of similarly named files and you are not sure how far the completion has gone when you press TAB. The first part that has been completed will be replaced by "...", and it is simple to see what you need to type to finish the completion.
inputrc  input  readline  bash  cli  configfile  configsettings  example  newbie  movein  essential 
6 weeks ago by kme
readline - How do I reload .inputrc using a bash script? - Super User |
Use the bind command:
<code class="language-bash">
bind -f ~/.inputrc

See help bind for more information:
-f filename Read key bindings from FILENAME.
keybindings  macros  inputrc  bash  configfile  configsettings  solution 
6 weeks ago by kme
bash - How do I reload .inputrc? - Super User |
Interesting, but doesn't work for me.
By default, C-x C-r is bound to re-read-init-file.

See the Bash Reference Manual for explanation.
bash  inputrc  keyboard  readline  configfile 
6 weeks ago by kme
linux - How to show line number when executing bash script - Stack Overflow |
<code class="language-bash">export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'</code>
bash  shellscripting  devel  debugging  configfile  movein  tipsandtricks  solution 
august 2018 by kme
webdav - How do I enable HTTP-DAV in Apache? - Server Fault |
Yup, I made this mistake, too:
I finally figured it out.

Instead of
<code class="language-apache"><Location /var/www/html/updates>
Dav On

it needs to be (Directory instead of Location)
<code class="language-apache"><Directory /var/www/html/updates>
Dav On
apache  webmaster  configfile  webdav  solution  fuckina 
august 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
php - Removing X-Powered-By - Stack Overflow |

I think that is controlled by the expose_php setting in PHP.ini:
<code class="language-php">expose_php = off</code>

Decides whether PHP may expose the fact that it is installed on the server (e.g. by adding its signature to the Web server header). It is no security threat in any way, but it makes it possible to determine whether you use PHP on your server or not.

There is no direct security risk, but as David C notes, exposing an outdated (and possibly vulnerable) version of PHP may be an invitation for people to try and attack it.
php  webdevel  webmaster  security  configfile  configuration  solution  dammitbrain 
may 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
numpy - Automatically import modules when entering the python or ipython interpreter - Stack Overflow |
Use the environment variable PYTHONSTARTUP. From the official documentation:
If this is the name of a readable file, the Python commands in that file are executed before the first prompt is displayed in interactive mode. The file is executed in the same namespace where interactive commands are executed so that objects defined or imported in it can be used without qualification in the interactive session.

python  ipython  ptpython  startup  configfile  solution 
may 2018 by kme
MySQL :: MySQL 8.0 Reference Manual :: 4.5.4 mysqldump — A Database Backup Program |
The "options file handling" options need to come *first* on the command line, otherwise you get an error like what's described in this bug report[1] like "mysql: unknown variable 'defaults-group-suffix=:whatever'"

dba  sysadmin  mysql  mysqldump  configfile  optionsfile  tipsandtricks  errormessage  solution 
may 2018 by kme
Manual:Short URL/Apache - MediaWiki |
In the Apache config (for the vhost or whatever):
<code class="language-apache">##

# Enable the rewrite engine
RewriteEngine On

# Short URL for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]

In 'LocalSettings.php':
<code class="language-php">
$wgScriptPath = "/w"; // this should already have been configured this way
$wgArticlePath = "/wiki/$1";
mediawiki  essential  movein  shorturl  configfile  webmaster  apache  solution 
may 2018 by kme
vagrantfile - Print message after booting vagrant machine with "vagrant up" - Stack Overflow |
Vagrant now has builtin support for a message to appear after vagrant up. Just add this to your Vagrantfile:

<code class="language-ruby">config.vm.post_up_message = "This is the start up message!"</code>

And then after your VM has come up you'll see this message in green:

<code>==> default: Machine 'default' has a post `vagrant up` message. This is a message
==> default: from the creator of the Vagrantfile, and not from Vagrant itself:
==> default:
==> default: This is the start up message!</code>
vagrant  vagrantfile  provisioning  configfile  solution 
may 2018 by kme

« earlier    

related tags

aliases  annoyance  apache  authentication  autojump  azupi  backup  backupandrecovery  bash  bashcompletion  bashrc  bootmanager  buffers  bundling  butwhy  cargo  centos  centos6  cli  cloneurl  cm  commandline  commentcharacter  comments  completion  composer  concurrency  config  configini  configparser  configsetting  configsettings  configuration  confusing  console  consolefont  conversion  converter  credentials  customization  dammitbrain  database  datamunging  davmail  dba  debian  debugging  devel  distributed  docker  dockerfile  documentation  dotfile  dotfiles  dualboot  editor  elementary  elementaryos  encryption  environment  errormessage  essential  ews  example  exchange  explained  eyecandy  faq  fedora  feerd  fileformat  filetype  fish  flask  framebufferconsole  fuckina  generator  git  gitattributes  gitlab  go  gpg  grub  grub2  hibernate  history  hotkeys  howto  httpd  https  idle  importexport  inifile  initsystem  input  inputoutput  inputrc  ipython  irb  itsslow  java  javascript  jdk  jre  json  jvm  keybindings  keyboard  language  ldap  library  linter  linux  lp  macros  maybe  maybesolution  mediawiki  memoryusage  mobilecheck  mod_wsgi  modeline  module  modulefile  modules  movein  mysql  mysqldump  needshelp  newbie  nginx  nodejs  npm  optionsfile  owncloud  package.json  packagemanagement  parser  passwordmanager  pep8  performancetuning  perl  php  plugin  postmaster  powermanagement  powershell  promptstring  provisioning  proxy  ptpython  python  rcfile  readline  reference  repl  reverseproxy  rhel  ruby  rust  searching  security  selinux  serialization  shell  shellscripting  shorturl  sidekiq  smtp  solution  sortof  ssh  ssl  startup  swift  syntastic  syntax  syntaxchecker  syntaxhighlighting  sysadmin  sysadminc  systemd  tabcompletion  templatetoolkit  textediting  texteditor  theme  timezone  tipsandtricks  tmux  toml  transformation  turingcomplete  tutorial  ubuntu  uglify  uwsgi  vagrant  vagrantfile  vgcjs110j  vi  vim  vimode  virtualenv  vue-resource  vuejs  watchthisspace  webdav  webdevel  webhosting  webmaster  webpack  websockets  windows  wordpress  workaround  yaml  yourls 

Copy this bookmark: