Skip to content

Instantly share code, notes, and snippets.

View ictus4u's full-sized avatar
🚀

Walter Gomez ictus4u

🚀
View GitHub Profile
@jackburns
jackburns / gmailAutoachive.js
Last active July 31, 2022 13:04
gmail autoarchive
function gmailAutoarchive() {
const rules = [
{label: "autoarchive", olderThanDays: 3},
{label: "autoarchive-delayed", olderThanDays: 7},
{label: "autoarchive-read", olderThanDays: 1, onlyRead: true},
{olderThanDays: 14, onlyRead: true}
]
const batch_size = 100;
# Go to ldap Folder and create a SSL Folder
cd /etc/ldap/
mkdir ssl
cd ssl/
# Create CA
openssl req \
-subj "/C=IN/ST=Maharashtra/L=Mumbai City/O=Information Security Systems/OU=IT Services/CN=OpenLDAP Test Server" \
@apr-1985
apr-1985 / 1-Jenkins-JCasC-Examples.md
Last active March 24, 2024 12:05
Jenkins Config As Code Examples

Jenkins JCasC Examples

Various examples of how to setup different components using JCasC

@dims
dims / README.md
Last active July 21, 2024 11:36
Kubernetes Resources
@idelem
idelem / titleUrlMarkdownClip.js
Last active July 17, 2024 20:48 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
@oofnikj
oofnikj / answerfile
Last active July 20, 2024 07:10
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@aroraayush
aroraayush / compile-nfs-ganesha-ubuntu-18.04_20.04.md
Last active July 22, 2022 02:47 — forked from cy-lee/compile-nfs-ganesha-ubuntu-16.04
Install / Compile and Build nfs-ganesha under Ubuntu-18.04/20.04

環境

$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
@anilahir
anilahir / fail2ban.md
Created December 27, 2019 12:31
Fail2ban setup example
Fail2ban setup:
sudo apt install fail2ban -y
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
systemctl start fail2ban (status|stop|restart)
systemctl enable fail2ban
fail2ban-client status
fail2ban-client status nginx-4xx

# Ban IP:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.