In your favorite text editor, open the following file :
- Windows
C:\Users\\AppData\Local\slack\app-\resources\app.asar.unpacked\src\static\ssb-interop.js
containers: | |
java: | |
- name: java_backup | |
ssh: java:2222 | |
passwordFile: /home/jlafleur/minecraft/java/.rcon-cli.yaml | |
worlds: | |
- /data/world | |
extras: | |
- /data/logs | |
- /data/mods |
/* | |
* Numbered Pagination | |
* http://www.wpexplorer.com/pagination-wordpress-theme/ | |
*/ | |
if ( !function_exists( 'wpex_pagination' ) ) { | |
function wpex_pagination($wpex_query) { | |
$prev_arrow = is_rtl() ? '→' : '←'; | |
$next_arrow = is_rtl() ? '←' : '→'; | |
/* |
// Inspired by : https://www.relevanssi.com/knowledge-base/natural-language-date-queries/?replytocom=264649#respond | |
add_filter('relevanssi_modify_wp_query', 'rlv_date_query'); | |
function rlv_date_query($query) | |
{ | |
if (substr($query->query_vars['s'], 0, 10) === "published:") { | |
// Remove "published:" from search string. | |
$query->query_vars['s'] = substr($query->query_vars['s'], 10); | |
// If The query string is a year... (We check that it's an integer between 1900 and current year) |
<?php | |
namespace App\Services; | |
use Exception; | |
use Illuminate\Support\Carbon; | |
use PhpOffice\PhpSpreadsheet\Calculation\Functions; | |
use PhpOffice\PhpSpreadsheet\IOFactory; | |
use PhpOffice\PhpSpreadsheet\Reader\IReader; | |
use PhpOffice\PhpSpreadsheet\Spreadsheet; |
/* | |
* Use case: | |
* Need to toggle the next row | |
* | |
* The first part of this script is for demo purpose. (In order to make the demo work, you need bootstrap.) | |
*/ | |
// Get all the btns | |
const informationToggleBtns = document.querySelectorAll('.toggle-info'); |
#!/bin/bash | |
# | |
# To download from command line : | |
# wget https://gist.githubusercontent.com/jonathanlaf/0240b8c401651af742ac826a69125440/raw/822eafea11056f55f5a239f8fa7062a43a05d600/fix_permission.sh | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# |
<?php | |
$a = array(); | |
for ($i = 0; $i < 100000; $i++) { | |
$a[] = $i; | |
} | |
$start = microtime(true); | |
foreach ($a as $k => $v) { | |
$a[$k] = $v + 1; | |
} |