Skip to content

Instantly share code, notes, and snippets.

View 101t's full-sized avatar
🐍
Simple is better than complex!

Tarek Kalaji 101t

🐍
Simple is better than complex!
View GitHub Profile
@101t
101t / ERPNext-Guidelines.md
Last active March 15, 2024 15:09
ERPNext guidelines

How to install an ERPNext Stack on Ubuntu 20.04

Introduction

ERPNext is an Enterprise Resource Planning (ERP) suite that leverages the power and flexibility of open-source technologies. It excels at manageing core business process such as finance, sales, HR, Manufacturing, Purchases, Services, Helpdesk, and more. Among the benefits of implementing a system like ERPNext are:

  • Better productivity by automating repetivity business process
  • Improved IT efficiency by sharing a database for all departments within the company
  • Better decising-making thanks to an integral vision of how business units relate to each other

ERPNext is based on Frappe framework, a full-stack web application written in Python that takes full advantage of the NodeJS and JavaScript runtime environment and uses MariaDB as its database backend, One of the best advantages of Frappe-based application is the bench command-line utility.

@101t
101t / nginx.md
Last active December 9, 2022 07:24
NGiNX my beloved server

NGINX frequently used configurations

NGINX Static IP Proxy Forwarding

upstream git_server {
    server xx.xx.xx.xx:6060;
}
server {
    listen 80;
 server_name git.domainname.com;
@101t
101t / Docker short commands.md
Last active March 7, 2024 08:34
Important short commands for docker - (Docker mocker çalışır!)

Run and build docker project

docker-compose -f docker-compose.yml up --build

Docker Build and Deployment

# docker build -t template_name:version_tag .
docker build -t micro_service:1.2.1 .
@101t
101t / README.md
Last active April 5, 2023 10:14
Odoo OpenUpgrade Database Migration

Odoo OpenUpgrade Database Migration

Aftar install and configure OpenUpgrade on your local linux:

python3 ./migrate3.py --config=odoo12-server.conf --database=mydb12 --run-migrations=12.0,13.0 --branch-dir=/var/tmp/openupgrade
@101t
101t / convert-img-to-ascii.md
Last active June 3, 2022 07:25
Convert your image into ASCII Picture

Convert your Image into ASCII art picture:

# Python code to convert an image to ASCII image. 
import sys, random, argparse 
import numpy as np 
import math 

from PIL import Image 
@101t
101t / PowerShell.md
Last active March 2, 2021 14:09
PowerShell Snipps Commands

PowerShell Snipps Commands

* Rename Multiple file/folder

Rename only under directory

get-childitem prefix_* | foreach { rename-item $_ $_.Name.Replace("prefix", "another_prefix") }

Rename recursivly under directory

@101t
101t / raspberrypi.md
Last active November 23, 2020 14:06
RaspberryPi Quick Tutorial

RaspberryPi small commands

if files seems readonly file:

sudo mount -o remount,rw /root_bypass_ramdisks

set configurations

sudo raspi-config
@101t
101t / Deployment Guide to Installing Odoo 14 on Ubuntu 20.04.md
Last active April 7, 2024 12:00
Deployment Guide to Installing Odoo 14 on Ubuntu 20.04
@101t
101t / manage-react-state-with-redux.js
Created September 25, 2019 07:58
React + Redux state how it works?
import React from 'react';
import { render } from 'react-dom';
import { createStore } from 'redux';
import { connect, Provider } from 'react-redux';
const reducer = (state = {counter: 0}, action) => {
switch (action.type) {
case 'INCREMENT':
return {...state, counter: state.counter+1};
case 'DECREMENT':
@101t
101t / github-unfollow-the-following.md
Created May 27, 2019 10:48
Remove the following from your account using JavaScript and your browser console.

This script to unfollow the following on your Github account automatically.

[].slice.call(document.querySelectorAll('.js-toggler-target')).forEach(function(button) {
   var x = button.parentNode.getAttribute("action")
	 if(x.indexOf("/users/unfollow") > -1){console.log(x);button.click();}
});