This file contains hidden or 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
rm -rf /var/lib/cloud/instance && rm -rf /var/lib/cloud/instances/* && rm -rf /var/lib/cloud/sem/* | |
cloud-init init && cloud-init modules --mode config && cloud-init modules --mode final |
This file contains hidden or 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
import java.net.URI; | |
import java.net.URISyntaxException; | |
/** | |
* Unlicense granted <http://unlicense.org> | |
*/ | |
public final class Uris { | |
/** | |
* An unchecked version of the {@link URI#URI(String)} construction, i.e. a version that does not throw {@link |
This file contains hidden or 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
docker_test: | |
steps: | |
- git::https://github.com/samsao/bitrise-step-macos-install-docker.git@feature/auto-export: | |
title: Install Docker | |
- [email protected]: | |
title: Build image | |
inputs: | |
- content: |- | |
#!/bin/bash | |
set -ex |
This file contains hidden or 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
## | |
# From shell command line, with a MySQL database dump of the videos database, this | |
# shell command line will print all the duplicates duplicate string. | |
# | |
# Replace the `<...>` string by actual values for your system. Also, I use | |
# hard-coded IP in my database which result in the used Regex | |
# (`"'smb://.+?/.+?\.([a-zA-Z0-9]+)'"`). It's general enough but you might need | |
# to update it to your needs. | |
# | |
# OS: Mac OS X (10.11.6) |
This file contains hidden or 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 ( | |
"time" | |
"fmt" | |
"net/http" | |
"github.com/gorilla/mux" | |
) | |
func main() { |
This file contains hidden or 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
{ | |
"Bash script boilerplate": { | |
"prefix": "bshb", | |
"body": [ | |
"#!/usr/bin/env bash", | |
"", | |
"ROOT=\"$( cd \"$( dirname \"\\${BASH_SOURCE[0]\\}\" )\" && pwd )\"", | |
"", | |
"main() {", | |
" current_dir=\"`pwd`\"", |
This file contains hidden or 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
function buildPromise(tag, shouldError) { | |
if (shouldError) { | |
return new Promise((resolve, reject) => { | |
console.log(tag + " executor") | |
setTimeout(() => { console.log(tag + " rejecting!"); reject(tag + " failed on purpose") }, 250) | |
}) | |
} | |
return new Promise((resolve, reject) => { | |
console.log(tag + " executor") |
This file contains hidden or 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 query | |
// Goes in internal/query/print.go | |
import "fmt" | |
func PrintGraphQLDocument(document *Document) { | |
if document == nil { | |
fmt.Println("Document <nil>") | |
return |
This file contains hidden or 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
TsvHttpData-1.0 | |
https://near-protocol-public.s3-accelerate.amazonaws.com/backups/testnet/archive/data.tar 3026181378048 |
This file contains hidden or 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
{ | |
"ver": 1, | |
"hash": "UYr/kcNniZ6ONwDabkOUC7Ql1lg2p+ybozcmooMHZNA=", | |
"number": "11235113", | |
"size": "39368", | |
"header": { | |
"parentHash": "t4KICcevrY0uGdxPOvonOoU3jO9jit6Z+N4fSxkLCOM=", | |
"uncleHash": "HcxN6N7HXXqrhbVntszUGtMSRRuUinQT8KFC/UDUk0c=", | |
"coinbase": "6mdP3ecU/Zed4+3w9WqpcWuJjsg=", | |
"stateRoot": "xcqfE5cbaWTy6LEjfYGrsTG1uIynNb5d9CelSMJHrUA=", |