Skip to content

Instantly share code, notes, and snippets.

View TyeolRik's full-sized avatar

TyeolRik TyeolRik

View GitHub Profile
@TyeolRik
TyeolRik / keybase.md
Created December 31, 2016 16:40
Verifying my identity with Keybase

Keybase proof

I hereby claim:

  • I am TyeolRik on github.
  • I am tyeolrik (https://keybase.io/tyeolrik) on keybase.
  • I have a public key whose fingerprint is FADF 0600 D598 6E00 ACEE 10B4 2BD6 88FB 5D17 1F06

To claim this, I am signing this object:

@TyeolRik
TyeolRik / RandomNumber.cpp
Last active September 5, 2019 10:53
[C++] Make Random Number
#include <iostream>
#include <cstdlib>
#include <ctime>
double makeRandomDouble() {
return (double)rand() / RAND_MAX;
}
int main()
{
@TyeolRik
TyeolRik / sample.txt
Created November 8, 2019 04:16
The PHP sample.txt which should be deleted in this year.
PHP is a popular general-purpose scripting language that is especially suited to web development.
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
Download
7.1.33·Release Notes·Upgrading
7.2.24·Release Notes·Upgrading
7.3.11·Release Notes·Upgrading
31 Oct 2019
PHP 7.4.0RC5 released!
@TyeolRik
TyeolRik / auto.sh
Last active May 31, 2020 07:27
Default script for making instance in Openstack
#!/bin/sh
sudo useradd test
sudo passwd test
sudo yum install iptables-services git openssl-devel pam-devel zlib-devel autoconf automake libtool -y
sudo git clone https://github.com/anilgulecha/shellinabox.git
#!/bin/sh
sudo wget https://gist.githubusercontent.com/TyeolRik/61516b992e9188dc0ace842f3832dfe1/raw/c0221cbae3a8101d3f148ba5b615e713ef31ace1/auto.sh
sudo chmod 777 auto.sh
expect <<EOF
set timeout -1
@TyeolRik
TyeolRik / ThisOutlookSession
Created June 16, 2020 02:45
Outlook Automatic Download all Attachments
Public Sub SaveAttachments()
Dim objOL As Outlook.Application
Dim objMsg As Outlook.MailItem 'Object
Dim objAttachments As Outlook.Attachments
Dim objSelection As Outlook.Selection
Dim i As Long
Dim lngCount As Long
Dim strFile As String
Dim strFolderpath As String
Dim strDeletedFiles As String
@TyeolRik
TyeolRik / newpost
Last active July 29, 2020 12:58
Newpost for Github page Jekyll Blog
#!/usr/bin/env ruby
=begin
--- HOW TO USE ---
In Windows,
> ruby newpost "Category Title"
Only First word is regarded as category. After second word, all is substring of title.
This Ruby Script look up your blog posts (./_posts/*.md) and count how many article with same category.
This returns YYYY-MM-DD-category-number-title.md file.
=end
@TyeolRik
TyeolRik / tasks.json
Last active August 19, 2022 03:44
Compile and Run AT ONCE in Linux(Debian) VS Code. Just Press 'Ctrl + Shift + B'
// This tasks.json is for C++.
// In *.cpp, Just Press "Ctrl + Shift + B" for Compile, Run, Delete Compiled Binary File AT ONCE.
{
"version": "2.0.0",
"type": "shell",
"tasks": [
{
"label": "save and compile for C++",
"command": "g++",
"args": [
@TyeolRik
TyeolRik / get_problem_number.py
Created September 6, 2020 22:44
Automatic BaekJoon Problem Directory Builder
#-*- coding:utf-8 -*-
# Python 3.8
# need Libraries: beautifulsoup4, requests
"""
This python file is for getting problem number and making .cpp files automatically in one page
This Programs Returns
─ FolderName
├─ 1234.cpp
├─ 2345.cpp
@TyeolRik
TyeolRik / dockerfile
Created October 27, 2020 09:00
Change Mirror server for Korean in Docker Ubuntu
# example Dockerfile
FROM ubuntu:20.04
RUN cd /etc/apt && \
sed -i 's/archive.ubuntu.com/ftp.kaist.ac.kr/g' sources.list
RUN apt-get update && apt upgrade