git push origin --delete the_remote_branchfor D in *; do [ -d "${D}" ] && cd ${D} && pwd && (git count-objects -v) && cd .. && echo _______________ ; done | <proxy enabled="true" reverseRewriteHostInResponseHeaders="false" /> |
| using System; | |
| using Microsoft.Extensions.Logging; | |
| public class TimedLogger<T>: ILogger<T> | |
| { | |
| private readonly ILogger _logger; | |
| public TimedLogger(ILogger logger) => _logger = logger; | |
| public TimedLogger(ILoggerFactory loggerFactory): this(new Logger<T>(loggerFactory)) { } |
| git reset --hard origin/{branch} |
| if ($request_uri = /) { | |
| set $test A; | |
| } | |
| if ($host ~* teambox.com) { | |
| set $test "${test}B"; | |
| } | |
| if ($http_cookie !~* "auth_token") { | |
| set $test "${test}C"; |
| ## Convertir FLV en MP4 | |
| ```bash | |
| $ ffmpeg -i video.flv -vcodec copy -strict -2 video.mp4 | |
| ``` | |
| Batch | |
| ```bash | |
| for i in *.flv; |
| ARG GRAFANA_VERSION="latest" | |
| FROM grafana/grafana:${GRAFANA_VERSION} | |
| USER root | |
| ARG GF_INSTALL_IMAGE_RENDERER_PLUGIN="false" | |
| ARG GF_GID="0" | |
| ENV GF_PATHS_PLUGINS="/var/lib/grafana-plugins" |
| # create the volume in advance | |
| ```bash | |
| docker volume create --driver local \ | |
| --opt type=none \ | |
| --opt device=/home/user/test \ | |
| --opt o=bind \ | |
| test_vol | |
| ```` | |
| # create on the fly with --mount |
| <!-- How to insert a date editor in a Razor view --> | |
| <div class="form-group"> | |
| @Html.LabelFor(model => model.Start, htmlAttributes: new { @class = "control-label col-md-2" }) | |
| <div class="col-md-10"> | |
| @Html.TextBoxFor(model => model.Start, new { @type="date", @class = "form-control datepicker", @Value = Model.Start.ToString("yyyy-MM-dd") } ) | |
| @Html.ValidationMessageFor(model => model.Start, "", new { @class = "text-danger" }) | |
| </div> | |
| </div> |