pipeline {
agent { label "linux" }
stages {
stage('Hello') {
steps {
sh '''
aws --version
'''
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 a code of Google Apps Script for copying google drive folder content to other folder. | |
## Which situation the code resolve. | |
Google doesn't allow to move folder content to other folder which is managed by | |
other organization according to the policy of the GSUITE organization. | |
And, Google doesn't allow to change the content owner to the user in other | |
organizations. |
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 | |
# Script based on tutorial | |
# http://tlbdk.github.io/ubuntu/2018/10/22/fscrypt.html | |
if [[ "$EUID" -ne 0 ]]; then | |
echo "[!] Sorry this script need to be run as root." | |
exit 1 | |
fi |
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 | |
# (should not be run as shell script, the steps take so long) | |
# Restore/change AWS S3 files from Glacier storage class to STANDARD or STANDARD_IA and copy them in-place to get non-expiring ones | |
# There wasn't any instructions on how to do this easily so I decided to write them. | |
# In case you screw things up with lifecycle options etc. | |
# Procedure might take a while if you have many many files. | |
# There are three steps: |
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 | |
send_slack() { | |
if [ -z "${SLACK_TOKEN}" ];then | |
echo "function send_slack needs SLACK_TOKEN variable. Add a new integration to slack." | |
exit 1 | |
fi | |
if [ -z "${1}" ];then | |
echo "No text to send ? Are you kidding me ?" |
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 | |
if [ -z $acquia_dev_server ]; then | |
acquia_dev_server="dev" | |
fi | |
echo "***********************************************" | |
echo "Configuration" | |
echo "***********************************************" | |
echo "site = $site" |
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
# The MIT License (MIT) | |
# Copyright (c) 2014 Dave Clark | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
#!/usr/bin/env python | |
# | |
# Copyright 2012 Patrick Hetu <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |