Skip to content

Instantly share code, notes, and snippets.

View Turupawn's full-sized avatar
🇭🇳
Karaoke veteran

Ahmed Castro Turupawn

🇭🇳
Karaoke veteran
View GitHub Profile
#!/bin/bash
FILE=./input.doc
if test -f "$FILE"; then
lowriter --convert-to pdf:writer_pdf_Export input.doc
fi
mkdir image
pdftoppm input.pdf image/page -png
mkdir text
# Dependencies
apt update
apt install curl git libpq-dev gnupg2 postgresql-11
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable --rails
source /usr/local/rvm/scripts/rvm
# DB setup
sudo -u postgres psql
postgres=# create database TodoLegalDB_Development;
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
#myInput {
#!/bin/bash
FILE=./input.doc
if test -f "$FILE"; then
lowriter --convert-to pdf:writer_pdf_Export input.doc
fi
mkdir image
pdftoppm input.pdf image/page -png
# DUPLICATE
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
# Dependencies
sudo apt install libpq-dev postgresql-11
# Setting up the DB
sudo -u postgres psql
postgres=# create database TodoLegalDB_Development;
postgres=# alter user postgres with encrypted password 'MyPassword';
\q
LoginId:fea4e82c43fdb2f749b5208bbe7b2347
EpicAccountId:6c257a0b1d2c49a6b530cc49646bf593
Unhandled exception
KERNELBASE
UE4Editor_modio!__delayLoadHelper2() [d:\agent\_work\3\s\src\vctools\delayimp\delayhlp.cpp:323]
UE4Editor_modio!_tailMerge_modio_dll()
UE4Editor_modio!FModioSubsystem::Init() [c:\users\antar\documents\unreal projects\ue4example\plugins\modio\source\modio\private\modiosubsystem.cpp:782]
UE4Editor_modio!FModioSubsystem::Create() [c:\users\antar\documents\unreal projects\ue4example\plugins\modio\source\modio\private\modiosubsystem.cpp:61]
FString ASteamAuth::base64_encode(uint8 const* bytes_to_encode, uint32 in_len)
{
static const FString base64_chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";
FString ret;
int32 i = 0;
int32 j = 0;
@Turupawn
Turupawn / gist:e7a5064e99e124cc25b13ffb01ace5da
Created April 8, 2020 20:27
CMakeLists.txt enable GTest
cmake_minimum_required(VERSION 3.5)
project(modio)
set (CMAKE_CXX_STANDARD 11)
IF( test AND test STREQUAL "on" )
message("Testing enabled")
file(GLOB TEST_SRC_FILES ${PROJECT_SOURCE_DIR}/src/*.cpp)
add_subdirectory(ext/googletest)
enable_testing()
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
upstream thin {
server 127.0.0.1:3000;
}
server {
server_name balancer.todolegal.app;
listen 80;
listen [::]:80;