This file contains hidden or 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
// ==UserScript== | |
// @name Trac: Add attachment links | |
// @namespace Cyclodex | |
// @version 0.7 | |
// @description Add buttons next to attachments for using them directly as link or image in the comment. Also the image buttton will take the latest added attachment. | |
// @author Cyclodex <[email protected]> | |
// @match https://*/*trac/ticket/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains hidden or 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 ($) { | |
Drupal.behaviors.TextFormatImprovments = { | |
attach: function (context, settings) { | |
// help removing the text-markup infos | |
// hide all guides and also the text formatter selection | |
$('.form-type-select', '.text-format-wrapper').hide(); | |
$('.filter-guidelines', '.text-format-wrapper').hide(); | |
// make the info link opening the guides | |
var FilterGuidesLink = $('.filter-help', '.text-format-wrapper'); | |
FilterGuidesLink.click(function(e){ |
This file contains hidden or 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 ($) { | |
Drupal.behaviors.PictureMapping = { | |
attach: function (context, settings) { | |
/** | |
* Update function which helps to change the states | |
* @param selectMapping | |
* @param imagePreview | |
*/ | |
function updateVisibility(selectMapping, imagePreview) { |
This file contains hidden or 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($, BUE) { | |
'use strict'; | |
// Don't setup the behavior on pages without BUEditor. | |
if (typeof BUE ==='undefined') { | |
return; | |
} | |
/** | |
* New behavior to handle BUEditors text areas added dynamically |
This file contains hidden or 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
/** | |
* Delete {system} records for long-lost modules. | |
*/ | |
function HOOK_update_7100() { | |
$modules = array( | |
'module1', | |
'module2', | |
'module3', | |
); | |
db_delete('system') |
This file contains hidden or 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
// ==UserScript== | |
// @name Galaxy/Gitlab: Wider editing window | |
// @namespace Cyclodex | |
// @version 0.1 | |
// @description Increase the editing text-area for big screens on (gitlab on galaxy) | |
// @author Cyclodex <[email protected]> | |
// @match https://galaxy.nothing.ch/*/issues/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains hidden or 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
Reset = "\x1b[0m" | |
Bright = "\x1b[1m" | |
Dim = "\x1b[2m" | |
Underscore = "\x1b[4m" | |
Blink = "\x1b[5m" | |
Reverse = "\x1b[7m" | |
Hidden = "\x1b[8m" | |
FgBlack = "\x1b[30m" | |
FgRed = "\x1b[31m" |
This file contains hidden or 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
$FILENAME = "clone-all-repos.ps1" | |
Write-Output "# extracted git clone commands" | Out-File -FilePath "$FILENAME" | |
Get-ChildItem . -Attributes Directory+Hidden -ErrorAction SilentlyContinue -Filter ".git" -Recurse | ForEach-Object { | |
$DIR_NAME = $_.Parent.Name | |
$DIR = Resolve-Path -Path $_.Parent.FullName -Relative | |
$GIT_DIR = "$DIR/.git" | |
Write-Output "" | Out-File -FilePath "$FILENAME" -Append | |
Write-Output "# $DIR_NAME" | Out-File -FilePath "$FILENAME" -Append | |