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
# this is an enhanced version of https://docs.gitlab.com/ee/security/token_overview.html?tab=Rails+console+session#expired_tokensrb | |
expires_at_date = "2024-05-22" | |
PersonalAccessToken.project_access_token.where(expires_at: expires_at_date).find_each do |token| | |
token.user.members.each do |member| | |
type = member.is_a?(GroupMember) ? 'Group' : 'Project' | |
if type == "Project" | |
p = Project.find(member.source_id) |
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
#!/bin/sh | |
# Author: SeonghoonKim https://gist.github.com/SeonghoonKim/5385982 | |
# Author: Yoda-BZH https://gist.github.com/Yoda-BZH/05a7b33df1740882a8e39e0b38de682d | |
# Set up a default search path | |
PATH="/usr/bin:/bin" | |
CURL=`which curl` | |
if [ -z "$CURL" ] | |
then |
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
<VirtualHost 1.1.1.1:80> | |
ServerName example.com | |
RewriteEngine on | |
RewriteRule ^(.*) http://www.example.com [QSA,L,R=301] | |
CustomLog /home/www/example.com/log/apache/domaine-redirect.access.log combined env=!no_log | |
ErrorLog /home/www/example.com/log/apache/domaine-redirect.error.log | |
</VirtualHost> | |
<VirtualHost 1.1.1.1:80> | |
ServerAlias www.example.com |