Skip to content

Instantly share code, notes, and snippets.

View mehmetaydogduu's full-sized avatar
🏍️
Tech goes infinite speed

Mehmet Aydogdu mehmetaydogduu

🏍️
Tech goes infinite speed
View GitHub Profile
@mehmetaydogduu
mehmetaydogduu / # gazebo9 - 2018-10-24_21-09-04.txt
Created October 31, 2018 15:07
gazebo9 (osrf/simulation/gazebo9) on macOS 10.14 - Homebrew build logs
Homebrew build logs for osrf/simulation/gazebo9 on macOS 10.14
Build date: 2018-10-24 21:09:04
@mehmetaydogduu
mehmetaydogduu / main.c
Created September 2, 2018 21:25
C - function inside struct - Javascript Like Solution
# Copy from https://stackoverflow.com/a/32964582/7595238
#include <stdio.h>
typedef struct hello {
int (*someFunction)();
} hello;
int foo() {
return 0;
}
@mehmetaydogduu
mehmetaydogduu / Postgresql Setup
Created March 20, 2017 20:32
Commands for create and connect postgre database
1. Install Postgre from any repo or source
-> ... search in www ...
create a directory [ example home/.postgre ]
-> mkdir ~/.postgre
create database system
-> cd ~/.postgre && initdb /data
create database [ example appname_postgredb ]
-> createdb appname
start postgresql
-> pg_ctl -D ~/.postgre/data -l logfile start
@mehmetaydogduu
mehmetaydogduu / Ruby OpenSSL Error Fix
Created March 12, 2017 20:56
RestClient, Faraday, Http, Api
# Find the directory which ruby searches openssl
ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE'
# Download cacert.pem to that directory
!! The file names must be same !!
https://curl.haxx.se/ca/cacert.pem
Example for linux:
ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE'
output: /etc/ssl/cert.pem
Kisi.java dosyası
package odev;
public class Kisi {
String isim;
public String getIsim(){
return isim;
}