Skip to content

Instantly share code, notes, and snippets.

@jeffery9
jeffery9 / install_posbox_in_pc.sh
Created December 12, 2022 03:14 — forked from bitodoo/install_posbox_in_pc.sh
Install Odoo posbox in pc
#!/bin/bash
# Run not as root
# ./install_posbox_in_pc.sh
# No LSB modules are available.
# Distributor ID: Ubuntu
# Description: Ubuntu 18.04.3 LTS
# Release: 18.04
# Codename: bionic
@jeffery9
jeffery9 / git-sync-all-branches.sh
Last active October 12, 2020 00:31 — forked from piaoger/git-sync-all-branches.sh
git-sync-all-branches
# fetch all branches
# From: http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
#!/bin/bash
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
git branch --track ${branch##*/} $branch
done
git fetch --all
@jeffery9
jeffery9 / hack.sh
Created August 8, 2019 01:29 — forked from mbinna/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2357277/hack.sh | sh
#
@jeffery9
jeffery9 / Activate Office 2019 for macOS VoL.md
Created July 30, 2019 07:34 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@jeffery9
jeffery9 / README-Template.md
Created December 2, 2018 02:32 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

pandoc scope.docx -t markdown-simple_tables-multiline_tables+pipe_tables-grid_tables
pandoc -s buy.docx -f docx -t markdown-simple_tables-multiline_tables+pipe_tables-grid_tables -o buy.md
@jeffery9
jeffery9 / RedisPythonPubSub1.py
Created April 8, 2017 09:59 — forked from jobliz/RedisPythonPubSub1.py
A short script exploring Redis pubsub functions in Python
import redis
import threading
class Listener(threading.Thread):
def __init__(self, r, channels):
threading.Thread.__init__(self)
self.redis = r
self.pubsub = self.redis.pubsub()
self.pubsub.subscribe(channels)
@jeffery9
jeffery9 / graph_depends.py
Created December 14, 2016 07:34
use to graph odoo module depends....
#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# !/bin/bash
for f in $(ls -d */)
do
f=${f%%/}
echo $f
touch $f/i18n/$f.pot
tx set --auto-local \
-r odoo-master.$f $f'/i18n/<lang>.po' \
--source-lang en \