Skip to content

Instantly share code, notes, and snippets.

View stories2's full-sized avatar
🐁
아 모르겠다

Kim HyunWoo stories2

🐁
아 모르겠다
View GitHub Profile
@stories2
stories2 / baseball ticketing.js
Last active April 9, 2021 10:25
야구경기 보러 가즈아
document.querySelector('ul#select_seat_grade').style.height='400px';
function delay() {
return new Promise(resolve => {
setTimeout(() => {
resolve();
}, 5000)
})
}
function refresh() {
import dbus
SERVICE_NAME = "org.bluez"
OBJECT_IFACE = "org.freedesktop.DBus.ObjectManager"
ADAPTER_IFACE = SERVICE_NAME + ".Adapter1"
DEVICE_IFACE = SERVICE_NAME + ".Device1"
PROPERTIES_IFACE = "org.freedesktop.DBus.Properties"
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object("org.bluez", "/"), "org.freedesktop.DBus.ObjectManager")
objects = manager.GetManagedObjects()
@stories2
stories2 / hid.py
Last active May 5, 2022 14:37
hid.py
import os
import sys
import time
import logging
import dbus
from bluetooth import *

쇼핑몰 생성

https://ec.cafe24.com/

FTP 접속 설정

  • 계정 비밀번호 재설정

https://ec.cafe24.com/ 쇼핑몰 관리자 로그인 -> 상단 [프로모드] -> 상점관리 -> 기본정보관리 -> 비밀번호 변경시 FTP 까지 체크하여 변경

  1. Check disk list
sudo fdisk -l

Disk /dev/sda: 931.49 GiB, 1000170586112 bytes, 1953458176 sectors
Disk model: My Passport 259B    
Units: sectors of 1 * 512 = 512 bytes         
Sector size (logical/physical): 512 bytes / 512 bytes      
I/O size (minimum/optimal): 512 bytes / 512 bytes 
@stories2
stories2 / CouchDB setting.md
Last active August 7, 2019 07:20
CouchDB as api server setup

This is how to enable enter from remote client app.

  1. Open the couch db web dashboard which is localhost:5984/_utils/index.html maybe
  2. Enter the setting page
  3. Fix severial part
Section Option Value
chttpd bind_address 0.0.0.0
@stories2
stories2 / ASP.NET Framework publish.md
Last active February 22, 2022 22:53
Publish ASP.NET Framework project using command line

ASP.NET Framework Publish

This is my reference. So what we will do, is make the project build release and copy to specific directory which is build result files.

It will run only Windows Command line.

  1. Open the command line console.
  2. Move to project folder which is same direction with [PROJECT-NAME].csproj
@stories2
stories2 / installGuide.md
Last active July 9, 2018 08:15
Ubuntu install

After boot

Check network

ifconfig -a

Check update & install upgrade

apt-get update
apt-get upgrade
root@ip-172-31-0-180:/home/ubuntu# history                                                            │
    1  useradd stories2                                                                               │
    2  userdel stories2                                                                               │
    3  adduser stories2                                                                               │
    4  cd                                                                                             │
    5  userdel ubuntu                                                                                 │
    6  ls -al                                                                                         │
    7  exit                                                                                           │
    8  passwd ubuntu                                                                                  │
@stories2
stories2 / 객체지향2-09-26.md
Created September 26, 2017 02:26
객체지향2 09-26

.h

#pragma once#include <iostream>
using namespace std;
class Circle { int radius;public: Circle() {  radius = 1;  cout << "create " << radius << endl; } Circle(int r) {  radius = r;  cout << "create " << radius << endl; } double getArea(); void setRadius(int r) {  radius = r; } ~Circle() {  cout << "destroy " << radius << endl; }};
double Circle::getArea() { return 3.14 * radius * radius;}

##.c