This file contains 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 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 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 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 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 |
This file contains 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
// See https://github.com/bportaluri/WiFiEsp | |
// See blog post https://medium.com/@mykeels/connect-to-wifi-with-arduino-9eee4b02d904 | |
#include <WiFiEsp.h> | |
#ifndef HAVE_HWSERIAL1 | |
#include <SoftwareSerial.h> | |
SoftwareSerial wSerial(6, 7); | |
#endif | |
void setup() { |