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
Description: | |
https://www.reddit.com/r/borderlands3/comments/graqgv/i_fixed_my_crash_on_atlas_hq_via_command_line/ | |
Export and re-import using: | |
https://github.com/apocalyptech/bl3-cli-saveedit |
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 my Blockstack ID is secured with the address 1AvvoCDvKjrAbumDq8xCLUjBEH2jRRwyCe https://explorer.blockstack.org/address/1AvvoCDvKjrAbumDq8xCLUjBEH2jRRwyCe |
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 | |
// This script loads a list of urls from "curl-tester.txt" file to check for 301 redirects. | |
// The file format is two URL (source, 301 redirection destination) separated by space. | |
$file_list = 'curl-tester.txt'; | |
function get_urls_list_from_file( $file ) { | |
//$content = file_get_contents( $file ); | |
$out = array(); | |
$array = file( $file ); |
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 php | |
<?php | |
// ******************************************************************************** | |
// PHP shell script to ease the setup and execution of make.wordpres.sorg patches | |
// ******************************************************************************** | |
$INSTALL_FOLDER_NAME = 'wordpress-trunk'; | |
$PATCH_FILE_NAME = '_wpdo_downloaded.patch'; | |
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
function animate(fx) { | |
/**************************************************************************************************** | |
* Animation primer. | |
* The callback function must return false when the animation has to end, true oterwise. | |
* The function inject a time variable in milliseconds. | |
* | |
* https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame | |
* http://www.goat1000.com/2011/04/07/mozrequestanimationframe-and-webkitrequestanimationframe.html | |
*/ | |
var aloop; |
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
_updateBody: function(str) { | |
/**************************************************************************************************** | |
* This function creates a new document object to be used to parse a HTML string. | |
* | |
*/ | |
var domDocument = document.implementation.createHTMLDocument(); | |
var range = domDocument.createRange(); | |
range.selectNode(domDocument.body); | |
var documentFragment = range.createContextualFragment(str); |
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
function FindProxyForURL(url, host) { | |
if ( localHostOrDomainIs(host, "name.dev") ) { | |
return "PROXY 192.168.1.0:8888"; | |
} | |
return "DIRECT"; | |
} |
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
function loop_related_posts( $posts_per_page = 3, $category = null, $post_ID = 0 ) { | |
/**************************************************************************************************** | |
* Get the post related to the current-looping post's matching tags. | |
* Creates its own loop. | |
* | |
* USAGE: | |
* <?php while ( loop_related_posts( 3 ) ) : ?> | |
* your standard template code | |
* <?php endwhile; ?> | |
*/ |
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/php | |
<?php | |
function getAllDirectories( $base_dir, $list_hidden = false ) { | |
$out = array(); | |
foreach ( new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $base_dir ) ) as $path ) { | |
// ****** Skip non-relevant files | |
$filename = basename( $path ); |
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 node | |
/* | |
* General folder iterator plus filtering functions. | |
* Copyright (2015) Davide 'Folletto' Casali | |
* Released under GPLv2 License. | |
* | |
* USAGE: | |
* node move-flatten.js jpg ./from/ ./to/ | |
*/ |
NewerOlder