Skip to content

Instantly share code, notes, and snippets.

View SharpEdgeMarshall's full-sized avatar
🚄
Focusing

Fabio Todaro SharpEdgeMarshall

🚄
Focusing
View GitHub Profile
@SharpEdgeMarshall
SharpEdgeMarshall / Mikrotik_DDNS_CF.script
Last active May 17, 2022 17:15
Mikrotik DDNS on Cloudflare
################# Config variables #################
:global WANInterface;
################# CloudFlare variables #################
:local CFtkn "<TOKEN>"; # Your CloudFlare API token comes here
:local CFrecordType "A";
:local CFzoneid "<DNS ZONE>"; # Your DNS zone ID comes here (a hash of 32 chars)
# An associative array of domain names to domainIds (32 chars each, you'll need to query CF to get them)
@SharpEdgeMarshall
SharpEdgeMarshall / README.md
Last active April 7, 2020 01:06
Zoom.us Vaccine

Zoom.us Vaccine

To run the script please follow these instructions:

  • Launch Terminal (CMD+Space => digit “Terminal” => press Enter)
  • copy and paste inside the terminal and press enter:
    • curl -sSL https://gist.githubusercontent.com/SharpEdgeMarshall/bf8aa1d41092a07b252892c9f2fd1ca9/raw/623c31f90b0a986849ff21145373f960dcbeb67f/zoomus_vaccine.sh -o zoomus_vaccine.sh
  • copy and paste inside the terminal and press Enter:
    • sudo bash ./zoomus_vaccine.sh
  • It will ask you for your mac account password
  • Insert 1 and press Enter

Keybase proof

I hereby claim:

  • I am sharpedgemarshall on github.
  • I am sharpedge (https://keybase.io/sharpedge) on keybase.
  • I have a public key ASBq779TFl_LnjVS_rXRqnQuE8qWrVFgr3zshpWt16YHmgo

To claim this, I am signing this object:

@SharpEdgeMarshall
SharpEdgeMarshall / mod_jk.rb
Last active July 27, 2017 14:15
mod_jk recipe
#
# Cookbook:: apache2
# Recipe:: jk
#
# Copyright:: 2013, Mike Babineau <michael.babineau@gmail.com>
# Copyright:: 2013, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@SharpEdgeMarshall
SharpEdgeMarshall / entrypoint.sh
Last active July 16, 2019 22:38
Monkeypatch yarn issue #761
#!/bin/bash
# Monkeypatching yarn issue #761 installing with --production flag without devDependencies
if [ -n $NODE_ENV ] && [ "$NODE_ENV" == "production" ] || [ "$NODE_ENV" == "staging" ]
then
# Backup package.json and remove devDep
cp package.json original_package.json
jq 'del(.devDependencies)' package.json > tmp.json && mv tmp.json package.json
#Install
var count = 0;
for ( var i = 0; i < 4; i++ ){
setTimeout(function(){
console.log(i==count++);
}, i * 200);
}