Skip to content

Instantly share code, notes, and snippets.

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

Kananek Thongkam dvgamerr

🦥
ไม่ชอบออกไปไหน
View GitHub Profile
@dvgamerr
dvgamerr / systemd.md
Last active November 29, 2023 15:57
How to update WSL Systemd support is now available in WSL
  1. check version WSL wsl --version
  2. Update WSL to v0.67.6 wsl.exe --update --web-download or microsoft/WSL
  3. Edit file sudo nano /etc/wsl.conf and using CTRL+O to save and CTRL+X to exit.
[boot]
systemd=true
  1. Install Docker https://docs.docker.com/engine/install/ubuntu/
  2. wsl.exe --shutdown after reboot and check systemctl list-unit-files --type=service
@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.
@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 / 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 / README.md
Last active September 23, 2022 07:28
Project Budget WebApp with Framwork7
@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==
<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
{