Skip to content

Instantly share code, notes, and snippets.

View deksoke's full-sized avatar

taywan deksoke

View GitHub Profile
@deksoke
deksoke / db_backup_commands.md
Created February 9, 2023 04:34 — forked from AtulKsol/db_backup_commands.md
Commands to backup & restore database
  1. 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.

/*
1) Open https://popcat.click
2) Open console (F12)
3) Insert code & run
*/
var event = new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
@deksoke
deksoke / .gitlab-ci.yml
Created July 15, 2020 10:18 — forked from zerda/.gitlab-ci.yml
Gitlab CI for ASP.Net Core project
stages:
- build
- publish
.build: &build_template
stage: build
image: microsoft/dotnet:2.1-sdk-alpine
cache:
key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME"
paths:
var isPopupBlocked = function() {
var isBlocked,
popup = window.open('about:blank', 'popup_test','width=5, height=5, left=0, top=0');
// pop under
if(popup) popup.blur();
window.focus();
isBlocked = !popup || typeof popup == 'undefined' || typeof popup.closed=='undefined' || popup.closed || popup.innerHeight == 0;
if(popup) popup.close();