Skip to content

Instantly share code, notes, and snippets.

View berito's full-sized avatar

Mohammed Sraj berito

  • Samara University
  • Ethiopia
View GitHub Profile
@berito
berito / configure-eden-apache-mysql.sh
Created December 17, 2021 07:50 — forked from ScottEvil/configure-eden-apache-mysql.sh
Post set-up script for Sahana Eden
#!/bin/sh
# Script to configure an Eden server
# - assumes that install-eden-apache-mysql.sh has been run
echo -e "What domain name should we use? : \c "
read DOMAIN
echo -e "What host name should we use? : \c "
read hostname
sitename=$hostname".$DOMAIN"
echo -e "What is the current root MySQL password: \c "
read rootpw
@berito
berito / postgres_queries_and_commands.sql
Created June 16, 2021 12:51 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@berito
berito / gitflow-breakdown.md
Last active April 19, 2021 08:02 — forked from JamesMGreene/gitflow-breakdown.md
git flow versus git commands

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@berito
berito / Install odoo from source.sh
Last active April 20, 2021 09:09 — forked from inspiretk/Install odoo from source
Install odoo from source
https://www.odoo.com/documentation/11.0/setup/install.html#setup-install-source
# Python 3.5+
#ubuntu 18.04 install Python 3.5
apt-get install software-properties-common -y
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.5 -y
sudo update-alternatives --config python
#setup your default python version eg sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1
#setup your default python version eg sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
@berito
berito / .gitignore
Last active April 19, 2021 08:00 — forked from salcode/.gitignore
wordpress gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
# GET VERSION
yarn -v (or --version)
# GET HELP
yarn help
# CREATE PACKAGE.JSON
yarn init
yarn init -y // Use defaults
@berito
berito / npmcrashcourse.txt
Created September 12, 2019 19:32 — forked from bradtraversy/npmcrashcourse.txt
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)
@berito
berito / docker-help.md
Created September 8, 2019 09:32 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info