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
diff --git a/src/Plugin/migrate/source/d7/ViewsMigration.php b/src/Plugin/migrate/source/d7/ViewsMigration.php | |
index 7c8f3e8..e78a407 100644 | |
--- a/src/Plugin/migrate/source/d7/ViewsMigration.php | |
+++ b/src/Plugin/migrate/source/d7/ViewsMigration.php | |
@@ -7,6 +7,7 @@ | |
use Drupal\migrate\Plugin\MigrateIdMapInterface; | |
use Drupal\migrate\Plugin\MigrationInterface; | |
use Drupal\views_migration\Plugin\migrate\source\BaseViewsMigration; | |
+use Drush\Drush; |
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 | |
# Taken with thanks from https://hansenji.medium.com/linux-triggers-for-in-meeting-indicator-ea06cdbe41bd, | |
# with minor modifications for sending notification to HA. | |
# Camera status can be monitored with incron & | |
# `/dev/video* IN_OPEN,IN_CLOSE,IN_CLOSE_WRITE,IN_CLOSE_NOWRITE *PATH*/checkInMeeting.sh` | |
# Before running this, remember to insert HA address and auth key here, | |
# and update the entity ID and RGB colour in the cURL requests further down. |
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
git for-each-ref --format=' %(authorname) %09 %(committerdate:short) %09 %(refname)' --sort=committerdate --sort=authorname --merged production | grep "refs/remotes/origin/" | sed 's/refs\/remotes\/origin\///g' | grep Mike | grep mikeybeck | grep 2020-08 | awk '{ print $4 }' | while read x; do echo "deleting $x"; git push origin --delete $x; done |
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
git bisect start | |
git bisect bad # Current commit is broken | |
git bisect good HEAD~100 # Commit at HEAD~100 is good | |
# Then input `git bisect good` or `git bisect bad` for each provided commit, until you find the commit which introduced the bug. |
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
git log --all -p --reverse --source -S 'SEARCH_STRING' |
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
DB::select('SELECT * FROM table WHERE column = 'value' ORDER BY id LIMIT limit') |
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
// $distance = how many lines back through history to search | |
// $searchString = string to find | |
hist -T $distance -G $searchString |
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
hs.urlevent.bind("someAlert", function(eventName, params) | |
hs.alert.show("Hey there alert") | |
end) | |
-- After having this line in init.lua | |
-- you can then call it from the shell like so | |
open -g hammerspoon://someAlert | |
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
hs.hotkey.bind("ctrl", "return", function() | |
hs.notify.new({title="Hammerspoon", informativeText="Hello World"}):send() | |
end) |
NewerOlder