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
package main | |
import ( | |
"crypto/sha256" | |
"encoding/hex" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"path/filepath" |
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
// Params | |
plank_width = 48; | |
plank_height = 30; | |
plank_length_start = 1300; | |
plank_length_end = 30; | |
total_height = 1900; | |
base_height = 250; | |
base_length = 70; | |
rotation_angle = 60; |
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/zsh | |
# History https://github.com/WordPress/gutenberg/commits/master/packages/block-library/src/index.native.js | |
# gb-mobile Jetpack blocks: https://github.com/wordpress-mobile/gutenberg-mobile/blob/develop/src/jetpack-editor-setup.js | |
if [[ $# -eq 0 ]] ; then | |
BRANCH=master | |
else | |
BRANCH=$1 | |
fi |
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 | |
## PARAMETERS | |
AUTH_TOKEN= | |
PROJECT_NAME="Mobile Gutenberg" | |
COLUMN_NAME="Open Beta" | |
### DON'T CHANGE BELOW THIS LINE |
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 | |
# Before running this script, make sure you have sysbench installed: | |
# sudo apt-get install sysbench | |
# | |
# This script helps you check if your Raspberry pi is correctly powered. | |
# You can read more about Raspberry pi powering issues here: https://ownyourbits.com/2019/02/02/whats-wrong-with-the-raspberry-pi/ | |
# If you're pi is correctly powered (stable power supply and quality cable), after running the script, you should get something like: |
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/sh | |
checkIfPageChanged() { | |
URL="$1" | |
EMAIL_ADDRESS="$2" | |
CSS_SELECTOR="$3" | |
SILENT="$4" | |
tmpfile1=/tmp/$(echo $URL| sha1sum | cut -d" " -f1) | |
tmpfile2=$tmpfile1-1 | |
curl -L --silent "$URL" -A "Maxme/1.0 (Watching for changes; https://gist.github.com/maxme/c31ffbb3cb21f3baa6e9c9e61bbe0a72)" \ |
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/sh | |
# Require curl and html-xml-utils | |
TMPFILE1=$(mktemp) | |
TMPFILE2=$TMPFILE1-1 | |
function checkIfPageChanged() { | |
URL="$1" | |
EMAIL_ADDRESS="$2" |
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/sh | |
# Replace the following by your server configuration | |
UPLOAD_DIR_BASE=/var/www/example.com/uploads/ | |
URLBASE=https://example.com/uploads/ | |
SSH_SERVER=example.com | |
RAND=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 4 | head -n 1` | |
UPDIR=UPLOAD_DIR_BASE/$RAND |
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
package com.wellsql.generated; | |
import com.yarolegovich.wellsql.core.Mapper; | |
import java.lang.Object; | |
import java.lang.Override; | |
import java.lang.String; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.wordpress.android.stores.model.SiteModel; |
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
deps="$(find . -iname "build.gradle" | xargs grep 'compile ' | grep -v project | sed -E "s/.*'(.*)'.*/\1/" | sort | uniq)" | |
function printTemplate() { | |
cat << EOF | |
remote_file( | |
name = '$1-file', | |
out = '$2', | |
url = 'mvn:$4:$1:aar:$3', | |
sha1 = '0ec99fae8716984ec56489fb45d1ae752724bae7', | |
) |
NewerOlder