Skip to content

Instantly share code, notes, and snippets.

View andrewvmail's full-sized avatar

momoterraw andrewvmail

View GitHub Profile
print "hi momo"
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@andrewvmail
andrewvmail / new-app-checklist.md
Last active May 11, 2020 07:01
New App Checklist
/usr/bin/setxkbmap -option "ctrl:nocaps"
DND

Metamagic

At 3rd level, you gain the ability to twist your spells to suit your needs. You gain two of the following Metamagic options of your choice. You gain another one at 10th and 17th level.

You can use only one Metamagic option on a spell when you cast it, unless otherwise noted.

@andrewvmail
andrewvmail / swift.swift
Created April 11, 2020 08:03
Swift Playground
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
class CounterModule: NSObject {
var name = "momo"
@objc dynamic var count = Int(0)
func increment() -> Void{
@andrewvmail
andrewvmail / swift.swift
Last active April 11, 2020 08:03
Swift Playground
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
class CounterModule: NSObject {
var name = "momo"
@objc dynamic var count = Int(0)
func increment() -> Void{
@andrewvmail
andrewvmail / Catalina_ISO.sh
Last active April 5, 2020 00:23 — forked from Kutkovsky/Catalina_ISO.sh
The steps allowing to create macOS 10.15 Catalina VM on vSphere or ESXi
#!/bin/bash
# Added after beta and doing it at a catalina machine.
# App Store > macOS Catalina > GET
# Steps to create the macOS Catalina (10.15) VM:
# login to developer.apple.com or beta.apple.com to download a tester's profile for your OS. Install it.
# Go to System Preferences > Software Update and start the update process
# When the Catalina Installer (few MBytes) is started, it downloads the remain part of installation.
@andrewvmail
andrewvmail / index.js
Created March 29, 2020 00:39 — forked from NoTimeForHero/index.js
NodeJS script to remove 1000 DNS records added by Cloudflare when used * (wildcard) A record
// Now if you adding a domain with wildcard A record, Cloudflare uses strange scan, which added a 1000 trash domains (like 1-100, some english words like "ai", "air", "android").
// There's no way to bulk delete it, you can delete it only using their API.
// So I write a script that can help you with this problem.
// Discussions about same problem:
// https://community.cloudflare.com/t/delete-all-records-using-api/13410/2
// https://community.cloudflare.com/t/bulk-delete-dns-record/89540
const settings = {
email: 'your@email',
@andrewvmail
andrewvmail / openssl-build.sh
Created January 2, 2020 23:57 — forked from foozmeat/openssl-build.sh
A shell script to build openssl for iOS and Mac. It currently builds: Mac -> i386 & x86_64 // iOS -> armv7, arm64 // iOS Simulator -> i386 & x86_64.
#!/bin/bash
# This script builds the iOS and Mac openSSL libraries
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh