Skip to content

Instantly share code, notes, and snippets.

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

Kananek Thongkam dvgamerr

🦥
ไม่ชอบออกไปไหน
View GitHub Profile
@dvgamerr
dvgamerr / LICENCE SUBLIME TEXT.md
Last active May 10, 2018 10:53
sublime text 3 build 3170, 3164

Mac|Linux nano /etc/hosts

and paste this line at very bottom of file, save and exit

127.0.0.1 license.sublimehq.com

Fixed: flush/clear First, flush/clear DNS cache (e.g. sudo systemd-resolve --flush-caches for systemd-resolved). Second, restart your computer.

Windows c:\windows\system32\drivers\etc\hosts

@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%)

@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 / 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 / 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 / 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 / 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 / Commandline Help.md
Last active July 31, 2018 03:34
Commaneline

.

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