Skip to content

Instantly share code, notes, and snippets.

Avatar

Rouben rouben

  • University of Toronto
  • Toronto
View GitHub Profile
@Zibri
Zibri / KMS_office.cmd
Created January 18, 2020 15:59 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
View KMS_office.cmd
@echo off
title Microsoft Office 2019 versions are supported!&cls&echo
============================================================================&echo
#Project: Activating Microsoft software products for FREE without software&echo
============================================================================&echo.&echo
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo
@rohan-molloy
rohan-molloy / ssh-random-art-for-tls
Created February 5, 2019 08:49
Get SSH Random Art (visualization of key fingerprint) of a remote TLS server
View ssh-random-art-for-tls
random_art_from_tls(){
echo \
| openssl s_client -connect $1:443 -servername $1 2>/dev/null \
| openssl x509 -noout -pubkey \
| ssh-keygen -vi -m PKCS8 -f /dev/stdin \
| ssh-keygen -vlf /dev/stdin
}
@Sizzl
Sizzl / cloudflaredns.sh
Last active April 25, 2018 13:24 — forked from tehmantra/cloudflaredns.sh
CloudFlare dynamic dns updater module for Synology
View cloudflaredns.sh
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me) [v0.2]
# Chris Moore [v0.3]
#
# Version:
# 0.3
@vt0r
vt0r / GnuPG-2.2.md
Last active September 1, 2023 23:28 — forked from mattrude/GnuPG-2.1.md
Build/install instructions for GnuPG 2.2.x on Ubuntu and similar distros (formerly for 2.1.x)
View GnuPG-2.2.md

GnuPG 2.2.x Build Instructions

Below are my build instructions for GnuPG 2.2.10, released on August 30th, 2018. These instructions are built for a headless Ubuntu 18.04 LTS server (and have also been tested on Ubuntu 14.04/16.04).

If you prefer, you may use the below install script to install GnuPG 2.2.x by running the following commands:

curl -OL "https://gist.githubusercontent.com/vt0r/a2f8c0bcb1400131ff51/raw/e0d2011d7b89bfe5b83c3f29f21949fb21354dd9/install-gnupg22.sh" && sudo -H bash ./install-gnupg22.sh

Install the needed dependencies

@tehmantra
tehmantra / cloudflaredns.sh
Last active June 1, 2022 20:18 — forked from briped/gratisdns.sh
CloudFlare dynamic dns updater module for Synology
View cloudflaredns.sh
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#
@nuclearsandwich
nuclearsandwich / mysqldump_pre_commit_hook.bash
Created April 6, 2011 00:30
A pre-commit hook for git which dumps and adds a mysql database to the repository just before commit.
View mysqldump_pre_commit_hook.bash
#!/bin/bash
# Pre-commit hook to make a mysql dump right before committing and add it to the commit.
#
## Change the following values to suit your local setup.
# The name of a database user with read access to the database.
DBUSER=root
# The password associated with the above user. Leave commented if none.
#DBPASS=seekrit
# The database associated with this repository.
DBNAME=dplay