Skip to content

Instantly share code, notes, and snippets.

View TheAnarchoX's full-sized avatar

Jim de Vries TheAnarchoX

View GitHub Profile
@TheAnarchoX
TheAnarchoX / .zshrc-theanarchox
Created September 13, 2023 06:45
My current .zshrc file
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@TheAnarchoX
TheAnarchoX / generate-ddd-solution.sh
Last active March 16, 2023 09:08
generate DDD skeleton
#!/bin/bash
# Default values
solution_name="YourSolutionName"
target_directory="."
# Parse command-line options
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
using Newtonsoft.Json;
namespace PreprModel;
public class PreprAPIModel
{
public PreprModel Model { get; set; }
public string[] Locales { get; set; } = { "nl-NL" };
"01CN2,01CZ1,01CZ2,01DN1,01DN2,01DZ1,01DZ2,01EZ2,01FZ1,01FZ2,01GN1,01GN2,01GZ1,01GZ2,01HN1,01HN2,01HZ1,01HZ2,02AZ2,02BZ1,02BZ2,02CN1,02CN2,02CZ1,02CZ2,02DN1,02DN2,02DZ1,02DZ2,02EZ1,02EZ2,02FZ1,02FZ2,02GN1,02GN2,02GZ1,02GZ2,02HN1,02HN2,02HZ1,02HZ2,03AN1,03AN2,03AZ1,03AZ2,03BN1,03BN2,03BZ1,03BZ2,03CN1,03CN2,03CZ1,03CZ2,03DN1,03DN2,03DZ1,03DZ2,03EN1,03EN2,03EZ1,03EZ2,03FN1,03FN2,03FZ1,03FZ2,03GN1,03GN2,03GZ1,03GZ2,03HN1,03HN2,03HZ1,03HZ2,04DN2,04DZ1,04DZ2,04EZ1,04EZ2,04FN1,04FN2,04FZ1,04FZ2,04GN1,04GN2,04GZ1,04GZ2,04HN1,04HN2,04HZ1,04HZ2,05AN1,05AN2,05AZ1,05AZ2,05BN1,05BN2,05BZ1,05BZ2,05CN1,05CN2,05CZ1,05CZ2,05DN1,05DN2,05DZ1,05DZ2,05EN1,05EN2,05EZ1,05EZ2,05FN1,05FN2,05FZ1,05FZ2,05GN1,05GN2,05GZ1,05GZ2,05HN1,05HN2,05HZ1,05HZ2,06AN1,06AN2,06AZ1,06AZ2,06BN1,06BN2,06BZ1,06BZ2,06CN1,06CN2,06CZ1,06CZ2,06DN1,06DN2,06DZ1,06DZ2,06EN1,06EN2,06EZ1,06EZ2,06FN1,06FN2,06FZ1,06FZ2,06GN1,06GN2,06GZ1,06GZ2,06HN1,06HN2,06HZ1,06HZ2,07AN1,07AN2,07AZ1,07AZ2,07BN1,07BN2,07BZ1,07BZ2,07CN1,07CN2,07CZ1,07CZ2,07DN1,07DN2,07DZ1,07DZ2,07E
@TheAnarchoX
TheAnarchoX / index.html
Created September 20, 2019 12:43
YzKROrv
<div id="wrapper">
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
</div>
@TheAnarchoX
TheAnarchoX / art.php
Created June 7, 2019 13:49
How to make abstract art
abstract Art {
public $makesSense;
__construct() {
$this->makesSense = false;
}
}
<?php
use PDO;
Class SafePDO extends PDO {
private $server = "";
private $username = "";
private $pass = "";
private $database = "";
public static function exception_handler($exception) {
die('Uncaught exception: ' . $exception->getMessage());
}

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@TheAnarchoX
TheAnarchoX / README-Template.md
Created February 7, 2018 08:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

<?php
namespace App\Models;
/**
* Class Dummy
* @package App\Models
*/
class Dummy {