Skip to content

Instantly share code, notes, and snippets.

View sdekna's full-sized avatar

Saif-Alislam Dekna sdekna

View GitHub Profile
@saiful7
saiful7 / imapsync.md
Created January 11, 2023 20:44 — forked from nosmall/imapsync.md
Imapsync on Ubuntu 20.04 (lazy guide)

Imapsync on Ubuntu 20.04 (lazy guide)

sudo apt install -y libauthen-ntlm-perl libclass-load-perl libcrypt-ssleay-perl libdata-uniqid-perl libdigest-hmac-perl libdist-checkconflicts-perl libencode-imaputf7-perl libfile-copy-recursive-perl libfile-tail-perl libio-compress-perl libio-socket-inet6-perl libio-socket-ssl-perl libio-tee-perl libmail-imapclient-perl libmodule-scandeps-perl libnet-dbus-perl libnet-ssleay-perl libpar-packer-perl libreadonly-perl libregexp-common-perl libsys-meminfo-perl libterm-readkey-perl libtest-fatal-perl libtest-mock-guard-perl libtest-mockobject-perl libtest-pod-perl libtest-requires-perl libtest-simple-perl libunicode-string-perl liburi-perl libtest-nowarnings-perl libtest-deep-perl libtest-warn-perl make cpanminus && \
cd ~/ && \
git clone https://github.com/imapsync/imapsync.git && \
cd ~/imapsync/ && \
sudo ln -s ~/imapsync/imapsync /usr/bin/imapsync && \
imapsync --testslive

DNS Issue K3S + Rancher with OpenSuSE MicroOS

If you run into the issue, that DNS Resolving is not possible with K3S, Rancher, OpenSuSE MicroOS and SELinux enabled:

Please make sure, that the following Settings at K3S SystemD Unit are enabled:

  • /etc/systemd/system/k3s.service
ExecStart=/usr/local/bin/k3s \
@till
till / Dockerfile
Created February 7, 2022 17:46
A static website with sveltekit
FROM node:17.0-alpine as build
ADD app /app
WORKDIR /app
RUN npm ci --fetch-timeout=600000
RUN npm run build
FROM nginx:stable
@pkeech
pkeech / README.md
Created August 4, 2021 16:52
Deploy a NGINX Ingress Controller in a K3S Cluster

Deploy a NGINX Ingress Controller in a K3S Cluster

WARNING: There is a difference between "nginx-ingress" and "ingress-nginx". Long story short, one is maintained by the Kuberenetes Communinity, the other by NGINX/F5. For more information about the differences, read their documentation.

Note: This Gist works based on the assumption you deployed your K3S Cluster without Traefik.

Deploy Ingress Controller

Follow these six steps to deploy a simple NGINX Ingress Controller;

@Erutan409
Erutan409 / gitlab.rb
Last active April 10, 2025 13:47
Gitlab Nginx Reverse Proxy Configuration (with Let's Encrypt SSL)
# These are fragments of the configuration that will need to be updated
# ---
## GitLab URL
##! URL on which GitLab will be reachable.
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
external_url 'https://gitlab.your-fqdn.com'
#external_url 'http://gitlab.internal.lan'
@aranajhonny
aranajhonny / vpn.js
Created February 5, 2020 17:36
detect if are using vpn
function detectVPN() {
var browserTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone
return fetch(`https://ipapi.co/json`)
.then(function(response) { return response.json() })
.then(function (data) {
var ipTimezone = data.timezone
console.log(`browser timezone: ${browserTimezone}`, `ip timezone: ${ipTimezone}`)
return {
browser: browserTimezone,
@icebob
icebob / k3s_helm_install.sh
Last active May 8, 2025 08:27
K3S + Helm installing
# Install K3S
curl -sfL https://get.k3s.io | sh -
# Copy k3s config
mkdir $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
sudo chmod 644 $HOME/.kube/config
# Check K3S
kubectl get pods -n kube-system
@bradtraversy
bradtraversy / rethinkdb_cheat_sheet.MD
Last active December 1, 2024 11:36
RethinkDB Query Cheat Sheet

RethinkDB Cheat Sheet

Create database

r.dbCreate('mydb')

List databases

@kytulendu
kytulendu / install-opencl-amd.sh
Last active January 4, 2025 23:31
A shell script to install AMDGPU-PRO OpenCL driver.
#!/bin/bash
# This script will install AMDGPU-PRO OpenCL and Vulkan support.
#
# For Ubuntu and it's flavor, just install the package using this command
# in extracted driver directory instread.
#
# ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms
#
# For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread.