Skip to content

Instantly share code, notes, and snippets.

View c33s's full-sized avatar

Julian c33s

View GitHub Profile
@c33s
c33s / readme.md
Created January 2, 2021 11:13 — forked from dayvsonlima/readme.md
Install Adobe Photoshop CS6 on Wine (Ubuntu, Elementary OS, Linux Mint)

Step 1. Install the Wine Team Ubuntu PPA

First start by installing Wine btw it's a utility to install windows apps in linux :

open the Terminal and :

   sudo add-apt-repository ppa:ubuntu-wine/ppa     
   sudo apt-get update && sudo apt-get upgrade
   sudo apt-get install wine1.7 winetricks
@c33s
c33s / makeauthority.sh
Created November 4, 2020 19:11 — forked from richieforeman/makeauthority.sh
Issue Your Own Self-Signed S/MIME Certs with OpenSSL
# Run this once
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@c33s
c33s / JsonPlatformDbal.php
Last active July 14, 2020 00:05
DoctrineJsonFunctions DBAL simple trait
<?php
namespace Infrastructure\ORM\Repository\Traits;
use Doctrine\ORM\QueryBuilder;
use Doctrine\ORM\EntityManagerInterface;
use Exception;
/**
* Trait to be used in Doctrine repositories as DBAL (database abstraction layer) to access json fields database
@c33s
c33s / curl.md
Created April 18, 2020 16:30 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@c33s
c33s / CustomPropertyAccessor.php
Created September 26, 2019 23:29 — forked from boekkooi/CustomPropertyAccessor.php
Using a custom property path for symfony forms set / get path
<?php
use Symfony\Component\PropertyAccess\PropertyAccessor;
use Symfony\Component\PropertyAccess\PropertyPath;
/**
* A property accessor that allows you to rewrite a property path for setters and getters.
*/
class CustomPropertyAccessor extends PropertyAccessor
{
/**
// ==UserScript==
// @name Pipelines Cleaner
// @namespace https://your-domain/
// @version 0.1
// @description Gitlab CI/CD Pipelines Cleaner
// @author ecareyu
// @match *://your-domain/*/*/pipelines
// @require https://code.jquery.com/jquery-2.2.4.min.js
// @run-at document-end
// @grant none
@c33s
c33s / ff57_addons.md
Created April 22, 2019 22:02 — forked from IzzySoft/ff57_addons.md
Firefox 57+ Addon Compatibility / Replacements

Mozilla is doing it again: detering the addon developers who once made it „big“ (last time was when they forced them from XUL to their new „stable API“ for „long-time compatibility“ – which then proved to change as often as the XUL did before). So again, many of them are „jumping boat“, as they a) have no time to migrate to the new WebExtensions, b) WebExtensions don't offer the APIs required to perform the tasks needed by their addon, c) WebExtensions not even being ready yet (with just a couple of weeks left to the deadline, the API is still changing and far from being completed).

I won't start a rant on „if I wanted a browser that looks like Chrome (Aurora with FF29), behaves like Chrome (only signed addons via a central store), and now feels like Chrome, I'd use Chrome“. Of course that's true, and having to re-configure ~80% of the browser of course lets me consider changing to a different browser (certainly not Chrome, though). But first let's look where we stand (comments, additions and suggestions wel

@c33s
c33s / FinalClass.php
Created April 19, 2019 15:55 — forked from DragonBe/FinalClass.php
Testing final classes is tricky, but possible even though you cannot directly mock a "final" class
<?php
namespace FinalClass;
require_once __DIR__ . '/vendor/autoload.php';
use PHPUnit\Framework\TestCase;
final class Foo
{
protected $bar;
@c33s
c33s / README.md
Created February 28, 2019 17:56 — forked from magnetikonline/README.md
Bash string manipulation cheatsheet.

Bash string manipulation cheatsheet

Assignment
Assign value to variable if variable is not already set. Value will be returned.

Couple with : no-op if return value is to be discarded.
${variable="value"}
: ${variable="value"}
@c33s
c33s / FF57+RoomyBookmarksToolbar.md
Created December 11, 2018 20:49 — forked from sboettcher/FF57+RoomyBookmarksToolbar.md
Firefox Quantum Roomy Bookmarks Toolbar

In your Profile folder, add/edit the file chrome/userChrome.css with the following contents:

/* Recreates the basic functionality of the popular Roomy Bookmarks Toolbar add-on:
Hide bookmarks bar items label text, show on hover. */

.bookmark-item > .toolbarbutton-text {
  margin-top: -1px !important;
}
.bookmark-item {