Skip to content

Instantly share code, notes, and snippets.

View victor-abz's full-sized avatar

Abizeyimana Victor victor-abz

View GitHub Profile
@victor-abz
victor-abz / windows_activation.md
Created August 30, 2024 19:52 — forked from butageek/windows_activation.md
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

# documentation: https://jitsi.github.io/handbook/docs/intro
# slogan: World's easiest way to add meetings to your apps
# env_file: jitsi.env
# logo: svgs/jitsi.svg
# tags: video, conferencing, meetings, communication, open-source
services:
jitsi-web:
image: "jitsi/web:${JITSI_IMAGE_VERSION}"
container_name: jitsi-web
@victor-abz
victor-abz / how-to-tmux-background-process.md
Created July 1, 2024 17:37 — forked from davydany/how-to-tmux-background-process.md
Using TMUX for running processes after you log off

How to Run a Process in the Background with TMUX

There are times when you need to log off your Linux Desktop, and you want a process to run in the background. TMUX manages this very well.

For this example, let's suppose you're running a long running task like running rspecs on your project and it is 5pm, and you need to go home.

Run Your Process

@victor-abz
victor-abz / Procfile
Created February 22, 2024 14:17 — forked from revant/Procfile
Use node server with frappe-bench
redis_cache: redis-server config/redis_cache.conf
redis_socketio: redis-server config/redis_socketio.conf
redis_queue: redis-server config/redis_queue.conf
web: bench serve --port 8000
socketio: /usr/bin/node apps/frappe/socketio.js
custom_app: /usr/bin/node apps/custom_app/custom_node.js
watch: bench watch
schedule: bench schedule
worker_short: bench worker --queue short
@victor-abz
victor-abz / windowsSSL.md
Created July 28, 2023 10:52
Create windows SSL
  1. Convert .crt .pem and .key to PFS for Win Server Import using openssl
openssl pkcs12 -export -out output_sile_path.pfx -inkey ssl_key_path.key -in crt_file_path.crt -certfile pem_ssl_file_path.pem
  1. Import in Windows
c:> certutil -importPFX pfx_ssl_path.pfx
@victor-abz
victor-abz / backup.sh
Created June 14, 2023 13:48
Used for backing up Frappe/ERPNext sites to github repo
#!/bin/bash
# Used for backing up Frappe/ERPNext sites
# Adjust details and add as cron job on server to automate backups
# Script to backup all sites in Frappe Bench to GitHub
# Switch to bench directory and
# Backup all sites with files to backup folder
# Backup files can be easily restored on a new frappe bench
Future<Response> get(String url) async {
String wsseHeader = await generateAuthHeader();
final response = await httpClient.get(url,
headers: {
HttpHeaders.contentTypeHeader: 'application/vnd.api+json',
'Authorization': 'WSSE profile="UsernameToken"',
'X-WSSE': wsseHeader
},
);
@victor-abz
victor-abz / ubuntu_static_ip.md
Last active September 15, 2022 11:02
Setup static IP on Ubuntu
@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
@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