Skip to content

Instantly share code, notes, and snippets.

View maniac787's full-sized avatar
Focusing

maniac787 maniac787

Focusing
View GitHub Profile
@maniac787
maniac787 / README.md
Created September 5, 2016 03:01 — forked from rvillars/README.md
Spring bundle based translations (i18n) for AngularJS applications with angular-translate

angular-translate with Spring bundles

Synopsis

AngularJS itself doesn't provide any features to translate the texts of your application to different languages and switching the language right on the page. Fornutalty there is now another open-source project called angular-translate that implements the needed functionalities.

AnularJS proposes a technologiy where as much as possible application behevior is exeuted on the client (the browser). So it makes sense to hold translated texts clientside and enrich the static templates with the transalted texts there.

Spring message bundles in the opposite are a collection of serverside key=value files that hold the translated texts each for one language. A well known and widly used pattern.

@maniac787
maniac787 / git.migrate
Created September 18, 2017 00:55 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@maniac787
maniac787 / install virtualenv ubuntu 16.04.md
Created August 18, 2018 05:11 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@maniac787
maniac787 / tomcat conf
Created February 12, 2020 14:49
tomcat conf
<role rolename="manager-gui"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>
select * from dba_network_acls order by acl, host;
select * from dba_network_acl_privileges order by acl, aclid, privilege;
BEGIN
DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE
(
host => '127.0.0.1',
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
If you ever want to restore the shortcuts, use:
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-left
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-right
-MATE
@maniac787
maniac787 / ReactProject.md
Last active September 14, 2020 15:21
ConfigureReactCodeNpm
@maniac787
maniac787 / keycloak-configure-mysql-database
Last active October 28, 2020 13:42
keycloak-configure-mysql-database
https://www.appsdeveloperblog.com/keycloak-configure-mysql-database/
SHOW VARIABLES LIKE 'validate_password%';
SET GLOBAL validate_password.policy=LOW;
SET GLOBAL validate_password.length=6;
crear usuario
CREATE USER 'dbadmin'@'%' IDENTIFIED BY 'qwe123';
@maniac787
maniac787 / Instalar Nginx + Flask
Created November 5, 2020 23:58
Instalar Nginx + Flask
sudo apt update
sudo apt install nginx
sudo systemctl status nginx
sudo systemctl restart nginx
sudo systemctl disable nginx
sudo systemctl enable nginx
@maniac787
maniac787 / Mongo as service
Last active November 7, 2020 01:15
Mongo as service
Unzip file
tar -xvzf mongodb-linux-x86_64-ubuntu2004-4.4.1
create log folder
create mongod.conf into mongo_home
#Data storage locations
storage:
dbPath: /home/roberto/data/