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 | |
$full_url = "//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title>Install searchplugins</title> | |
<script type="text/javascript"> | |
function installSearchPlugin(pluginname) { |
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 | |
// insert here your Bot API token | |
define("BOT_TOKEN", "..."); | |
$content = file_get_contents("php://input"); | |
$update = json_decode($content, true); | |
if(!$update) | |
{ | |
exit; | |
} | |
$message = isset($update['message']) ? $update['message'] : ""; |
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
#!/bin/sh | |
############ | |
# The following script is to help automate deployment of hugo sites on github pages. | |
# If you're just getting started, I recommend reading my full notes here: | |
# https://www.romandesign.co/setting-up-a-hugo-static-site-on-github/ | |
# | |
# To run it, make sure you have made some site updates to deploy and via terminal in your backend and save the code in your hugo backend repo. | |
# Then type the following (no $): | |
# |
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
<html> | |
<head> | |
<title>RSS Feed Reader</title> | |
</head> | |
<body> | |
<?php | |
//Feed URLs | |
$feeds = array( | |
"http://maxburstein.com/rss", | |
"http://www.engadget.com/rss.xml", |
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
#!/bin/bash | |
# http://stackoverflow.com/questions/3679296/only-get-hash-value-using-md5sum-without-filename | |
md5HASH=($(md5sum www/app/js/bundle.js| cut -d ' ' -f 1)) | |
cp www/app/js/bundle.js www/app/js/bundle-$md5HASH.js; | |
# store in variable in file | |
echo "<?php define('HASH_EXT', '$md5HASH'); ?>" > www/app/inc/hash-bundle.php; |
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
// ==UserScript== | |
// @name DisneyPlus on Ubuntu | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Set custom navigator.userAgent | |
// @author Andrea Ganduglia - Based on https://gist.github.com/moehlone/bed7dd6cb38fc55bd640 | |
// @match https://www.disneyplus.com/* | |
// @grant none | |
// ==/UserScript== |
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
#!/bin/sh | |
# Author : Wang Poh Peng | |
# Description : Use FFMPEG to download videos into mkv or mp4 format | |
RED='\033[1;31m' | |
NC='\033[0m' # No Color | |
GREEN='\033[0;32m' | |
CYAN='\033[0;36m' |
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
/* userChrome.css can change the Firefox UI. | |
For details, see https://www.userchrome.org/ | |
Instructions | |
------------ | |
Save it to your Firefox 'Profile Folder'. To find that folder: | |
enter about:support in the Firefox address bar and look for it in the list. | |
Save this file to that folder. Then tell Firefox to load it: | |
enter about:config in the address bar, and search for userprof | |
and if that setting exists, set the following value to true: |
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
# This sample template explores how we can turn the Telegram blog post on the left into an Instant View page as shown on the right — in several simple steps. If you're unsure what some of the elements used here do, check out the full documentation here: https://instantview.telegram.org/docs | |
# Place the version at the beginning of template. We recommend always using the latest available version of Instant View. | |
~version: "2.0" | |
### STEP 1: Define which pages get Instant View and which don't | |
# That's easy because we only need IV pages for posts on the Telegram blog. | |
# This *condition* does the trick. | |
# ?path: /blog/.+ |
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
#!/bin/sh | |
# @author: Alexandre Plennevaux | |
# @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP | |
# | |
# FTP LOGIN | |
HOST='sftp://ftp.domain.com' | |
USER='ftpusername' | |
PASSWORD='ftppassword' | |
# DISTANT DIRECTORY |
OlderNewer