Skip to content

Instantly share code, notes, and snippets.

(curl -s https://www.cloudflare.com/ips-v{4,6} | sed "s|^|allow |g" | sed "s|\$|;|g" && printf "\ndeny all;\n") > /etc/nginx/cloudflare-whitelist.conf
@wilfredjonathanjames
wilfredjonathanjames / gist:9cc091f103f178093d09dd328eb9e9e0
Last active October 3, 2023 23:04
[CRASHLOG/GODOT] Crash on file rename or move
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Godot [65405]
Path: /Applications/Godot 4.2-mono-rc6.app/Contents/MacOS/Godot
Identifier: org.godotengine.godot
Version: 4.2 (4.2)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Godot [79864]
Path: /Applications/Godot 4.2-mono-rc5.app/Contents/MacOS/Godot
Identifier: org.godotengine.godot
Version: 4.2 (4.2)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
@wilfredjonathanjames
wilfredjonathanjames / SmartWallet.sol
Last active May 30, 2024 13:43
SmartWallet with social recovery features
// SPDX-License-Identifier: MIT
/*
A smart wallet with the following features:
- 1 owner
- Uses a fallback function to receive funds
- Can send money to EOA and contract accounts
- Can give an allowance to addresses to spend
- Can take back remaining allowances
- 5 guardians defined at setup, any 3 can vote to replace the owner of the contract
" Rename2.vim - Rename a buffer within Vim and on disk
"
" Copyright July 2009 by Manni Heumann <vim at lxxi.org>
"
" based on Rename.vim
" Copyright June 2007 by Christian J. Robinson <infynity@onewest.net>
"
" Distributed under the terms of the Vim license. See ":help license".
"
" Usage:
" Vim color file
" Scriptname: vimbrant
" Author: Thayer Williams <thayer.cinderwick.ca>
" Description: A vibrant light-on-dark colorscheme with support
" for GUI, 256-color and 16-color terminals and optional transparency
"
" Based on the molokai theme by Tomas Restrepo, which in turn
" is based on the monokai theme for textmate by Wimer Hazenberg
" and its darker variant by Hamish Stuart Macpherson. A big
" thanks to these individuals for making what are some of the
@wilfredjonathanjames
wilfredjonathanjames / pageregistrations_README.md
Last active August 29, 2015 14:14
Plurilization and attendees list for events pages

Event Registration Module

By Wilfred Godfrey

Extending Cam Findlay's SilverStripe module for event registration. Adding an attendees list and plurilization support.

Write your perfect readme file here

## ~/.gitconfig
[user]
name = ##name##
email = ##email##
[color]
ui = true
branch = auto
diff = auto
status = auto
[format]