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
$scope.startPlay = function() { | |
if (media == null) { | |
media = $cordovaMedia.newMedia(src, null, null, null); | |
} | |
media.play(); | |
} | |
$scope.stopPlay = function() { | |
media.release(); | |
media = null; |
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
C:\e-SUS-AB\e-SUS-AB PEC\PostgreSQL\9.3\bin>pg_dump.exe -i -h localhost -p 5433 | |
-U postgres -F c -b -v -f C:\Users\Public\bkp\bkp.backup esus | |
@echo off | |
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do ( | |
set dow=%%i | |
set month=%%j | |
set day=%%k | |
set year=%%l |
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
# My custom host | |
<VirtualHost projeto_pos.local:80> | |
ServerName projeto_pos.local | |
DocumentRoot "/Applications/XAMPP/htdocs/projeto_pos/public" | |
<Directory "/Applications/XAMPP/htdocs/projeto_pos/public"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
#Allow from all | |
Require all granted | |
</Directory> |
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
app.service('AudioSvc', [function($ionicPopup) { | |
var AudioSvc = { | |
my_media: null, | |
mediaTimer: null, | |
playAudio: function(src, cb) { | |
var self = this; | |
// stop playing, if playing | |
self.stopAudio(); |
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
FOR /F "tokens=1-4 DELIMS=/ " %%F IN ('date /T') DO (set v_date=%%F%%G%%H) | |
FOR /F "tokens=1-4 DELIMS=: " %%F IN ('time /T') DO (set v_time=%%F%%G%%H) | |
set mysqldump="C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe" | |
set homedir="C:\MySQLWinBackup\" | |
set fname=%v_date%_%v_time%.sql | |
echo %vdate% %v_time% - %fname% | |
cd %homedir% | |
%mysqldump% --add-drop-table --skip-lock-tables -h localhost --user=root --password=qwe123 oc > %homedir%oc_%fname% |
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
[{ | |
"properties": { | |
"Name": "Northern Terminus of the PCT", | |
"placa": "MDA8181", | |
"cliente": "poi" | |
}, | |
"geo": { | |
"title": "Monte Carlo", | |
"type": "Point", | |
"coords": [-27.2223943, -50.9758246] |
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
c>hostname | |
c>line console 0 | |
c>password # | |
c>login | |
c>enable secret class | |
c>service password-enc | |
c>line console vty 0 15 |
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
rem ## Enter your IPv4 DNS Server IP addresses where indicated and run script with administrative privileges. | |
@ECHO OFF | |
set nomePlaca="Ethernet" | |
set vardns1=208.67.222.123 | |
set vardns2=208.67.220.123 | |
ECHO Setting Primary DNS |
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/sh | |
#Backups do Endian em uma unidade de rede | |
#Por Rafael Barzotto | |
#sed -i -e 's/\r$//' endianbkp.sh | |
USUARIO="bkpefw" | |
SENHA="qwe123" | |
SERVIDOR="192.168.250.100" | |
COMPARTILHAMENTO="bkpefw" |
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
show variables like 'bind%'; | |
sudo nano /etc/mysql/my.cnf | |
bind-address = 0.0.0.0 | |
sudo /etc/init.d/mysql restart | |
mysql -uroot -p[senha] | |
mysql> GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY '[senha]' WITH GRANT OPTION; | |
Caso queira conceder acesso a uma máquina específica da rede: |
OlderNewer