Skip to content

Instantly share code, notes, and snippets.

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

Huy TQ imhuytq

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?if $(var.Platform)=x64 ?>
<?define ProductCode = "102F7DF4-19A6-4d3d-987F-FF57A2031593" ?>
<?else ?>
<?define ProductCode = "8AE46CAF-220F-4B9F-9527-D4A19A27C45B" ?>
<?endif ?>
<Product Id="*" Name="Hiweb Printer" Language="1033" Version="1.0.0.0" Manufacturer="Hiweb Co.,Ltd" UpgradeCode="{F1E6FD66-E33F-4D89-8D1F-7F42D408632B}">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
array:55 [
0 => array:3 [
1 => 1
2 => 2
3 => 4
]
1 => array:3 [
1 => 7
2 => 1
3 => 4
@imhuytq
imhuytq / install.txt
Created July 25, 2021 10:26
Install certbot CentOS/RHEL 7
# Install
sudo yum install -y epel-release
sudo yum install -y snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Add cert
var a = '';
@imhuytq
imhuytq / RGBA2RGB.js
Created April 4, 2020 15:30
RGBA2RGB
function rgba2rgb(RGB_background, RGBA_color)
{
var alpha = RGBA_color.a;
return new Color(
(1 - alpha) * RGB_background.r + alpha * RGBA_color.r,
(1 - alpha) * RGB_background.g + alpha * RGBA_color.g,
(1 - alpha) * RGB_background.b + alpha * RGBA_color.b
);
}
<!doctype html>
<html>
<head>
<title>"PHP Encode v1.0 by zeura.com" decoder =))</title>
<meta charset="utf-8">
</head>
<body>
<form method="POST">
<h1>Decode tool for <a href="http://www.phpencode.org">http://www.phpencode.org</a></h1>
<textarea name="code" rows="10" style="width: 100%" placeholder="Paste code here"></textarea><br />
cd ./
for /d %%a in (*) do echo %%a >> danhsach.txt
@imhuytq
imhuytq / keygen.html
Created August 5, 2014 06:51
CKFinder 2.x keygen
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CKFinder Keygen</title>
</head>
<body>
<table style="border: 1px solid #999;">
<thead>
<tr>
@imhuytq
imhuytq / floatHeightAutoAdjustment.js
Last active December 25, 2015 22:39
Float height auto adjustment
// Require jQuery
function floatHeightAutoAdjustment(selector) {
// index in the row
var _line = new Array;
// Get all div
$(selector).each(function (index, elm) {
var _curElm = $(elm) // Current div
, _curElmOffsetTop = _curElm.offset().top // Position of current row