Skip to content

Instantly share code, notes, and snippets.

View appwebd's full-sized avatar
🎱
Eyes on fire (skeler remix)

Patricio Rojas appwebd

🎱
Eyes on fire (skeler remix)
  • Chile
View GitHub Profile
@appwebd
appwebd / setup-atom-plugins.sh
Last active February 2, 2018 19:17
Bash script to install plugins in IDE atom editor application
#!/bin/bash
apm install atom-beautify
apm install atom-minify
#apm install autocomplete-paths
apm install busy
apm install busy-signal
apm install chronometer
apm install color-picker
apm install editorconfig
apm install emmet
@appwebd
appwebd / dir_remove_tabs.pl
Created February 2, 2018 19:20
change tabs for spaces in all files undere a directory
#!/usr/bin/perl -w
#+------------------------------------------------------------------------+
#| Filename: dir_remove_tabs.pl |
#| Authors : Patricio Rojas Ortiz - patricio-rojaso@outlook.com |
#| Purpose : Recorre todos los directorios desde la ruta actual y cambia |
#| todos los tabs por cuatro espacios en blanco en todos los |
#| archivos php|js|css|perl |
#| |
#| Platform: Linux |
#| Packages: No additional packages/libraries are required |
@appwebd
appwebd / firefox-dev-update.sh
Last active February 5, 2021 14:43
[crontab Update latest version of firefox developer edition] Just when things become interesting, the browser says you should update it. This script can be set in Cron Job. #firefox #developer #update
#!/bin/bash
#
# Download mozilla developer, and install it firefox-developer Edition : /usr/local/firefox
#
cd /tmp
/usr/bin/wget -O "firefox.tar.bz2" "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=es-CL" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
rm -rf /opt/firefox
cd /opt/firefox
tar jxvf /tmp/firefox.tar.bz2
@appwebd
appwebd / gist:5a13e4e9091abf476aca84a29aff445e
Last active July 22, 2021 17:45
[Encriptar / desencriptar AES-256-CBC en kumbiaPHP] #Encrypt & #Decrypt #php
// En archivo de configuración kumbiaPHP default/app/config
//
// crear la variable secret_iv bajo authentication, por ejemplo:
//
// [authentication]
// secret_key = "z?&vbX$4\N`}@vo=~)\?eBFyc&;J.Nx-58/dU8\)"
// copy/paste este código para un controlador de acceso global
//
const ENCRYPT_METHOD = 'AES-256-CBC';
const SECRET_IV = 'MAPt=&L3>*m@=K;UyU`2fGcT\e[#{LiUha@_/yF%';
@appwebd
appwebd / index.html
Last active February 16, 2021 18:01
[Home page (desktop)] Workflow of development web applications PHP / MySQL #workflow #developer #php
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style>
.black{background-color:black; color:white; }
@appwebd
appwebd / git-changetlog-get.sh
Created February 5, 2021 14:25
[git get CHANGELOG] Get the CHANGELOG file from git #bash #gitlab #github #git
#!/bin/bash
# author : Patricio Rojas Ortiz
# Purpose: Get the CHANGELOG file from gi
# Usage : In the DCL git-changelog-get.sh
git log --oneline --format="%h %cd %s" > CHANGELOG
@appwebd
appwebd / git-commit-a-and-git-push.sh
Created February 5, 2021 14:28
[git commit and git push] Perform a git commit and git push in console bash #git #bash #github #gitlab
#!/bin/bash
# author : Patricio Rojas Ortiz
# Purpose: Perform a git commit and git push in console bash
# Usage : In the DCL git-commit-and-git-push.sh
git log --oneline --format="%h %cd %s" > CHANGELOG
sync
sync
git commit -a -S
git push
@appwebd
appwebd / git-create-a-new-repository.sh
Created February 5, 2021 14:35
[git create a new repository] Perform a git create a new repository in console bash #bash #git #gitlab #github
#!/bin/bash
# author : Patricio Rojas Ortiz
# Purpose: Perform a git create a new repository in console bash
# Usage : In the DCL git-create-a-new-repository.sh clients/project1 folder-versioned
# Note : CHANGE CHANGE the name git@gitlab.local.lab with your git server name.
git clone git@gitlab.local.lab:$1/$2.git
cd bin
touch README.md
git add README.md
@appwebd
appwebd / git-existing-folder.sh
Created February 5, 2021 14:38
[git existing folder] Perform a git with existing folder in console bash #bash #git #gitlab #github
#!/bin/bash
# author : Patricio Rojas Ortiz
# Purpose: Perform a git with existing folder in console bash
# Usage : In the DCL git-existing-folder.sh clients/project1 folder-versioned
# Note : CHANGE CHANGE the name git@gitlab.local.lab with your git server name.
git init
git remote add origin git@gitlab.local.lab:$1/$2.git
git add .
git commit -m "Initial commit"
@appwebd
appwebd / git-existing-git-repository.sh
Created February 5, 2021 14:41
[git existing git repository] Perform a git with existing git repository in console bash #bash #git #gitlab #github
#!/bin/bash
# author : Patricio Rojas Ortiz
# Purpose: Perform a git with existing git repository in console bash
# Usage : In the DCL git-existing-git-repository.sh clients/project1 folder-versioned
# Note : CHANGE CHANGE the name git@gitlab.local.lab with your git server name.
git remote rename origin old-origin
git remote add origin git@gitlab.local.lab:$1/$2.git
git push -u origin --all
git push -u origin --tags