php <(curl -s https://gist.githubusercontent.com/jbuncle/8e479343cfeb785046e3c6fe1a73dcce/raw/nexus-upload.php) \
--repository=https://example.nexus.repo.com/repository/composer-repo/ \
--username=publisher-user \
--password=$NEXUS_PASS \
--version=$CI_COMMIT_TAG
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 | |
# | |
# Lenovo Legion 5 Patch Utility | |
# | |
# This script aims to simplify the application of various patches required for Lenovo Legion 5 15ARH05. | |
# For convenience you can run this script with `bash <(curl https://gist.githubusercontent.com/jbuncle/7dacde983b3c33b3b816b10e2fd2308a/raw/build-patched-kernel.sh)` | |
# | |
# References: | |
# - Original bug and related patch: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190 | |
# - Touchpad patch file: https://www.spinics.net/lists/linux-input/msg69458.html |
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/sh | |
set -e | |
set -o xtrace | |
# bash <(curl -s https://gist.githubusercontent.com/jbuncle/409c26f4915c499cc4f48b2fbe9d9c35/raw) | |
# Docker | |
sudo apt-get update | |
sudo apt-get install \ |
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 -e | |
# bash <(curl -s https://gist.githubusercontent.com/jbuncle/02ff866cd799acd5c17ac6ff66ac3afe/raw) | |
set -o xtrace | |
STARTDIR=$(pwd) | |
VERSION=11.3 |
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
$.fn.dragAndDrop = function ($to, callback) { | |
// 'this' is the element to be dragged. | |
var $from = $(this); | |
// Make draggable | |
$from.attr('draggable', 'true'); | |
// Enable dragging over '$to' | |
$to.on('dragover', function (event) { | |
if ($from.has(event.currentTarget)) { | |
// Allow drag onto '$to' elements |
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
/** | |
* Basic jQuery function for handling enter key being hit. | |
* | |
* @returns jQuery | |
*/ | |
$.fn.onEnterKeypress = function (callback) { | |
return $(this).keypress(function (evt) { | |
// Check for enter key | |
if (evt.which === 13) { | |
// Invoke callback |
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
/*! | |
* Adds class to bookmark/local links when the linked element is in view. | |
* | |
* Requires https://gist.github.com/jbuncle/6f6185e88be875b2585e736a422c3f15 for detecting when element is in view. | |
* | |
* Copyright 2016 James Buncle | |
* | |
* Released under the MIT license. | |
* http://jquery.org/license | |
* |
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
/*! | |
* Simple jQuery Plugin for using an animated scroll to on page anchors/links. | |
* | |
* Copyright 2016 James Buncle | |
* | |
* Released under the MIT license. | |
* http://jquery.org/license | |
* | |
*/ | |
(function ($) { |
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
/*! | |
* Simple jQuery Plugin which fades out an elements siblings on hover. | |
* | |
* Copyright 2016 James Buncle | |
* | |
* Released under the MIT license. | |
* http://jquery.org/license | |
* | |
*/ | |
(function ($) { |
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
(function ($) { | |
$.fn.hasAttr = function (name) { | |
var currentAttr = $(this).attr(name); | |
return currentAttr !== undefined && currentAttr !== false; | |
}; | |
})(jQuery); |
NewerOlder