This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace EF.Core.Audit | |
{ | |
public abstract class Auditable | |
{ | |
public virtual DateTime CreatedAt { get; set; } | |
public virtual DateTime? UpdatedAt { get; set; } | |
public virtual DateTime? DeletedAt { get; set; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.IdentityModel.Tokens; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function changeMac() { | |
local mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') | |
sudo ifconfig en0 ether $mac | |
sudo ifconfig en0 down | |
sudo ifconfig en0 up | |
echo "Your new physical address is $mac" | |
} | |
# Unlimited WiFi ✨ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: | |
# bg <code> | |
function bg () { | |
$@ >/dev/null >&/dev/null | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# function run | |
run() { | |
number=$1 | |
shift | |
for i in `seq $number`; do | |
$@ | |
done | |
} | |
# usage: | |
# run <number> <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
# be sure to replace this | |
email = [email protected] | |
name = Ikechi Michael | |
[alias] | |
squash = !git reset $(git merge-base develop $(git rev-parse --abbrev-ref HEAD)) | |
current-branch = !git rev-parse --abbrev-ref HEAD | |
publish = !git push --set-upstream origin $(git current-branch) | |
ignore = !curl https://raw.githubusercontent.com/github/gitignore/master/Node.gitignore -O && mv Node.gitignore .gitignore | |
license-mit = !curl https://raw.githubusercontent.com/angular/angular.js/master/LICENSE -O |