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 { setupTypeOrmTestConnection } from '../integrationSetup'; | |
beforeAll(async () => { | |
console.log('AFTER ENV SETUP START'); | |
global.testConn = await setupTypeOrmTestConnection(+process.env.TEST_PG_PORT); | |
console.log('AFTER ENV SETUP DONE'); | |
}); | |
afterAll(async () => { | |
console.log('AFTER ENV TEARDOWN START'); |
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
require 'httparty' | |
def get_data | |
query = File.open('repos.graphql', 'r').read | |
token = 'https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/' | |
cursor = nil | |
repos = [] | |
org = 'evil_mega_corp' | |
loop do |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
http { | |
log_format bodylog '$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $body_bytes_sent ' | |
'"$http_referer" "$http_user_agent" $request_time ' | |
'<"$request_body" >"$resp_body"'; | |
lua_need_request_body on; | |
set $resp_body ""; | |
body_filter_by_lua ' |
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
First you have to ensure the Java JRE is installed on your system. | |
Remember the java plugin will only work on Firefox. If you prefer to install from fedora/rhel repos: | |
sudo dnf (yum) install java-1.8.0-openjdk icedtea-web | |
download the snx script installer from the Checkpoint VPN page: | |
https://<your company vpn ip addr>/sslvpn/SNX/INSTALL/snx_install.sh | |
run int as root to install | |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"> | |
<persistence-unit name="order-old" transaction-type="RESOURCE_LOCAL"> | |
<class>model.Order</class> | |
<class>model.OrderLine</class> | |
<class>model.Customer</class> | |
<properties> | |
<!-- Change this to access your own database. --> |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.projectboard</groupId> | |
<artifactId>projectboard</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<name>Project Board</name> | |
<description>Project management dashboard.</description> |