recentpopularlog in

kme : configuration   78

Multiline YAML string for GitLab CI (.gitlab-ci.yml) - Stack Overflow
Multi-line scalars (just break over multiple lines and indent at least up to the value in the previous line) will probably work fine in most cases, unless there's a ':' somewhere in the command line.

I used a "folded scalar":
A folded scalar is similar to a plain scalar in that all (single) newlines are substituted by a space during loading:
<code class="language-yaml">script:
- >
echo -e
"echo 'hi';
echo 'bye';"</code>
You need to indent the actual command information at least as much as the folded scalar indicator (>).

Contrary to plain scalars things like : have no special meaning. So if plain scalars fail by throwing a YAML error, similar folded scalars most likely won't.
yaml  gitlab  gitlab-ci  configuration  multilinestrings  solution 
18 days ago by kme
How to configure docker to use proxy – The Geek Diary
See also: https://stackoverflow.com/questions/26166550/set-docker-opts-in-centos
1. Create a drop-in
<code class="language-bash">sudo mkdir /etc/systemd/system/docker.service.d</code>

2. Create a file with name /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:
<code class="language-ini">[Service]
Environment="HTTP_PROXY=http://user01:password@10.10.10.10:8080/"
Environment="HTTPS_PROXY=https://user01:password@10.10.10.10:8080/"
Environment="NO_PROXY= hostname.example.com,172.10.10.10"</code>

3. reload the systemd daemon
<code class="language-bash">sudo systemctl daemon-reload</code>

4. restart docker
<code class="language-bash">sudo systemctl restart docker</code>

5. Verify that the configuration has been loaded:
<code class="language-bash">sudo systemctl show docker --property Environment
# result:
# Environment=GOTRACEBACK=crash HTTP_PROXY=http://10.10.10.10:8080/ HTTPS_PROXY=http://10.10.10.10:8080/ NO_PROXY= hostname.example.com,172.10.10.10
</code>
docker  sysadmin  systemd  proxy  configfile  configuration  solution 
9 weeks ago by kme
Backups | GitLab
Note: Running
<code class="language-bash">sudo gitlab-ctl backup-etc <DIRECTORY></code> will place the backup in the specified directory. The directory will be created if it does not exist. Absolute paths are recommended.

