Skip to content

Instantly share code, notes, and snippets.

@shad0wuser
shad0wuser / win_usb_stick.md
Last active February 14, 2018 17:39
Windows bootable USB Stick with UEFI support using command prompt

Windows bootable USB Stick with UEFI support using command prompt

Make a bootable USB flash drive using DISKPART

Run cmd.exe as an administrator then run diskpart with the following commands:

Shows all mounted disks. Find your USB flash

list disk

Selects the disk that future commands will use. Replace n with the disk # for your USB flash drive. NOTE: Be careful that you don’t select your hard disk! The next command will wipe the selected drive clean.

@shad0wuser
shad0wuser / github_quick_start.md
Last active February 2, 2018 21:12 — forked from arn-ob/gitUpload.txt
Git Repository Upload Command

Add the files in your new local repository. This stages them for the first commit.

Change the current working directory to your local project. Initialize the local directory as a Git repository.

git init

Setting your commit email address and username in Git

@shad0wuser
shad0wuser / github_quick_start.md
Last active January 2, 2018 19:54
First repository upload

…or create a new repository on the command line

echo "# load" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [copied web address]
git push -u origin master

Настройка сервера OpenVPN в Debian

Шаг 1. Установка OpenVPN

sudo apt-get update
sudo apt-get install openvpn easy-rsa

Шаг 2. Создание директории центра сертификации

OpenVPN это виртуальная частная сеть, использующая TLS/SSL. Это означает, что OpenVPN использует сертификаты для шифрования трафика между сервером и клиентами. Для выпуска доверенных сертификатов (trusted certificates) нам потребуется создать наш собственный центр сертификации.

@shad0wuser
shad0wuser / bash-launch-script.md
Last active January 2, 2018 22:36
Bash script to start, stop and restart any processes.

Bash Script to Start, Stop and Restart the process.

Script for start, stop and restart the processe. And also it shows the status.

#!/bin/bash  

server_root=~/path/to/my/working-directory
log_file=$server_root/path/to/log/log.file
@shad0wuser
shad0wuser / ssl-nginx.md
Created November 6, 2017 20:44 — forked from umidjons/ssl-nginx.md
Get Free SSL Certificate & Configure Nginx to use it

Get Free SSL Certificate & Configure Nginx to use it

  • Register on GoGetSSL.
  • Choose SSL Certificates -> Domain Validation SSL from top menu.
  • On products table click Details button on row Comodo - Free SSL.
  • On the opening page click Create New Order button.
  • In the Product Configuration section choose: Product Type = SSL Certificates and Select Item = Comodo Trial SSL, then click Complete Order button.
  • On the opening page click Incomplete Orders link.
  • In the List of all your SSL certificates table click Generate button.
  • With Online CSR Generator generate CSR.

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@shad0wuser
shad0wuser / nohup-output-to-file.sh
Created November 6, 2017 20:41 — forked from umidjons/nohup-output-to-file.sh
Redirect nohup output to a file
# redirect output and errors into file output.log:
nohup some_command > output.log 2>&1&
# abbreviated syntax for bash version >= ver.4:
nohup some_command &> output.log