Skip to content

Instantly share code, notes, and snippets.

@zyrmpg
zyrmpg / tmux-cheatsheet.markdown
Created September 1, 2019 18:05 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@zyrmpg
zyrmpg / .Docker_Notes.
Last active February 28, 2019 06:17
Docker notes
Docker_Notes
@zyrmpg
zyrmpg / MySQL Notes
Last active February 28, 2019 05:59
MySQL Notes
We couldn’t find that file to show.
@zyrmpg
zyrmpg / WifiConnDebian.md
Last active December 14, 2018 03:41
#Debian #wifi

/etc/networking/interfaces

auto wlan0
iface wlan0 inet dhcp
        wpa-ssid myssid

/etc/wpa_supplicant/wpa_supplicant.conf

@zyrmpg
zyrmpg / ddclient_with_namecheap.txt
Last active December 22, 2018 06:01
ddclient with namecheap
sudo apt install ddclient
sudo nano /etc/ddclient.conf
protocol=namecheap
use=web
server=dynamicdns.park-your-domain.com
login=DOMAIN.COM
password=FROM.NC.ADVDDNS.PWD
@,www
#!/bin/bash
set -x
PUBIP=$(curl ipecho.net/plain)|tr -d '\n'
APIKEY=50e4feea87921f91f0466f7b0353063e
ZONEID=a10dc42a1197b480d1e43abb6abad64f
AUTHEMAIL=zyrmpg@gmail.com
AUTHKEY=eafc9b4b510ee5dbf8d780223dd54b2138fd6
@zyrmpg
zyrmpg / cf-ddns.sh
Last active July 7, 2018 20:42 — forked from vhugo/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
@zyrmpg
zyrmpg / Git push deployment in 7 easy steps.md
Created June 4, 2018 05:39 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents