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 sys, paramiko | |
# help src: https://stackoverflow.com/a/48826690 , https://gist.github.com/mlafeldt/841944#file-ssh_demo-py | |
hostname = "10.10.01.01" | |
password = "pass" | |
command = "ps aux |grep python" | |
username = "userme" | |
port = 22 |
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"?> | |
<project version="4"> | |
<component name="PhpIncludePathManager"> | |
<include_path> | |
<path value="$PROJECT_DIR$/revdash/vendor/zendframework/zend-eventmanager" /> | |
<path value="$PROJECT_DIR$/revdash/vendor/zendframework/zend-code" /> | |
<path value="$PROJECT_DIR$/revdash/vendor/webmozart/assert" /> | |
<path value="$PROJECT_DIR$/revdash/vendor/twig/twig" /> | |
<path value="$PROJECT_DIR$/revdash/vendor/symfony/yaml" /> | |
<path value="$PROJECT_DIR$/revdash/vendor/symfony/web-server-bundle" /> |
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
############################################################################################################### | |
# I've analysed the Spotify network. Assuming you are using a(n) (ad block) # | |
# hosts file on your computer or router, most advertisement site are already # | |
# blocked. If you find/spot a DNS entrie(s) that not listed yet please contact me # | |
# on twitter (@0xUID) or via blog (blogpirate.net). | |
# | |
# github link: https://raw.githubusercontent.com/x0uid/SpotifyAdBlock/master/hosts | |
# # | |
# Block Spotify Ads! # | |
# More info about this hosts file at # |
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
<?php | |
namespace App\Onstream; | |
class DateHelper | |
{ | |
public static function GetDaysRemaining($date_from,$date_to): float | |
{ |
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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /app/public/frontend/public | |
Header set Access-Control-Allow-Origin "*" | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory /app/public/backend/> | |
Options Indexes FollowSymLinks ExecCGI |
This bash script quickly does the backup of the wp-content
directory and uses the WPCLI command to export the database.
Place the script in the WordPress root directory and run sh bkup.sh
.
After the script executes an archive should be located in the WordPress root directory similar to this: site_wpcontent_bkup_12_30_2019.zip
.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Forbidden Site</title> | |
<meta charset="UTF-8"> | |
<style> | |
@import url(https://fonts.googleapis.com/css?family=Permanent+Marker); | |
@import url(https://fonts.googleapis.com/css?family=Roboto+Mono); | |
body,html{width:100%;height:100%;margin:0;padding:0}body{background:#f3e2cb;display:flex;flex-direction:column;align-items:center;align-content:center}.wrapper{height:100%;width:100%;display:flex;flex-direction:column-reverse;align-items:center;align-content:center;position:absolute;bottom:0;overflow:hidden}.wrapper:hover .sun{-webkit-transform:translateY(-200px);transform:translateY(-200px)}.pedastal{width:1000px;height:90px;background:#fff;position:relative}.pedastal-block1,.pedastal-block1::before{width:125px;height:30px;background:#a24d4c;box-sizing:border-box}.pedastal-block1::before{content:'';position:absolute;right:0}.pedastal-block2,.pedastal-block2::before{width:63px;height:30px;background:#a24d4c;box-sizing:border-box}.pedastal-block2::before{content:'';posit |
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
<?php | |
// place in app/src/Commmand/console_app.php | |
namespace App\Command; | |
use RedBeanPHP\RedException\SQL; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use App\Helper\Database; |