Skip to content

Instantly share code, notes, and snippets.

View MahefaAbel's full-sized avatar
🏠
Working from home

Mahefa Abel MahefaAbel

🏠
Working from home
View GitHub Profile
@MahefaAbel
MahefaAbel / starUML.md
Created April 4, 2019 03:23 — forked from trandaison/starUML.md
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**
@MahefaAbel
MahefaAbel / cracking.md
Created April 6, 2019 16:23
Cracking guide for Sublime Text 3 Build 3206/3200 and Sublime Merge - Build 1111/1109 (Linux x86_64) - Updated #7 (20190405)

Script for patching Sublime Text 3 and Sublime Merge - Linux x64!

Only for builds 3206/3200 and 1111/1109

License key required: NO

Detailed explanation

@MahefaAbel
MahefaAbel / LICENCE SUBLIME TEXT
Created April 6, 2019 16:35
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@MahefaAbel
MahefaAbel / web-service-soap-client-server-php.md
Created April 29, 2019 05:45 — forked from umidjons/web-service-soap-client-server-php.md
Simple Web service - SOAP Server/Client in PHP

Simple Web service - SOAP Server/Client in PHP

Implementation of the SOAP server - server.php:

<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");

// model, which uses in web service functions as parameter
@MahefaAbel
MahefaAbel / iptables-config-script
Created October 4, 2019 12:23 — forked from LouWii/iptables-config-script
Bash script to configure iptables for a web server. Some rules can be removed depending on used services.
#!/bin/sh
# Empty all rules
sudo iptables -t filter -F
sudo iptables -t filter -X
# Bloc everything by default
sudo iptables -t filter -P INPUT DROP
sudo iptables -t filter -P FORWARD DROP
sudo iptables -t filter -P OUTPUT DROP
[Thumbnailer Entry]
TryExec=/usr/bin/gdk-pixbuf-thumbnailer
Exec=/usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
MimeType=image/png;image/bmp;image/x-bmp;image/x-MS-bmp;image/gif;image/x-icon;image/x-ico;image/x-win-bitmap;image/vnd.microsoft.icon;application/ico;image/ico;image/icon;text/ico;application/x-navi-animation;image/jpeg;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/tiff;image/x-xpixmap;image/x-xbitmap;image/x-tga;image/x-icns;image/x-quicktime;image/qtif;image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-panasonic-raw2;image/x-pef;image/x-pentax-pef;image/x-ptx;image
@MahefaAbel
MahefaAbel / clear-reset-console
Created March 5, 2021 14:33
Clear / reset Console for Node.js
Node.js — Clear/reset Terminal / Console.
# Method 1 (My favorite)
process.stdout.write('\x1Bc');
# Method 2
console.clear();
# Method 3
const readline = require('readline')
@MahefaAbel
MahefaAbel / vsCodeOpenFolder.reg
Last active December 14, 2023 03:27
vsCodeOpenFolder.reg
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@MahefaAbel
MahefaAbel / docker-compose.yml
Created August 28, 2021 10:46 — forked from sheikhwaqas/docker-compose.yml
Docker Compose configuration to run MySQL 5.6 and MySQL 5.7 on one instance. Create /var/lib/mysql56-data & /var/lib/mysql57-data with root as the owner of these directories before running docker-compose up -d
version: '3'
services:
mysql56:
image: mysql:5.6
restart: unless-stopped
container_name: mysql56-container
ports:
- "127.0.0.1:3356:3306"
environment:
MYSQL_ROOT_PASSWORD: rootPassword
@MahefaAbel
MahefaAbel / rename-remove-{pre|su}fix.sh
Last active September 2, 2021 05:16
Linux - Rename files or folders suffix or prefix
for file in *_; do mv -i $file `basename $file _`;done;