- Open trello card in browser
- Open browser devtools to console tab
- Paste
copy-card-info.js
contents into console - Run script
- Card information written to clipboard
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 | |
# Put all the domain names in domains.txt, one per line | |
# then run in the terminal: bash domains.sh | |
# this will print each domain in the terminal as it looks it up | |
# The result csv will contains the domain, IP & Nameservers in each column | |
# Give each column the relevant header titles | |
echo "Domain Name,IP Address,Nameserver,Nameserver,Nameserver,Nameserver,Nameserver" > domains.csv | |
while read domain |
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
var rows = document.querySelectorAll("table div table > tbody tr"); | |
var records = []; | |
for (var i = 0; i < rows.length; i++) { | |
var row = rows[i]; | |
var cells = row.querySelectorAll("td"); | |
cells.forEach((o, j) => { | |
// Put in the forward rows data | |
if (o.rowSpan > 1) { |
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 is an esphome configuration file for the OpenEnergyMonitor Thermostat | |
# The primary objectives of this configuration file are: | |
# 1) The temperature used as the sensor for the thermostat should be read from | |
# homeassistant, this lets you use an average or change the room the | |
# temperature is based on depending on the time of day etc. | |
# 2) If homeassisant goes offline the thermostat keeps working. | |
# To this end there is a sensor "average_temperature" which is recieved from hass | |
# and a second sensor "combined_temperature" which decides based on if a device | |
# is connected to the native API or not to use this sensor or the local sensor | |
# attached to the thermostat. |
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 | |
/** | |
* Implements hook_preprocess_HOOK() for block.html.twig. | |
*/ | |
function themename_preprocess_block(&$variables) { | |
// Get Title of Block's parent Node. | |
$request = \Drupal::request(); | |
$route_match = \Drupal::routeMatch(); |
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
# Force HTTPS | |
RewriteCond %{HTTPS} off | |
RewriteCond %{REQUEST_URI} !^/who-we-are/careers$ [NC] | |
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
# Ensure that Careers page is not forced over HTTPS | |
RewriteCond %{HTTPS} on | |
RewriteCond %{REQUEST_URI} ^/who-we-are/careers$ [NC] | |
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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
{ "comments": false, "minified": true, "plugins": [ "minify-mangle-names", "transform-merge-sibling-variables", "transform-minify-booleans", "transform-remove-console" ], "presets": [ [ "@babel/preset-env", { "targets": { "ie": "11" } } ] ] } |
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
{ | |
"exclude": [ | |
".git/**", | |
"misc/**", | |
"modules/**", | |
"profiles/**", | |
"themes/**", | |
"node_modules/**", | |
"bower_components/**" | |
], |
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 | |
use Drupal\Core\Url; | |
/** | |
* Implements hook_preprocess_HOOK() for block.html.twig. | |
*/ | |
function themename_preprocess_block(&$variables) { | |
// Get Title of Block's parent Node. | |
$request = \Drupal::request(); |
NewerOlder