Note: backup-etc introduced in GitLab 12.3.
gitlab  configuration  backup  disasterpreparedness  sysadmin  solution 
9 weeks ago by kme
ElasticSearch configuration via `gitlab.rb` (#3457) · Issues · GitLab.org / omnibus-gitlab · GitLab
Not a problem I have, just interesting. As of GitLab 12.5.something, you have to enable and configure Elasticsearch through the "Admin Area," and you have to have an active (paid) license.
gitlab  configuration  searchandindex  elasticsearch  interesting 
10 weeks ago by kme
XTerm introduction and TrueType fonts configuration
My ~/.Xdefaults
<code class="language-xdefaults">! source: http://futurile.net/2016/06/14/xterm-setup-and-truetype-font-configuration/
xterm*background: Black
xterm*faceName: Input Mono
xterm*faceSize: 12
xterm*foreground: grey
! enables "UTF-8 Encoding" and "UTF-8 Fonts" menu options
xterm*locale: UTF-8

xterm*VT100.Translations: #override \
Shift <KeyPress> Insert: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl <Btn1Up>: exec-formatted("xdg-open '%t'", PRIMARY)</code>
x11  xterm  configuration  xrdb  xresourcess  howto  macos  osx  xquartz  solution  fuckina  essential  movein 
october 2019 by kme
windows - Run Python scripts in PowerShell directly - Super User
Edit the PATHEXT environment variable and add the .py extension.

Just add this line to your powershell profile:
<code class="language-powershell">$env:PATHEXT += ";.py"</code>

or you could just edit PATHEXT globally using the system settings (just start menu search for "Edit Environment variables for your account").


See https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles; the MS TechNet article linked in the approved answer is looooong dead.
python  powershell  windows  cli  commandline  pathext  path  environmentvariable  shellscripting  solution  essential  movein  configuration 
august 2019 by kme
Wine - Debian Wiki | https://wiki.debian.org/
wine 1.6.2-20 packages in Debian Jessie - To use the wine-wrapper scripts such as winecfg, wineboot or regedit you have to set them as an option to the command "wine". See Debian bug #784280. wine-development and later wine versions are are not affected. E.g. typing only "winecfg" will cause an error if no wineprefix exists yet, while "wine winecfg" works as expected.
wine  debian  winecfg  configuration  controlpanel  solution 
july 2019 by kme
How can I disable searching and domain guessing from the Firefox Address Bar, while keeping other features? - Super User | https://superuser.com/
The settings mentioned in the accepted answer will prevent, for example, 'localhost' from redirecting to 'localhost.com', but this still doesn't stop Firefox from trying to visit a non-existent web site if your search term has a period in it. So a search like "vcruntime140.dll" will still assume that ".dll" is a TLD.

However, I blindly discovered that putting a "?" at the beginning of the query is enough to turn of hostname detection, and pressing Ctrl+K will do that, and focus the Awesome Bar for you.

See also: https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#w_search and https://support.mozilla.org/en-US/kb/awesome-bar-search-firefox-bookmarks-history-tabs#w_how-can-i-control-what-results-the-address-bar-shows-me (section called "Changing results on the fly").
Go to about:config and set the following preferences to false:

browser.fixup.alternate.enabled

True (default): Try to fix up http://foo to http://(prefix)foo(suffix)
False: Do not second-guess the user
firefox  search  awesomebar  configsetting  annoyance  url  toosmart  solution  configuration  customization  movein  sortof  workaround 
april 2019 by kme
bash - Set and Shopt - Why Two? - Unix & Linux Stack Exchange | https://unix.stackexchange.com/
The difference is in the changed environment variable used by bash. Setting with the set command results in $SHELLOPTS. Setting with the shopt command results in $BASHOPTS.
bourne  bash  shell  configfile  configuration  history  butwhy  explained 
february 2019 by kme
add a docker configuration file · Issue #937 · moby/moby | https://github.com/
Answer: there apparently is no '/etc/docker/docker.conf'; on Debian-derived distros, there's an /etc/default/docker, where you can set the DOCKER_OPTS environment variable for the daemon, though.
docker  ubuntu  debian  centos  configfile  configuration  reference 
january 2019 by kme
how to display local shell-script/s in browser/firefox? - Unix & Linux Stack Exchange | https://unix.stackexchange.com/
The way data is processed in a browser depends on the MIME type declared by the server. If you want your browser to render it as html, which is most likely a terrible idea, you can change the Content-Type header the server returns so that it reflects the type of your data, which would be text/html; charset=utf-8, and the Content-Disposition header to suggest the browser what to do.

My solution was the following (in a '.htaccess'):
<code class="language-apache">
<Files *.sh>
SetEnvIf Request_URI "([^/]+\.sh)" FileName=$1

# ref: https://unix.stackexchange.com/a/364433
Header set Content-Type "text/plain"

# not needed, and doesn't work alone, since the browser is configured to
# download "application/sh" rather than display it inline; just telling the
# browser it's "text/plain" is enough to achieve the aim
#Header set Content-Disposition "inline; filename=\"%{FileName}e\""
</Files>
</code>
firefox  browser  mimetype  contentdisposition  webmaster  apache  configuration  solution 
november 2018 by kme
php - Removing X-Powered-By - Stack Overflow | https://stackoverflow.com/

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 | https://unix.stackexchange.com/
I simply changed the directives in security.conf and Apache started working as I wanted.
<code class="language-apache">
ServerTokens Prod
ServerSignature Off
</code>
webmaster  apache  httpd  config  configfile  security  configuration  solution  dammitbrain 
may 2018 by kme
database - what is a reasonable value for max_allowed_packet for Drupal 7 with moderate traffic? - Drupal Answers | https://drupal.stackexchange.com/
Regarding your situation, you should find out what is the biggest BLOB in your database, multiple that number by 11 and set your max_allowed_packet to that number. You should be able to set it for the server without a mysql restart (Personally, I would set it 256M because it would address other problems regarding migration and replication, which is beyond the scope of this forum). To set it to 256M for your database for all incoming connections, please run this:

<code class="language-sql">SET GLOBAL max_allowed_packet = 1024 * 1024 * 256;</code>

Afterwards, add this setting to my.cnf under the [mysqld] section:
<code class="language-ini">
[mysqld]
max_allowed_packet = 256M</code>
mysql  performance  errormessage  my.cnf  configuration  dba  maybesolution 
february 2018 by kme
Damko | How to configure ReText on Linux | Blog
<code class="language-css">
body
{
font-size:15px;
line-height:1.7;
overflow-x:hidden;

background-color: white;
/*
border-radius: 3px;
border: 3px solid #EEE;
box-shadow: inset 0 0 0 1px #CECECE;
*/
font-family: Helvetica, arial, freesans, clean, sans-serif;
width: 912px;
padding: 30px;
margin: 2em auto;

color:#333333;
}


.body-classic{
color:#444;
font-family:Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', "Hiragino Sans GB", "STXihei", "", serif;
font-size:16px;
line-height:1.5em;
background:#fefefe;
width: 45em;
margin: 10px auto;
padding: 1em;
outline: 1300px solid #FAFAFA;
}

body>:first-child
{
margin-top:0!important;
}

body>:last-child
{
margin-bottom:0!important;
}

blockquote,dl,ol,p,pre,table,ul {
border: 0;
margin: 15px 0;
padding: 0;
}

body a {
color: #4183c4;
text-decoration: none;
}

body a:hover {
text-decoration: underline;
}

body a.absent
{
color:#c00;
}

body a.anchor
{
display:block;
padding-left:30px;
margin-left:-30px;
cursor:pointer;
position:absolute;
top:0;
left:0;
bottom:0
}

/*h4,h5,h6{ font-weight: bold; }*/

.octicon{
font:normal normal 16px sans-serif;
width: 1em;
height: 1em;
line-height:1;
display:inline-block;
text-decoration:none;
-webkit-font-smoothing:antialiased
}

.octicon-link {
background: url("data:image/svg+xml;utf8,<?xml version='1.0' standalone='no'?> <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'> <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 832'> <metadata>Copyright (C) 2013 by GitHub</metadata> <!-- scale(0.01565557729941) --> <path transform='' d='M768 64h-192s-254 0-256 256c0 22 3 43 8 64h137c-11-19-18-41-18-64 0-128 128-128 128-128h192s128 0 128 128-128 128-128 128 0 64-64 128h64s256 0 256-256-256-256-256-256z m-72 192h-137c11 19 18 41 18 64 0 128-128 128-128 128h-192s-128 0-128-128 128-128 128-128-4-65 66-128h-66s-256 0-256 256 256 256 256 256h192s256 0 256-256c0-22-4-44-8-64z'/> </svg>");
background-size: contain;
background-repeat: no-repeat;
background-position: bottom;
}

.octicon-link:before{
content:'\a0';
}

body h1,body h2,body h3,body h4,body h5,body h6{
margin:1em 0 15px;
padding:0;
font-weight:bold;
line-height:1.7;
cursor:text;
position:relative
}

body h1 .octicon-link,body h2 .octicon-link,body h3 .octicon-link,body h4 .octicon-link,body h5 .octicon-link,body h6 .octicon-link{
display:none;
color:#000
}

body h1:hover a.anchor,body h2:hover a.anchor,body h3:hover a.anchor,body h4:hover a.anchor,body h5:hover a.anchor,body h6:hover a.anchor{
text-decoration:none;
line-height:1;
padding-left:0;
margin-left:-22px;
top:15%
}

body h1:hover a.anchor .octicon-link,body h2:hover a.anchor .octicon-link,body h3:hover a.anchor .octicon-link,body h4:hover a.anchor .octicon-link,body h5:hover a.anchor .octicon-link,body h6:hover a.anchor .octicon-link{
display:inline-block
}

body h1 tt,body h1 code,body h2 tt,body h2 code,body h3 tt,body h3 code,body h4 tt,body h4 code,body h5 tt,body h5 code,body h6 tt,body h6 code{
font-size:inherit
}

body h1{
font-size:2.5em;
border-bottom:1px solid #ddd
}

body h2{
font-size:2em;
border-bottom:1px solid #eee
}

body h3{
font-size:1.5em
}

body h4{
font-size:1.2em
}

body h5{
font-size:1em
}

body h6{
color:#777;
font-size:1em
}

body p,body blockquote,body ul,body ol,body dl,body table,body pre{
margin:15px 0
}

body h1 tt,body h1 code,body h2 tt,body h2 code,body h3 tt,body h3 code,body h4 tt,body h4 code,body h5 tt,body h5 code,body h6 tt,body h6 code
{
font-size:inherit;
}


body hr
{
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAYAAACtBE5DAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OENDRjNBN0E2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OENDRjNBN0I2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Q0NGM0E3ODY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Q0NGM0E3OTY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqqezsUAAAAfSURBVHjaYmRABcYwBiM2QSA4y4hNEKYDQxAEAAIMAHNGAzhkPOlYAAAAAElFTkSuQmCC);
background-repeat: repeat-x;
/*background:transparent url(http://overblown.net/files/markdown/dirty-shade.png) repeat-x 0 0;*/
background-color: transparent;
background-position: 0;
border:0 none;
color:#ccc;
height:4px;
margin:15px 0;
padding:0;
}

