Skip to content

Instantly share code, notes, and snippets.

View steinmb's full-sized avatar
💭
Pining for the fjords

Stein Magne Bjørklund steinmb

💭
Pining for the fjords
View GitHub Profile
<iframe src='https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1-mA7dDlsUzhdLfs_TIpnXA4DWU_i61F3PSCcd-osSxA&font=Default&lang=en&initial_zoom=2&height=650' width='100%' height='650' webkitallowfullscreen mozallowfullscreen allowfullscreen frameborder='0'></iframe>
@steinmb
steinmb / CleanUp.php
Last active May 16, 2020 10:10
Helper script used during Drupal 7 to 8/9 migration. Check if there are any broken data to clean before running migrate:import. Delete all terms, files, nodes and so on. Use with care.
<?php
final class CleanUp
{
private $entityType;
private $storage;
public function __construct(string $entityType)
{
$this->entityType = $entityType;
@steinmb
steinmb / # php - 2019-07-26_16-57-43.txt
Created July 27, 2019 12:00
php on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for php on macOS 10.13.6
Build date: 2019-07-26 16:57:43
diff --git a/composer.lock b/composer.lock
index af5a5bd..17ce756 100644
--- a/composer.lock
+++ b/composer.lock
@@ -1,7 +1,7 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
a927c11 Issue 179 add Event to filters
b958fdc issue 179 added filters and got them working on data export view.
4fdc252 Issue 179 data export view
e83cf44 issue 179 new filters
275410a Issue 178 Correct data export
2c7830f Issue 178 Cleaned up Critical Writing main page display
42be5c9 Revert "Issue 178 Cleaned up Critical Writing main page display"
d2edd40 Issue 178 Cleaned up Critical Writing main page display
1410f0e Issue 124 Uninstall getid3 module
a927c11 Issue 179 add Event to filters
<?php
function dhs_migrate_menu_alter(&$items) {
dpm($items);
}
function dhs_migrate_page_alter(&$page) {
menu_router_build();
}
@steinmb
steinmb / gist:c3473887d2566a86587f
Created May 20, 2015 14:10
Simple Drush wrapper script
#!/bin/bash
cd drupal || exit
drush "$@"
SELECT node.title AS node_title, node.nid AS nid, node.language AS node_language, users_node.name AS users_node_name, users_node.uid AS users_node_uid, 'user' AS field_data_field_bar_user_entity_type
FROM
{node} node
LEFT JOIN {users} users_node ON node.uid = users_node.uid;
Skrevet av Gahr Smith-Gahrsen, november 2008.
CO2, eller kullsyre, som vi ofte (og strengt tatt feilaktig) kaller det når vi snakker om CO2 i drikke, er gjerne en kilde til frustrasjon blant hjemmebryggere. Særlig er emnet stadig problematisk for nybegynnere. Hvem har ikke hørt linjer som ”ølet har stått på flasker i to uker, men er helt flatt…”, eller ”ølet stod i taket da jeg åpnet flasken…”? Prosessen ellers i bryggingen kan ha gått knirkefritt, men den siste prikken over i-en mangler. Flatt øl er stort sett lik kjedelig øl, og slike opplevelser kan være nok til å skremme mange vekk fra videre eksperimenter i ølbryggingens forunderlige verden. Det er typisk også blant annet slike opplevelser som har gitt mange uinnvidde oppfatningen av at hjemmebrygget øl per definisjon er dårlig. Slike problemer kan i begynnelsen virke uoverstigelige, men de er definitivt ikke uløselige. Den følgende artikkel tar sikte på å belyse disse temaene: Hvordan får vi kullyre i ølet? Hvilke metoder kan man bruke? Hvor mye kullsy
traceroute drupal-test-elb-1453117853.ap-northeast-1.elb.amazonaws.com
traceroute: Warning: drupal-test-elb-1453117853.ap-northeast-1.elb.amazonaws.com has multiple addresses; using 54.249.55.32
traceroute to drupal-test-elb-1453117853.ap-northeast-1.elb.amazonaws.com (54.249.55.32), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 3.888 ms 1.720 ms 5.144 ms
2 ti0004a400-gw.ti.telenor.net (88.91.29.1) 14.268 ms 7.110 ms 13.624 ms
3 ti0004c400-ae4-0.ti.telenor.net (146.172.102.17) 64.367 ms 69.807 ms 61.066 ms
4 ti0300c360-ae5-0.ti.telenor.net (146.172.100.2) 70.620 ms 79.493 ms 546.989 ms
5 ti3003c400-ae6-0.ti.telenor.net (146.172.99.245) 614.754 ms 112.969 ms 194.391 ms
6 ti9002b400-ae0-0.ti.telenor.net (146.172.105.14) 181.764 ms 152.452 ms 148.740 ms
7 te13-4.br02.ldn01.pccwbtn.net (195.66.236.167) 94.977 ms 281.015 ms 146.117 ms