Skip to content

Instantly share code, notes, and snippets.

View cocapasteque's full-sized avatar

Antoine Thiry cocapasteque

  • Munich
View GitHub Profile
@cocapasteque
cocapasteque / ApplicationLogging.cs
Created December 7, 2019 23:20
.NET Core ApplicationLogging using Pastel and colored console
using System;
using System.Drawing;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Pastel;
namespace Utils
{
public static class ApplicationLogging
{
@cocapasteque
cocapasteque / gist:d0023d8c0a15e4c5b24e9254d575335a
Created November 26, 2019 10:41
Github reverse state to older commit
git checkout <COMMIT HASH>
git push origin HEAD:refs/heads/master -f
@cocapasteque
cocapasteque / docker-wordpress
Created November 20, 2019 22:04
Docker/Wordpress - cannot install plugin (Asking for FTP)
docker exec -it CONTAINER_ID /bin/bash
echo "define('FS_METHOD', 'direct');" >> wp-config.php
chown -R www-data wp-content
chmod -R 755 wp-content