body li p.first
{
display:inline-block;
}

body ul,body ol
{
padding-left:30px;
}

body ul.no-list,body ol.no-list
{
list-style-type:none;
padding:0;
}

body ul ul,body ul ol,body ol ol,body ol ul
{
margin-bottom:0;
margin-top:0;
}

body dl
{
padding:0;
}

body dl dt
{
font-size:14px;
font-style:italic;
font-weight:700;
margin-top:15px;
padding:0;
}

body dl dd
{
margin-bottom:15px;
padding:0 15px;
}

body blockquote
{
border-left:4px solid #DDD;
color:#777;
padding:0 15px;
}

body blockquote>:first-child
{
margin-top:0;
}

body blockquote>:last-child
{
margin-bottom:0;
}

body table
{
display:block;
overflow:auto;
width:100%;
}

body table th
{
font-weight:700;
}

body table th,body table td
{
border:1px solid #ddd;
padding:6px 13px;
}

body table tr
{
background-color:#fff;
border-top:1px solid #ccc;
}

/*body table tr:nth-child(2n)
{
background-color:#f8f8f8;
}*/

body img
{
-moz-box-sizing:border-box;
box-sizing:border-box;
max-width:100%;
}

body span.frame
{
display:block;
overflow:hidden;
}

body span.frame>span
{
border:1px solid #ddd;
display:block;
float:left;
margin:13px 0 0;
overflow:hidden;
padding:7px;
width:auto;
}

