Skip to content

Instantly share code, notes, and snippets.

@returnwellbeing
returnwellbeing / .ycm_extra_conf.py
Created April 10, 2019 07:56 — forked from jassinm/.ycm_extra_conf.py
c++11 youcompleteme
import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
@returnwellbeing
returnwellbeing / dropbox.md
Last active January 23, 2019 13:15
dropbox 설치 방법

Dropbox

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
sudo ln -s ~/.dropbox-dist/dropboxd /usr/local/bin/dropboxd
mkdir ~/Dropbox && cd ~/Dropbox && dropboxd

참고

@returnwellbeing
returnwellbeing / cmakelist_template.md
Last active December 16, 2018 09:57
CMakeLists.txt 예제
cmake_minimum_required(VERSION 3.0)
project(codeforce_practice)

# Set the output folder where your program will be created
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)

# The following folder will be included
@returnwellbeing
returnwellbeing / vim_build_option.md
Last active December 14, 2018 12:36
시스템 클립보드 사용가능

vim configure option

./configure \
--enable-cscope \
--with-features=huge \
--with-x \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config
@returnwellbeing
returnwellbeing / kali_hangul.md
Last active December 28, 2018 12:37
칼리 리눅스 한글 설정

칼리 리눅스 한글 설정

apt update
apt install fcitx-hangul
apt install fcitx-lib*
apt install fonts-nanum*
init 6

im-config > fcitx 선택
@returnwellbeing
returnwellbeing / synergy_ubuntu18.04.md
Created November 24, 2018 02:03
우분투18.04 시너지 자동실행

Autostart Synergy before logging in (GDM)

Client side

vi /etc/gdm/Init/Default

/usr/bin/killall synergyc
while [ $(pgrep -x synergyc) ]; do sleep 0.1; done
/usr/bin/synergyc <SERVER HOSTNAME>

exit 0
@returnwellbeing
returnwellbeing / metasploit_db_initial.md
Created November 15, 2018 11:53
메타스플로잇 DB 초기설정
root@Fu:~# msfdb delete
root@Fu:~# msfdb init
root@Fu:~# cp /usr/share/metasploit-framework/config/database.yml /root/.msf4/
root@Fu:~# sudo service postgresql restart
root@Fu:~# sudo msfconsole
msf > db_status
[*] postgresql connected to msf
msf >
@returnwellbeing
returnwellbeing / kali linux on docker.md
Last active November 15, 2018 11:54
도커에 칼리리눅스 설치하기
@returnwellbeing
returnwellbeing / README-Template.md
Created October 24, 2018 07:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites