Skip to content

Instantly share code, notes, and snippets.

View victor-abz's full-sized avatar

Abizeyimana Victor victor-abz

View GitHub Profile
#!/usr/bin/env bash
#
export MYPWD=""; # MySQL password
export ADMPWD=""; # Administrator password
export THESITE="my site"; # Site name
export USERCTX=".profile";
source ${HOME}/${USERCTX};
if [ "${BASH_SOURCE[0]}" -ef "$0" ]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<template>
<div class="flex flex-col max-w-full p-4">
<PageHeader>
<h1 slot="title" class="text-2xl font-bold">Scyn with VSDC Items</h1>
<template slot="actions">
<SearchBar class="ml-2" />
</template>
</PageHeader>
<div class="grid grid-cols-3 gap-4 mt-2">
<div
@victor-abz
victor-abz / Fix FATAL: no pg_hba.conf entry for host "4X.XXX.XX.XXX"
Created January 17, 2022 08:12
Fix connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "4X.XXX.XX.XXX",
# Add or Remove this in nano /var/lib/pgsql/9.5/data/pg_hba.conf
`hostnossl all all 0.0.0.0/0 trust`
# run
`/etc/init.d/postgresql restart`
@victor-abz
victor-abz / gist:7fc1a896b0de068de7f2140138088613
Created March 10, 2022 18:42
JSON formatter, Microsoft word code formatter
http://www.bodurov.com/JsonFormatter/
@victor-abz
victor-abz / pg_change_schema_owner.sh
Created April 7, 2022 16:37 — forked from bspkrs/pg_change_schema_owner.sh
Changes the owner on all tables, sequences, views, and functions in a PostgreSQL database with support for identifiers with whitespace and non-public schemas.
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script sets ownership for all tables, sequences, views, and functions for a given schema.
Run this script as your postgres OS user.
@victor-abz
victor-abz / pg_change_schema_owner.sh
Last active November 15, 2022 14:23 — forked from bspkrs/pg_change_schema_owner.sh
Changes the owner on all tables, sequences, views, and functions in a PostgreSQL database with support for identifiers with whitespace and non-public schemas.
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script sets ownership for all tables, sequences, views, and functions for a given schema.
Run this script as your postgres OS user.
@victor-abz
victor-abz / Activate Office 2019 for macOS VoL.md
Created July 19, 2022 13:41 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@victor-abz
victor-abz / VMware vSphere 6.x Licence Keys
Created September 5, 2022 10:30 — forked from CHSuworatrai/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@victor-abz
victor-abz / centos_static_ip.md
Last active May 26, 2023 15:28
Network setup on centos
  1. View network interfaces by nmcli -p dev // to check network port

  2. Edit /etc/sysconfig/network-scripts/ifcfg-networkdevicename

  3. press i for editing and change the following

DEVICE=device_name
BOOTPROTO=none