Skip to content

Instantly share code, notes, and snippets.

❄️
тщета и зряшность

hshhhhh hshhhhh

❄️
тщета и зряшность
Block or report user

Report or block hshhhhh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hshhhhh
hshhhhh / letsencrypt_2017.md
Created Jun 7, 2017 — forked from cecilemuller/letsencrypt_2019.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)
View letsencrypt_2017.md

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.

View git-create-branch.sh
#!/bin/bash
RED='\033[7;31m'
GREEN='\033[7;32m'
YELLOW='\033[7;33m'
NC='\033[0m' # No Color
# Put it to bin :)
# Usage: git-create-branch.sh #4487522 Create script for branch' -creating
# Result: git checkout -b 4487522_Create_script_for_branch_creating
@hshhhhh
hshhhhh / pl
Last active Nov 16, 2015
mplayer as music player
View pl
#!/bin/bash
# from: http://gentoovps.net/mplayer-play-directories-recursively/
# @todo:
# - different music formant
# - fix escape trouble
# - add interface for media keys
# - take over the world and 1st place in ubuntu store!
# @fixme: espcape
# PATH_TO_SEARCH=${1:-\.}
@hshhhhh
hshhhhh / get_info.sh
Last active Dec 14, 2015
My bash script for getting system info (using it in awesome status bar with | as delimeter)
View get_info.sh
#!/bin/sh
result=""
cpu_temp() {
result="$result | $(acpi -t | sed 's/.*, //g; s/\..*//g;')°"
}
battery() {
acpi_output=$(acpi -b)
charge_status=""
You can’t perform that action at this time.