Skip to content

Instantly share code, notes, and snippets.

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

Kananek Thongkam dvgamerr

🦥
ไม่ชอบออกไปไหน
View GitHub Profile
@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).

@dvgamerr
dvgamerr / curse-hell.md
Created May 16, 2018 08:10
Manga Generate link bot Project
http://www.curse-hell.net/bbs/forum.php?mod=guide&view=new
@dvgamerr
dvgamerr / stream.md
Last active May 12, 2018 18:37
stream game get list

C:\Program Files (x86)\Steam\userdata\{ID64toDirName}\config\localconfig.vdf

//id = 76561198006499496 
public static string ID64toDirName(Int64 id)
{
    return (id - 0x0110000100000000).ToString();
}
@dvgamerr
dvgamerr / Clean Docker.md
Created May 11, 2018 15:56
Clean Docker

Disk usage using df command:

$ docker system df

Returns something like this,

TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 35 6 8.332GB 7.364GB (88%) Containers 12 12 417.6MB 0B (0%) Local Volumes 67 2 2.828GB 2.828GB (100%)