Skip to content

Instantly share code, notes, and snippets.

View gnh1201's full-sized avatar
๐Ÿ‰
Your Watermelon OPEN UP!

Namhyeon, Go gnh1201

๐Ÿ‰
Your Watermelon OPEN UP!
View GitHub Profile
@gnh1201
gnh1201 / obs_twitch_chat.css
Created April 1, 2022 09:25 — forked from Bluscream/obs_twitch_chat.css
Twitch chat transparent popout for OBS
/*
Twitch chat browsersource CSS for OBS
Just set the URL as https://www.twitch.tv/%%TWITCHCHANNEL%%/chat?popout=true
And paste this entire file into the CSS box
Original by twitch.tv/starvingpoet modified by github.com/Bluscream
General Settings
*/
body {
color: #FFFFFF!important;
@gnh1201
gnh1201 / howtofix.md
Last active June 21, 2025 22:45
How to fix "can not open access to console the root account is locked"

How to fix "can not open access to console the root account is locked"

I recently experienced this problem, but I only had answers that did not help. Then, I was able to get a hint from the short opinion of the Linux Forum.

This problem is related to the change of the drive. If it is not properly reflected in /etc/fstab, such an error may occur.

  1. Download SystemRescueCD and make a bootdisk: https://www.system-rescue.org/

  2. FDISK and MOUNT

@gnh1201
gnh1201 / Program.cs
Created November 26, 2021 08:54
Program.cs
using System;
using System.Collections.Generic;
using System.IO;
namespace SomethingWrong
{
class Program
{
static char[] key = new char[] {
(char)0x46, (char)0x75, (char)0x63, (char)0x6B, (char)0x4D, (char)0x69,
@gnh1201
gnh1201 / iwasm_centos6.md
Last active March 8, 2022 03:03
Build the WASM runtime on CentOS 6.9/GLIBC 2.12
@gnh1201
gnh1201 / example.cpp
Created July 12, 2021 09:50
Example of get process handle by process name
#include <cstdio>
#include <windows.h>
#include <stdio.h>
#include <tlhelp32.h>
int main(int, char* [])
{
PROCESSENTRY32 entry;
entry.dwSize = sizeof(PROCESSENTRY32);
const wchar_t* processName = L"sample.exe";
@gnh1201
gnh1201 / shimtest.js
Created April 30, 2021 00:42
shimtest.js 2
// define module object
var ModuleObject = function() {
this.exports = {};
};
/*
(function(global) {
var module = new ModuleObject();
})(this);
*/
@gnh1201
gnh1201 / shimtest.js
Created April 25, 2021 12:39
shimtest.js (es5-shim 4.5.15, es6-shim 0.35.6, wsh.js)
// define module object
var ModuleObject = function() {
this.exports = {};
};
(function(global) {
var module = new ModuleObject();
/*!
* https://github.com/es-shims/es5-shim
@gnh1201
gnh1201 / crc16.c
Created January 22, 2021 08:40 — forked from tijnkooijmans/crc16.c
CRC-16/CCITT-FALSE
uint16_t crc16(char* pData, int length)
{
uint8_t i;
uint16_t wCrc = 0xffff;
while (length--) {
wCrc ^= *(unsigned char *)pData++ << 8;
for (i=0; i < 8; i++)
wCrc = wCrc & 0x8000 ? (wCrc << 1) ^ 0x1021 : wCrc << 1;
}
return wCrc & 0xffff;
@gnh1201
gnh1201 / XOR.py
Last active December 19, 2020 13:32
import sys
if len(sys.argv) < 3:
print('usage : XOR.py FileName Keys(Hex)')
print('Example : XOR.py C:\\Users\\admin\\Desktop\\a.txt 55 56 57')
exit()
path = sys.argv[1]
#key = int('0x' + sys.argv[2], 16)
keys = list(map(lambda x: int('0x' + x, 16), sys.argv[2:]))
@gnh1201
gnh1201 / STCK1A8LFC.MD
Last active October 7, 2025 19:40
How to revive Intel Compute Stick 8GB (STCK1A8LFC) with Ubuntu 20.04 Focal

How to revive Intel Compute Stick 8GB (STCK1A8LFC) with Ubuntu 20.04 Focal

Most recent Linux distributions require about 20gb of storage space, so they are not installed on devices with only 8GB of capacity. This article guides you on how to install Ubuntu Linux on low-capacity devices.

  1. Install Ubuntu Server - http://releases.ubuntu.com/20.04.1/

  2. Update list of packages and upgrade

I recommend using the usb network card because Wi-Fi is not caught during Ubuntu server installation.