Skip to content

Instantly share code, notes, and snippets.

@ysc3839
ysc3839 / README.md
Last active November 21, 2024 15:12
Systemd timer for lego

Systemd timer for lego

Place lego.service and lego.service in /etc/systemd/system. Place config in /var/lib/lego and nginx-example.com.sh in /var/lib/lego/scripts. You should modify config and nginx-example.com.sh. Finally execute sudo systemctl enable lego.timer.

Lego's files are stored in /var/lib/lego. You need to create this directory and use lego ... run to create acme account.

I'm using DNS challenge and didn't test HTTP challenge. Please tell me if it works.

@dekked
dekked / Nexus 6p - Bootloop fix on several ROMs.md
Last active January 5, 2024 13:40
Instructions to revive my own Nexus 6p from death, using different ROMs.

Nexus 6p - Bootloop fix instructions

Instructions to revive my own Nexus 6p from death, using different ROMs.

Pre requistes: unlocked bootloader.

Stock 7.1.2

Using instructions from this XDA thread.

@aijanai
aijanai / enableWebcam.sh
Last active January 12, 2022 04:51
Enables Macbook Pro Retina's FaceTimeHD on Ubuntu/Debian (thanks to patjak)
#!/bin/bash
DRIVER_DIR="bcwc_pcie"
if [ ! -d "$DRIVER_DIR" ]; then
echo "Dir not present. Well, let's bootstrap then"
echo "Cloning code"
git clone https://github.com/patjak/bcwc_pcie.git
fi
@rimusz
rimusz / gitlab-runner.yaml
Created May 10, 2017 15:40 — forked from lsjostro/gitlab-runner.yaml
gitlab-runner k8s
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: gitlab-ci
namespace: gitlab
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
@andrewstuart
andrewstuart / .gitlab-ci.yml
Last active June 12, 2023 17:44
One Deployment Per branch, plus CI CD, gitlab and helm setup
image: docker.mydomain.com/build/kube-go-make
variables:
DOCKER_TAG: docker.mydomain.com/myapp/home:$CI_COMMIT_REF_SLUG
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay
PROD_RSYNC_HOST: myprodserver.com
DOMAIN: mydomain.com
CHART_DIR: chart
@nitisht
nitisht / minio-distributed-statefulset.yaml
Last active November 23, 2021 14:44
Create a distributed Minio deployment based on StatefulSets
apiVersion: v1
kind: Service
metadata:
name: minio
labels:
app: minio
spec:
clusterIP: None
ports:
- port: 9000
@oko
oko / etc-httpd-conf.d-pulp.conf
Created July 3, 2016 16:38
Pulp LDAP setup with FreeIPA
<Files webservices.wsgi>
# pass everything that isn't a Basic auth request through to Pulp
SetEnvIfNoCase ^Authorization$ "Basic.*" USE_APACHE_AUTH=1
Order allow,deny
Allow from env=!USE_APACHE_AUTH
Satisfy Any
AuthType Basic
AuthBasicProvider ldap
AuthName "Pulp Login"
@Brainiarc7
Brainiarc7 / My setup for Linux Files for the AMD - based SKUs at home.md
Last active August 6, 2022 07:29
How I configured Ubuntu 16.04LTS for use with the AMDGPU driver (With notes)

Information

  • Xubuntu 16.04

Repositories

@leedm777
leedm777 / AnsibleVaultDiff.md
Last active January 2, 2024 08:50
Ansible vault diff in Git

Normally, when you diff an [Ansible vault][], all you see is gibberish.

$ git diff -- group_vars/all/vault.yml
diff --git a/group_vars/all/vault.yml b/group_vars/all/vault.yml
index 245ccf4..90bf9ee 100644
--- a/group_vars/all/vault.yml
+++ b/group_vars/all/vault.yml
@@ -1,111 +1,111 @@
 $ANSIBLE_VAULT;1.1;AES256
@gblmarquez
gblmarquez / .tmux.conf
Created August 6, 2015 14:28
.tmux.conf with fish as default shell
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# support logging out and back in
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# pbcopy support
set-option -g default-command "reattach-to-user-namespace -l bash"
# vi mode