I hereby claim:
- I am nitz on github.
- I am cmd (https://keybase.io/cmd) on keybase.
- I have a public key whose fingerprint is 0219 59C4 ED7E AF7A DEA1 16FB DAB2 C9E0 E926 E40D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<script> | |
jQuery('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') || location.hostname == this.hostname) { | |
var target = jQuery(this.hash); | |
target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
var top_offset = '100'; | |
jQuery('html,body').animate({ | |
scrollTop: target.offset().top - top_offset |
/* Wild Magic Surge table generator by tobloef | |
Paste this into your browser's developer console (F12) | |
The script will create a rollable table named "Wild Magic Surge" with all 50 possibilities. | |
You can of course use this script to create other rollable tables, all you have to do is to replace the values in the rows variable. | |
You can also define a weight for each possibility by including a weight property like this: | |
{ name: "Some name here", weight: 2 } | |
Enjoy! |
/** | |
* Easing | |
* Animates the value of a float property between two target values using | |
* Robert Penner's easing equations for interpolation over a specified Duration. | |
* | |
* Original Author: Darren David [email protected] | |
* | |
* Ported to be easily used in Unity by Marco Mastropaolo | |
* | |
* Credit/Thanks: |
// JS array equivalents to C# LINQ methods - by Dan B. | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, | |
{ name: "Judy", age: 42 }, | |
{ name: "Tim", age: 8 } |
#!/bin/bash | |
IP=$(ip a s wlp3s0 | grep inet | awk '{print $2}' | head -n 1) | |
while true; do | |
ping -q -w 1 -c 1 `ip r | grep default | awk '{print $3}'` > /dev/null | |
# No internet connection | |
if (( $? != 0 )); then | |
sleep 20s | |
ping -q -w 1 -c 1 `ip r | grep default | awk '{print $3}'` > /dev/null | |
if (( $? != 0 )); then |
The motivation is: ssh to remote computer without port forwading, dynamic DNS and so on, the only thing needed is that the remote is connected to the Internet.
curl -L https://github.com/tmate-io/tmate/releases/download/2.4.0/tmate-2.4.0-static-linux-amd64.tar.xz|tar xJv
sudo mv tmate-2.4.0-static-linux-amd/tmate /usr/local/bin
! special | |
*.foreground: #e5e5c8 | |
*.background: #433f55 | |
*.cursorColor: #e5e5c8 | |
! black | |
*.color0: #282634 | |
*.color8: #716898 | |
! red |
#!/bin/sh | |
sleep .1; printf "[1J[r[48;2;146;134;162m⣽[0m[48;2;134;124;150m⣩[0m[48;2;137;123;148m⣺[0m[48;2;138;123;150m⣻[0m[48;2;137;123;148m⣾[0m[48;2;134;123;148m⣺[0m[48;2;134;124;150m⣻[0m[48;2;138;127;153m⣿[0m[48;2;143;131;161m⣿[0m[48;2;141;128;158m⡿[0m[48;2;141;126;155m⠟[0m[48;2;139;125;151m⠙[0m[48;2;123;110;131m⠀[0m[48;2;124;110;131m⢀[0m[48;2;122;109;128m⣀[0m[48;2;123;108;127m⡀[0m[48;2;121;107;123m⠀[0m[48;2;120;106;122m⢀[0m[48;2;121;107;125m⣠[0m[48;2;123;110;130m⣨[0m[48;2;123;110;131m⣨[0m[48;2;126;112;134m⣨[0m[48;2;134;120;146m⣼[0m[48;2;136;125;150m⣿[0m[48;2;142;131;156m⣿[0m[48;2;150;132;159m⣿[0m[48;2;141;128;154m⣿[0m[48;2;148;134;163m⣿[0m[48;2;150;138;170m⣿[0m[48;2;153;137;170m⣿[0m[48;2;147;131;159m⣿[0m[48;2;130;115;137m⣸[0m[48;2;124;110;131m⠀[0m[48;2;124;111;132m⠀[0m | |
[48;2;139;128;156m⣿[0m[48;2;140;128;159m⣿[0m[48;2;140;128;157m⣿[0m[48;2;150;137;170m⣿[0m[48;2;146;132;162m⣿[0m[48;2;145;131;161m⣿[0m[48;2;145;130;161m⣿[0m[4 |
// SPDX-FileCopyrightText: © 2021 Chris Marc Dailey (nitz) | |
// SPDX-License-Identifier: MIT | |
using System.IO; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
using UnityEngine; | |
public class EntitlementsPostprocessStep : MonoBehaviour |