This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Install PHP 7.1 on CentOS 7.3 64Bits | |
### http://www.shaunfreeman.name/compiling-php-7-on-centos/ | |
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ | |
yum -y install git gcc gcc-c++ libxml2-devel pkgconfig openssl-devel bzip2-devel curl-devel libpng-devel libjpeg-devel | |
yum -y install libXpm-devel freetype-devel gmp-devel libmcrypt-devel mariadb-devel aspell-devel recode-devel libpqxx-devel | |
yum -y install autoconf bison re2c libicu-devel libwebp-devel wget unzip net-tools libc-client-devel libpng12-devel | |
yum -y install libxslt-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
root /home/${OZZPY_DOMAIN}/www/public; | |
index index.php index.html index.htm; | |
server_name ${OZZPY_DOMAIN} www.${OZZPY_DOMAIN}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
LANGUAGE=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
LC_TIME=en_US.UTF-8 | |
LC_MONETARY=en_US.UTF-8 | |
LC_CTYPE=en_US.UTF-8 | |
LC_ADDRESS=en_US.UTF-8 | |
LC_TELEPHONE=en_US.UTF-8 | |
LC_NAME=en_US.UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$username = posix_getpwuid(posix_geteuid())['name']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.stuff.app.crypto | |
import javax.crypto.Cipher | |
import javax.crypto.spec.SecretKeySpec | |
import javax.crypto.SecretKey; | |
class Crypto { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* addProductWoo - approved | |
*/ | |
if( $_filter && $_filter=='addProductWoo' ) { | |
$id = isset( $_dataPost['id']) ? $_dataPost['id'] : null; | |
try { | |
$productId = $decrypto->block(base64_decode($id)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
function copyImages(sourcePath, targetPath, images) { | |
for (const icon of images) { | |
let source = sourcePath + icon.source; | |
let target = targetPath + icon.target; | |
fs.copyFile(source, target, err => { | |
if (err) throw err; | |
console.log(`${source} >> ${target}`); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"value": "001", | |
"label": "Banco do Brasil S.A." | |
}, | |
{ | |
"value": "003", | |
"label": "Banco da Amazônia S.A." | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import {Observable, Subject} from 'rxjs'; | |
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http'; | |
import {environment} from '../../../environments/environment'; | |
import {Storage} from '@ionic/storage'; | |
import {TagsModel} from '../_models/tags.model'; | |
import {map} from 'rxjs/operators'; | |
import {API_PUBLIC, API_TAGS} from '../_server'; | |
@Injectable({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { Routes, RouterModule } from '@angular/router'; | |
import { TabsPage } from './tabs.page'; | |
import {SeeLaterPage} from '../see-later/see-later.page'; | |
import {SectionsPage} from '../sections/sections.page'; | |
import {FavoritesPage} from '../members/favorites/favorites.page'; | |
import {PostPage} from '../members/post/post.page'; | |
import {HomePageModule} from '../home/home.module'; | |
import {SeeLaterPageModule} from '../see-later/see-later.module'; |
OlderNewer