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
/* | |
* Run this on the Blue Ocean activity page to add up all job durations visible on that page. | |
*/ | |
(function(){ | |
const durations = [...document.querySelectorAll('[data-runid] a:nth-of-type(5) span')].map(i => i.textContent); | |
console.log(durations); | |
const validDurations = durations.filter(duration => !duration.startsWith("<")); |
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
find . -type f -name "*Test.php" -exec sed -i '' s/@cover/c_over/g {} + | |
find . -type f -name "*Test.php" -exec sed -i '' s/@use/u_se/g {} + |
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
this.p2world.on('impact', function(evt){ | |
var playerBody, | |
currentPlayer = this.state.players[client.sessionId]; | |
console.log('Body positions: ', evt.bodyA.position, evt.bodyB.position); | |
if (evt.bodyA.hasOwnProperty('playerId')) { | |
playerBody = evt.bodyA; | |
} else if (evt.bodyB.hasOwnProperty('playerId')) { | |
playerBody = evt.bodyB; |
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 | |
# Patch apllying tool template | |
# v0.1.2 | |
# (c) Copyright 2013. Magento Inc. | |
# | |
# DO NOT CHANGE ANY LINE IN THIS FILE. | |
# 1. Check required system tools | |
_check_installed_tools() { | |
local missed="" |
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
<?php | |
interface RequestAuthorizer | |
{ | |
public function __construct(AccessToken $accessToken); | |
public function isAuthorized(RequestInterface $request): bool; | |
public function authorize(RequestInterface $request): void; | |
} | |
class AccessTokenMiddleware |
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
#!/usr/bin/env python | |
# Usage: | |
# s3-presign-url path/to/object | |
# | |
# 1) Install boto3: | |
# pip install boto3 | |
# 2) Configure aws: | |
# aws configure | |
# 3) Change the bucket name in this script (below) |
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 | |
ZT_NETWORK="NETWORK_ID" | |
# colors | |
RCol='\033[0m' # Text Reset | |
LGra='\033[0;37m'; | |
Red='\033[0;31m'; | |
Gre='\033[0;32m'; | |
Yel='\033[0;33m'; |
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
mysqldump --no-data -h localhost -u root -p schema | gzip > structure.sql.gz | |
mysqldump --no-create-info -h localhost -u root -p | |
--ignore-table=schema.adminnotification_inbox \ | |
--ignore-table=schema.aw_core_logger \ | |
--ignore-table=schema.dataflow_batch_export \ | |
--ignore-table=schema.dataflow_batch_import \ | |
--ignore-table=schema.log_customer \ | |
--ignore-table=schema.log_quote \ | |
--ignore-table=schema.log_summary \ | |
--ignore-table=schema.log_summary_type \ |
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
Verifying that +somoza is my blockchain ID. https://onename.com/somoza |
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
<?php | |
namespace Migrations; | |
use Pimcore\Migrations\Migration\AbstractMigration; | |
use Pimcore\Model\Staticroute; | |
/** | |
* Migration v20151009133517_AddStaticRoute | |
* @author Gabriel Somoza <[email protected]> | |
*/ |
NewerOlder