body span.frame span img
{
display:block;
float:left;
}

body span.frame span span
{
clear:both;
color:#333;
display:block;
padding:5px 0 0;
}

body span.align-center
{
clear:both;
display:block;
overflow:hidden;
}

body span.align-center>span
{
display:block;
margin:13px auto 0;
overflow:hidden;
text-align:center;
}

body span.align-center span img
{
margin:0 auto;
text-align:center;
}

body span.align-right
{
clear:both;
display:block;
overflow:hidden;
}

body span.align-right>span
{
display:block;
margin:13px 0 0;
overflow:hidden;
text-align:right;
}

body span.align-right span img
{
margin:0;
text-align:right;
}

body span.float-left
{
display:block;
float:left;
margin-right:13px;
overflow:hidden;
}

body span.float-left span
{
margin:13px 0 0;
}

body span.float-right
{
display:block;
float:right;
margin-left:13px;
overflow:hidden;
}

body span.float-right>span
{
display:block;
margin:13px auto 0;
overflow:hidden;
text-align:right;
}

body code,body tt
{
background-color:#f8f8f8;
border:1px solid #ddd;
border-radius:3px;
margin:0 2px;
padding:0 5px;
}

body code
{
white-space:nowrap;
}


code,pre{
font-family:Consolas, "Liberation Mono", Courier, monospace;
font-size:12px
}

body pre>code
{
background:transparent;
border:none;
margin:0;
padding:0;
white-space:pre;
}

body .highlight pre,body pre
{
background-color:#f8f8f8;
border:1px solid #ddd;
font-size:13px;
line-height:19px;
overflow:auto;
padding:6px 10px;
border-radius:3px
}

body pre code,body pre tt
{
background-color:transparent;
border:none;
margin:0;
padding:0;
}

body .task-list{
list-style-type:none;
padding-left:10px
}

.task-list-item{
padding-left:20px
}

.task-list-item label{
font-weight:normal
}

.task-list-item.enabled label{
cursor:pointer
}

.task-list-item+.task-list-item{
margin-top:5px
}

.task-list-item-checkbox{
float:left;
margin-left:-20px;
margin-top:7px
}


.highlight{
background:#ffffff
}

.highlight .c{
color:#999988;
font-style:italic
}

.highlight .err{
color:#a61717;
background-color:#e3d2d2
}

.highlight .k{
font-weight:bold
}

.highlight .o{
font-weight:bold
}

.highlight .cm{
color:#999988;
font-style:italic
}

.highlight .cp{
color:#999999;
font-weight:bold
}

.highlight .c1{
color:#999988;
font-style:italic
}

.highlight .cs{
color:#999999;
font-weight:bold;
font-style:italic
}

.highlight .gd{
color:#000000;
background-color:#ffdddd
}

