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 global:Mp4ToGif() | |
| { | |
| $input=$args[0] | |
| Write-Output "Input: $input" | |
| ffmpeg -i "$input" -vf "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif | |
| } |
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
| --- !https://twitter.com/PoliceNG/status/1204006677990821888?s=19 | |
| states: | |
| - state : abia | |
| phones: | |
| - '0803541540' | |
| - '08079210003' | |
| - '08079210004' | |
| - '08079210005' | |
| - state : adamawa | |
| phones: |
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
| DECLARE @sql nvarchar(MAX) | |
| SET @sql = N'' | |
| SELECT @sql = @sql + N'ALTER TABLE ' + QUOTENAME(KCU1.TABLE_SCHEMA) | |
| + N'.' + QUOTENAME(KCU1.TABLE_NAME) | |
| + N' DROP CONSTRAINT ' -- + QUOTENAME(rc.CONSTRAINT_SCHEMA) + N'.' -- not in MS-SQL | |
| + QUOTENAME(rc.CONSTRAINT_NAME) + N'; ' + CHAR(13) + CHAR(10) | |
| FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS AS RC | |
| INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS KCU1 |
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> |
