Skip to content

Instantly share code, notes, and snippets.

View rnadjqaim's full-sized avatar
💜
Focus

Renad Jqaim rnadjqaim

💜
Focus
View GitHub Profile

Pipeline version 1

pipeline {
  agent { label "linux" }
  stages {
    stage('Hello') {
      steps {
        sh '''
          aws --version
        '''
@KenjiOhtsuka
KenjiOhtsuka / copy_files.gs
Last active February 10, 2025 15:33
Google Apps Script to Copy Folder Recursively
/**
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.
@x42en
x42en / fsencrypt.sh
Created January 3, 2020 16:33
Bash script used to setup home directory encryption on Ubuntu 18.04 LTS using fscrypt
#!/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
@sirtawast
sirtawast / restore-and-copy-files-from-s3-glacier.sh
Last active May 15, 2024 09:48
AWS: Restore and change S3 storage class
#!/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:
@gdoumergue
gdoumergue / send_slack.sh
Created May 28, 2015 14:44
shell script to send slack notifications
#!/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 ?"
@jtrobman
jtrobman / build_acquia.sh
Created May 20, 2014 19:43
CI with Jenkins, Github and Acquia
#!/bin/bash
if [ -z $acquia_dev_server ]; then
acquia_dev_server="dev"
fi
echo "***********************************************"
echo "Configuration"
echo "***********************************************"
echo "site = $site"
@clarkdave
clarkdave / logstash-sentry.rb
Last active May 15, 2023 11:34
(Logstash) Sentry output plugin
# 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:
@avoine
avoine / gist:2912777
Created June 11, 2012 21:19
Bridge to send rsyslog logs to sentry (http://www.getsentry.com)
#!/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,