Skip to content

Instantly share code, notes, and snippets.

View dvgamerr's full-sized avatar
🦥
ไม่ชอบออกไปไหน

Kananek Thongkam dvgamerr

🦥
ไม่ชอบออกไปไหน
View GitHub Profile
<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
<meta property="al:ios:app_store_id" content="342792525" />
<meta property="al:ios:url" content="imdb://title/tt0117500" />
@dvgamerr
dvgamerr / MongoDB4 to Amazon.md
Last active March 6, 2019 03:40
MongoDB4 Amazon

Installation MongoDB 4 to CentOs or RedHat

 vi /etc/yum.repos.d/mongodb-org-4.0.repo
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/4.0/x86_64/
gpgcheck=1
@dvgamerr
dvgamerr / XAdESSignedXml.cs
Created January 4, 2019 14:51
XAdES .Net Project
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace TestProject1
{
internal sealed class XAdESSignedXml : SignedXml
{
@dvgamerr
dvgamerr / encrypt_decrypt.md
Created November 5, 2018 17:39
Encrypt and Decrypt Data in Node.js

Create a new node.js project Create new directory anywhere in your system and create new project using the following command:

npm init -y

If you have installed Node.js by manual build then there is a chance that crypto library is not shipped with it. You can run this command to install crypto dependency.

@dvgamerr
dvgamerr / setup.md
Created September 18, 2018 16:59
SSH-KEYGEN linux server with github.com
type [filename] | plink.exe [email protected] "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys"
@dvgamerr
dvgamerr / Commandline Help.md
Last active July 31, 2018 03:34
Commaneline

.

@dvgamerr
dvgamerr / README.md
Last active July 24, 2018 08:24
How to configure Network on Ubuntu 18.04

restart service network

sudo netplan apply
@dvgamerr
dvgamerr / FTPLib.FTP.cs
Created July 5, 2018 06:29
FTP Code c#
/* Copyright (c) 2006, J.P. Trosclair
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of conditions and
* the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions
* and the following disclaimer in the documentation and/or other materials provided with the
@dvgamerr
dvgamerr / string.md
Last active June 4, 2018 07:16 — forked from rauschma/string.md

Strings

String.prototype.*

ไม่มีฟังชั่นใดๆ ที่แก้ไขตัวแปรโดยตรง this – ฟังชั่นจะส่งค่าสตริงตัวใหม่คืนกลับมาให้เสมอ

  • charAt(ตำแหน่ง: ตัวเลข): คืนค่าเป็นข้อความ ES1

    Returns the character at index pos, as a string (JavaScript does not have a datatype for characters). str[i] is equivalent to str.charAt(i) and more concise (caveat: may not work on old engines).