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 / 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 / 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
<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 / facebook-icon.js
Last active April 19, 2020 17:21
Tampermonkey
// ==UserScript==
// @name Facebook Albums Icon
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author Kananek Thongkam
// @match https://www.facebook.com/media/set/?set=*type=3
// @match https://www.facebook.com/*/media_set/?set=*
// @grant none
// ==/UserScript==
@dvgamerr
dvgamerr / README.md
Last active September 23, 2022 07:28
Project Budget WebApp with Framwork7
@dvgamerr
dvgamerr / docker-synology.md
Created January 20, 2021 05:30
cronjob with docker Synology NAS and stop notification.
  1. create docker container and not check autostart.
  2. Control Panel > Task Scheduler and create job with command
docker container start task-notify-github
  1. after container finish synology alert notification Docker container ... stopped unexpectedly. access terminal and update update config with command
@dvgamerr
dvgamerr / alienworlds_bot.js
Last active June 24, 2021 21:44 — forked from pich4ya/alienworlds_bot.js
บอทปั้มเงิน TLM เกม Alien Worlds (เงินจะเอาไปแลกเงินจริงใน Binance ได้) ไว้ทดสอบเฉย ๆ อย่าเอาไปใช้จริง คนเขียนไม่รับผิดชอบต่อบั๊กใด ๆ ทั้งสิ้น
// บอทปั้มเงิน TLM เกม Alien Worlds (เงินจะเอาไปแลกเงินจริงใน Binance ได้)
// ไว้ทดสอบเฉย ๆ อย่าเอาไปใช้จริง คนเขียนไม่รับผิดชอบต่อบั๊กใด ๆ ทั้งสิ้น
//
// วิธีใช้:
// 1. สมัคร + เข้า https://play.alienworlds.io/
// 2. ต้องเคย mine แบบ manual ก่อน 1 ครั้ง
// 3. ก๊อปสคริปท์นี้ไปแปะใน Console (F12)
// น่าจะมีบั๊กพวก rate limit อะไรทั้งหลาย กับ if/loop บางอันเอาออกได้
// ลองรันเล่น ๆ 5 ชม จาก user เปล่า ๆ ได้มา 8 TLM (ขึ้นกับดวงและอื่นๆด้วยมั่ง)
// ใครว่าง ๆ แก้เป็นยิงเข้า API โดยตรงไม่ผ่าน JS น่าจะเสถียรกว่าเยอะมาก
@dvgamerr
dvgamerr / Linux.md
Created September 23, 2022 05:32
Disable swap on boot in `Raspbian 10`
  1. Identify configured swap devices and files with cat /proc/swaps.
  2. Turn off all swap devices and files with swapoff -a.
  3. Remove any matching reference found in /etc/fstab.