.highlight .gd .x{
color:#000000;
background-color:#ffaaaa
}

.highlight .ge{
font-style:italic
}

.highlight .gr{
color:#aa0000
}

.highlight .gh{
color:#999999
}

.highlight .gi{
color:#000000;
background-color:#ddffdd
}

.highlight .gi .x{
color:#000000;
background-color:#aaffaa
}

.highlight .go{
color:#888888
}

.highlight .gp{
color:#555555
}

.highlight .gs{
font-weight:bold
}

.highlight .gu{
color:#800080;
font-weight:bold
}

.highlight .gt{
color:#aa0000… [more]
markdown  retext  configuration  github  css  solution 
november 2017 by kme
ls = ls --color=tty [https://www.linuxquestions.org/]
Now the options seem to be '--color=auto', 'always', and 'never'.
I don't know if it does, but its run from a shell script calld /etc/profile.d/colorls.sh which I assume you can create if it doesn't exist. Here's the script:

# color-ls initialization
COLORS=/etc/DIR_COLORS
eval `dircolors --sh /etc/DIR_COLORS`
[ -f "$HOME/.dircolors" ] && eval `dircolors --sh $HOME/.dircolors` && COLORS=$HOME/.dircolors
[ -f "$HOME/.dir_colors" ] && eval `dircolors --sh $HOME/.dir_colors` && COLORS=$HOME/.dir_colors

if echo $SHELL |grep bash 2>&1 >/dev/null; then # aliases are bash only
if ! egrep -qi "^COLOR.*none" $COLORS &>/dev/null; then
alias ll='ls -l --color=tty'
alias l.='ls -d .[a-zA-Z]* --color=tty'
alias ls='ls --color=tty'
else
alias ll='ls -l'
alias l.='ls -d .[a-zA-Z]*'
fi
fi

Now if you put that in the file 'colorls.sh' in /etc/profile.d/ and put the dir_colors file in your home directory and name it .dir_colors
it should work. You can also put dir_colors in /etc/ so that there are default colors for everyone and the one in your home directory can be customized for just you.
linux  newbie  bashrc  colorization  configuration  maybesolution 
september 2017 by kme
TOML vs. JSON - Tom Limoncelli's EverythingSysadmin Blog
The other difference is around comments. One camp permits them and another camp doesn't. In operations often we need to be able to temporarily comment out a few lines, or include ad hoc messages. Operations people communicate by leaving breadcrumbs and todo items in files. Rather than commenting out some lines I could delete them and use version control to bring them back, but that is much more work. Also, often I write code in comments for the future. For example, as part of preparation for a recent upgrade, we added the future configuration lines to a file but commented them out. By including them, they could be proofread by coworkers.
toml  json  configuration  operations  sysadmin  breadcrumbs  documentation  butwhy  thisvsthat 
april 2017 by kme
[Configuring IPython]
Add 'c.TerminalInteractiveShell.confirm_exit = False' to $profile/ipython_config.py (courtesy https://stackoverflow.com/a/8020342)
python  ipython  configuration  dotfiles  solution 
january 2017 by kme
python - Add a prefix to all Flask routes - Stack Overflow
I like this solution the best, because it doesn't require writing WSGI middleware:
You can put your routes in a blueprint:
<code class="language-python">bp = Blueprint('burritos', __name__,
template_folder='templates')

@bp.route("/")
def index_page():
return "This is a website about burritos"

@bp.route("/about")
def about_page():
return "This is a website about burritos"
</code>

Then you register the blueprint with the application using a prefix:
<code class="language-python">app = Flask(__name__)
app.register_blueprint(bp, url_prefix='/abc/123')
</code>
python  flask  configuration  webdevel  wsgi  solution 
june 2016 by kme
http headers - How to force files to open in browser instead of download (pdf)? - Stack Overflow
Content-Type: application/pdf
Content-Disposition: inline; filename="filename.pdf"


Example for Apache (force download instead of inline):
<FilesMatch "\.(?i:pdf)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
apache  contentdisposition  pdf  webmaster  configuration  maybesolution 
february 2016 by kme
configuration - How do you reload your .vimrc file without restarting vim? - Super User
augroup myvimrc au! au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif augroup END
vim  tipsandtricks  automation  productivity  configfile  configuration  dammitbrain 
april 2013 by kme
Album Artwork - SqueezeboxWiki
Right, but is the list space or comma separated?
logitech  lms  squeezebox  coverart  configuration  maybesolution 
march 2013 by kme

Copy this bookmark:





to read