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 | |
# Destiny folder where backups are stored | |
DEST=/tmp/bacula/server01 | |
CURRDATE=$(date +"%F") | |
# Hostname where MySQL is running | |
HOSTNAME="srv-mysql" | |
# User name to make backup | |
USER="root" |
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
(function () { | |
if(document.location.hostname !== "web.telegram.org") { | |
alert("This script can only be used on web.telegram.org"); | |
return; | |
} | |
if (!document.querySelector("[ng-bind=\"stickerset.title\"]")) { | |
var smInfo = `Sticker modal not open! Please open the sticker modal before continuing. | |
Example: | |
https://t.me/addstickers/LoZTriforceHeroes |
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
$conf['cache'] = 0; // Page cache | |
$conf['page_cache_maximum_age'] = 0; // External cache TTL | |
$conf['preprocess_css'] = FALSE; // Optimize css | |
$conf['preprocess_js'] = FALSE; // Optimize javascript | |
$conf['views_skip_cache'] = TRUE; // Views caching |
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
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
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 | |
// Basics | |
// Get a value. | |
$value = $wrapper->field_x->value(); | |
// If the field is a reference field you will get the field object | |
// To get the wrapper back use: | |
$wrapper_b = $wrapper->field_ref; | |
// To set a value. |
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
Assuming the username of the Ubuntu user is "ubuntu". | |
Preparation | |
----------- | |
``` | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential libtool autotools-dev autoconf pkg-config libssl-dev libevent-dev |
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 cURL { | |
var $headers; | |
var $user_agent; | |
var $compression; | |
var $cookie_file; | |
var $proxy; | |
function cURL($cookies=TRUE,$cookie='cookies.txt',$compression='gzip',$proxy='') { | |
$this->headers[] = 'Accept: image/gif, image/x-bitmap, image/jpeg, image/pjpeg'; | |
$this->headers[] = 'Connection: Keep-Alive'; |