Skip to content

Instantly share code, notes, and snippets.

acanakoglu

Block or report user

Report or block acanakoglu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@acanakoglu
acanakoglu / pgadmin4 master password - MacOS
Created Feb 10, 2020
How to disable master password of pgadmin4
View pgadmin4 master password - MacOS
Open file below, tested with the version 4.17 and 4.18:
/Applications/pgAdmin\ 4.app/Contents/Resources/web/config.py
and then find the line contains: "MASTER_PASSWORD_REQUIRED" and change the parameter into "False"
@acanakoglu
acanakoglu / tmux_local_install.sh
Created May 1, 2019 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
View tmux_local_install.sh
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.9a
View parallel min couples
import sys
from os import walk
import tqdm
from collections import defaultdict
from multiprocessing import Pool, Lock, Process
import os
import multiprocessing
import time
# defintions
View example_xsd
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="reservation_list">
<xs:complexType>
<xs:sequence>
<xs:element name="reservation" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="customer">
<xs:complexType>
View enumerator to inputstream
import java.io._
import play.api.libs.iteratee.{Enumerator, Iteratee}
import scala.concurrent.{ExecutionContext, Future}
import ExecutionContext.Implicits.global
/**
* Created by canakoglu on /28/317.
View ace_build.sh
#!/bin/bash
rm build -R
npm install
#node ./Makefile.dryice.js full
node ./Makefile.dryice.js
rm -R /home/canakoglu/Documents/IdeaProjects/GMQL/GMQL-WEB/public/ace/src
mv build/src/ ~/Documents/IdeaProjects/GMQL/GMQL-WEB/public/ace/
@acanakoglu
acanakoglu / dist-play-app-initd
Last active Jan 26, 2017 — forked from RadoBuransky/dist-play-app-initd
Init.d shell script for Play framework distributed application. Provides start, stop, restart and status commands to control applications packaged using standard "play dist" packaging command.
View dist-play-app-initd
#!/bin/bash
#
# =========================================================================
# Copyright 2014 Rado Buransky, Dominion Marine Media
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
You can’t perform that action at this time.