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
body, | |
div, | |
dl, | |
dt, | |
dd, | |
ul, | |
li, | |
h1, | |
h2, | |
h3, |
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( 'settings.php' ); | |
require( 'system.php' ); | |
$system = new System; | |
$system->db = $db; | |
$token = $system->secureField( $_POST["token"] ); | |
$breakfast = $system->secureField( $_POST["breakfast"] ); | |
$tzone = $system->secureField( $_POST["timezone"] ); | |
$time = time(); |
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
{% if results.currentPage > 1 %} | |
<li><a href="{{ results.previousPageUrl }}"><span uk-pagination-previous></span></a></li> | |
{% endif %} | |
{% set left = results.currentPage-5 %} | |
{% set right = results.currentPage+5 %} | |
{% if left > 5 %} | |
{% for page in 1..2 %} | |
<li> |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |
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 | |
class Shortcoder_Admin{ | |
private static $pagehook = 'settings_page_shortcoder'; | |
public static function init(){ | |
// Add menu | |
add_action( 'admin_menu', array( __class__, 'add_menu' ) ); |
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
var cheerio = require('cheerio'), | |
needle = require('needle'), | |
tress = require('tress'), | |
resolve = require('url'), | |
fs = require('fs'); | |
var targetURL = 'https://icobench.com/icos'; | |
var results = []; | |
var get_data = function (url, callback) { | |
needle.get(url, function (err, res) { |
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
#Insall Ajenti ubuntu 18.04 | |
apt-get update | |
wget http://repo.ajenti.org/debian/key -O- | apt-key add - | |
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list | |
apt-get update | |
# install python imaging | |
apt upgrade | |
apt-get install python-pillow | |
cd ~ | |
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pillow/python-imaging_4.1.1-3build2_all.deb |
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
#! /usr/bin/python | |
import os | |
import re | |
import subprocess | |
# 0 - sub | |
# 1 - headphones | |
status =0 | |
regex = r": values=(.+)" |
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 | |
$arr = [ | |
[ | |
'cat' = > [ | |
'id' => 0, | |
'name' => 'Cat1' | |
], | |
'posts':[ | |
[ | |
'id': 1, |
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
#~ | |
let a = { | |
meta: { | |
requiresAuth: true, | |
userAuth: true, | |
adminAuth: true | |
} | |
}; |
OlderNewer