Skip to content

Instantly share code, notes, and snippets.

@katiakweb
katiakweb / office-activation.md
Created February 21, 2024 17:55 — forked from devomman/office-activation.md
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
-----------------------------------------------------------------------------------------------------------------------------
PROCEDIMENTOS PARA INSTALAÇÃO ePass2003
Autor: Alex Ishida <alexishida@gmail.com>
Data: 16/08/2021
Versão: 1.0.0.0
-----------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------
# Instalando os Drivers
@katiakweb
katiakweb / digitalocean.md
Created September 14, 2021 03:01 — forked from cole007/digitalocean.md
Digital Ocean internal migration - moving files between droplets over SSH/SCP

If you need to move a lot of files between DO server you can move these through SCP over the internal private Digital Ocean network.

NB both droplets need to be within the same region

To do this you need:

  1. enable private network for each droplet (if not done at creation, note the droplet needs to be off for this to be enabled once live)
  2. ensure that eth1 is enabled for both droplets if not already - see https://www.digitalocean.com/community/tutorials/how-to-enable-digitalocean-private-networking-on-existing-droplets
  3. scp files from the source server to the destination server are sent like:
@katiakweb
katiakweb / install-pdfedit.sh
Created March 5, 2021 11:30 — forked from bmaupin/pdfedit-docker.md
Install PDFEdit on Ubuntu
sudo -v
# Setup
mkdir tmp
cd tmp
# Install PDFEdit and dependencies
wget http://mirrors.kernel.org/ubuntu/pool/main/l/lcms/liblcms1_1.19.dfsg-1ubuntu3_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/libm/libmng/libmng1_1.0.10-3_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
@katiakweb
katiakweb / postgres-adminer.yml
Created December 13, 2020 14:36 — forked from jinnabaalu/postgres-adminer.yml
Postgres with adminer UI
version: '3.1'
services:
postgres:
image: postgres
container_name: postgres
restart: always
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
@katiakweb
katiakweb / ubuntu-20.04-lts-perfect-setup.sh
Created October 21, 2020 20:44 — forked from eRQee/ubuntu-20.04-lts-perfect-setup.sh
Ubuntu 20.04 LTS Apps Server Installation Wizard
clear
##############
# Am I root? #
##############
if [ "x$(id -u)" != 'x0' ]; then
echo 'Error: this script can only be executed by root.'
echo 'Try re-run the script after switched to root account by type "sudo su"'
exit 1
fi
@katiakweb
katiakweb / docker-compose.yml
Created July 22, 2020 18:51 — forked from byk0t/docker-compose.yml
Docker compose for odoo:12 and PostgreSQL:10
version: '3'
services:
db:
image: postgres:10
volumes:
- db-data:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432/tcp
environment:
- POSTGRES_PASSWORD=odoo
@katiakweb
katiakweb / wp.sh
Created May 5, 2020 21:17 — forked from bgallagh3r/wp.sh
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
@katiakweb
katiakweb / update-ssl-certs.bash
Created April 25, 2020 17:56 — forked from Chaz6/update-ssl-certs.bash
Script to update ssl certificates for nginx, unifi and weechat using certbot and systemd
#!/bin/bash
UNIFI_DOMAIN="unifi.example.com"
WEECHAT_DOMAIN="weechat.example.com"
WEECHAT_USER="username"
DOMAIN_LIST="$UNIFI_DOMAIN $WEECHAT_DOMAIN www.example.com"
########################################################################
#
# Program header
sudo apt update && sudo apt upgrade -y
sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less -y
wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb
sudo apt install ./wkhtmltox_0.12.1.3-1~bionic_amd64.deb -y
# source go to https://github.com/Yenthe666/InstallScript
sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh
nano odoo_install.sh
# Line OE_USER="odoo" is your odoo folder name leave as it is
# Line OE_SUPERADMIN="admin" is the master password for this Odoo installation (admin). Change admin to your new strong password