-
pg_dump is a nifty utility designed to output a series of SQL statements that describes the schema and data of your database. You can control what goes into your backup by using additional flags.
Backup:pg_dump -h localhost -p 5432 -U postgres -d mydb > backup.sql
Restore:
psql -h localhost -p 5432 -U postgres -d mydb < backup.sql
-h is for host.
-p is for port.
-U is for username.
-d is for database.
REF https://docs.gitlab.com/runner/install/
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
yum list gitlab-runner --showduplicates | sort -r // show all version.
yum install gitlab-runner
yum install gitlab-runner-{13.0.2-1}
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
/* | |
1) Open https://popcat.click | |
2) Open console (F12) | |
3) Insert code & run | |
*/ | |
var event = new KeyboardEvent('keydown', { | |
key: 'g', | |
ctrlKey: true |
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
stages: | |
- build | |
- publish | |
.build: &build_template | |
stage: build | |
image: microsoft/dotnet:2.1-sdk-alpine | |
cache: | |
key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME" | |
paths: |
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
public class Global : HttpApplication | |
{ | |
void Application_Start(object sender, EventArgs e) | |
{ | |
// Code that runs on application startup | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); | |
TimeSpan intervalTimespan = TimeSpan.FromSeconds(30); | |
Task.Factory.StartNew(() => { |
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
public class Global : HttpApplication | |
{ | |
void Application_Start(object sender, EventArgs e) | |
{ | |
// Code that runs on application startup | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); | |
TimeSpan intervalTimespan = TimeSpan.FromSeconds(30); | |
Task.Factory.StartNew(() => { |
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
--create or replace procedure cistp.PRC_ASSIGN_WORKJOB is | |
declare | |
vn_assign_lvl number := 0; | |
vc_empid varchar2(200) := ''; | |
vn_roundno number := 0; | |
cursor c_job | |
is | |
select j.jobid | |
from jobs j |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WEB.ATS.Pages.Job.WebForm1" %> | |
<%@ Register Assembly="DevExpress.Web.v18.2, Version=18.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> |
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
version: '3' | |
services: | |
prometheus: | |
image: prom/prometheus:latest | |
volumes: | |
- ./etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml | |
command: | |
- '--config.file=/etc/prometheus/prometheus.yml' | |
ports: | |
- '9090:9090' |
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
import { Injectable } from '@angular/core'; | |
import { environment } from '../../../environments/environment'; | |
import { Headers, Http, Response, URLSearchParams } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/catch'; | |
import 'rxjs/add/operator/toPromise'; | |
import 'rxjs/add/operator/finally'; | |
import 'rxjs/add/observable/throw'; | |
import { throwError } from 'rxjs'; |
NewerOlder