Skip to content

Instantly share code, notes, and snippets.

View CynicalApe's full-sized avatar
🎯
Focusing

Oguz Kaan Agac CynicalApe

🎯
Focusing
View GitHub Profile
@CynicalApe
CynicalApe / CmakeLists.txt
Created September 7, 2019 10:00
CMAKE for LUA
cmake_minimum_required(VERSION 3.2)
project(lua C)
if (WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /O2 /DLUA_COMPAT_5_2")
else()
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra -DLUA_COMPAT_5_2")
endif()
set(LUA_CORE_SOURCE_FILES
@CynicalApe
CynicalApe / duck_wikifix.js
Created May 19, 2019 09:51
duck duck go wikifix
// ==UserScript==
// @name Wikifix
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://duckduckgo.com/*
// @grant none
// ==/UserScript==
#pragma once
#include <inttypes.h>
#include "types.h"
/* JUST CONVINIENCE DON'T JUDGE ME */
typedef int64_t i64;
typedef int32_t i32;
typedef int16_t i16;
typedef int8_t i8;
typedef uint64_t u64;
@CynicalApe
CynicalApe / .vsvimrc
Last active January 13, 2024 17:28
windows vimrc
set clipboard=unnamed
set nu
set relativenumber
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set incsearch
set wrap
@CynicalApe
CynicalApe / .ycm_extra_conf.py
Last active April 15, 2018 18:13
My OpenGL You Complete Me file
def FlagsForFile(filename, **kwargs) :
return {
'flags' : [
'-std=c++14', '-lrt', '-lSDL2', '-lGLU', '-lGL', '-lm', '-lglut',
'-lGLEW', '-lX11', '-lXxf86vm', '-lXrandr', '-lpthread', '-lXi', '-ldl',
'-lXinerama', '-lXcursor'
]
}
@CynicalApe
CynicalApe / .vimrc
Last active March 16, 2019 19:10
My vimrc file
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin('~/.vim/bundle/')
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@CynicalApe
CynicalApe / lldb_debug_sample.md
Last active February 12, 2023 08:54
Debugging a simple program with LLDB

Debugging a simple program with LLDB

Sample C++ code, let's call it test.cpp.

#include <iostream>
#include <string>

typedef struct goo {
	int gooInt;
	std::string gooString;
}GOO;
@CynicalApe
CynicalApe / wikifix.js
Last active February 1, 2018 20:24
directs wikipedia results on Google to 0.wikipedia
// ==UserScript==
// @name Wikifix
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.google.com.tr/*
// @grant none
// ==/UserScript==