This file contains hidden or 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 mysql = require('mysql'); | |
const dotenv = require("dotenv"); | |
dotenv.config() | |
const env = process.env; | |
var connection = mysql.createConnection({ | |
host : env.host, | |
user : env.user, | |
password : env.password, | |
database : env.database |
This file contains hidden or 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
console.log( (![] + [])[+[]] + (![] + [])[+!+[]] + | |
([![]] + [][[]])[+!+[] + [+[]]] + (![] + [])[!+[] + !+[]]) |
This file contains hidden or 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
- login to jenkins box (ssh) | |
- switch user to jenkins "sudo su -s /bin/bash jenkins" | |
- go to jenkins home directory "cd ~" | |
- generate keys (you need separate pair per github private project as the projects are on the same domain) | |
- "ssh-keygen -t rsa -f ~/.ssh/id_rsa_<project>" (replace <project> with your project name) | |
- repeat this for every github project | |
- crate "config" file in .ssh dir - "vim ~/.ssh/config" with the following content: | |
# <project1> | |
Host github.com-<project1> | |
HostName github.com |
This file contains hidden or 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
- login to jenkins box (ssh) | |
- switch user to jenkins "sudo su -s /bin/bash jenkins" | |
- go to jenkins home directory "cd ~" | |
- generate keys (you need separate pair per github private project as the projects are on the same domain) | |
- "ssh-keygen -t rsa -f ~/.ssh/id_rsa_<project>" (replace <project> with your project name) | |
- repeat this for every github project | |
- crate "config" file in .ssh dir - "vim ~/.ssh/config" with the following content: | |
# <project1> | |
Host github.com-<project1> | |
HostName github.com |
This file contains hidden or 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
<?php | |
// Buffer all upcoming output... | |
ob_start(); | |
// Send your response. | |
echo "Testing response"; | |
// Get the size of the output. | |
$size = ob_get_length(); |
This file contains hidden or 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
// original from:https://codepen.io/mdd/pen/wGRqbw | |
// Reducer | |
const counter = (state = 0, actions) => { | |
switch (actions.type) { | |
case 'INCREMENT': return state + 1; | |
case 'DECREMENT': return state - 1; | |
default: return state | |
} | |
} |
This file contains hidden or 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
# /etc/systemd/system/rclone.service | |
[Unit] | |
Description=Google Drive (rclone ming) | |
AssertPathIsDirectory=/home/ming/Drive | |
After=plexdrive.service | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/rclone mount \ | |
--allow-other \ |
This file contains hidden or 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
let body = { | |
"nombre" : "Lucas Joel", | |
"apelidos" : "Juarez Jocon", | |
"telefono" : "45435345", | |
"direccio": "4 calle zona 1", | |
"fechacumple": "2021-01-01", | |
"nit": "5345435", | |
"cui": "555555", | |
"email": "[email protected]", | |
"username": "[email protected]", |
This file contains hidden or 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
Root: ${Root} | |
Local: ${LocalEnvironment} | |
Environment: ${Environment} | |
ExceptionList: ${ExceptionList} | |
TRUNCATE table db2was.esb_logging IMMEDIATE |
This file contains hidden or 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
id | nombre | |
---|---|---|
1 | Acatempa | |
2 | Acatenango | |
3 | Agua Blanca | |
4 | Aguacatan | |
5 | Almolonga | |
6 | Alotenango | |
7 | Amatitlan | |
8 | Antigua Guatemala | |
9 | Asuncion Mita |