- Edit this files:
/var/cpanel/userdata/username/domain.tld
/var/cpanel/userdata/username/domain.tld_SSL
Change documentroot and scriptalias for cgi-bin
- (optional) Remove cache files:
// ==UserScript== | |
// @name YouTube InstantView customization | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Andrei Telteu | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== |
#!/bin/sh | |
# | |
# /etc/init.d/swoole-prod | |
# | |
# Example of init script for UNIX daemon | |
# | |
# chkconfig: 2345 20 80 | |
# description: Example of UNIX daemon | |
### BEGIN INIT INFO |
<script> | |
function disableBadInlineCode() { | |
$('style:contains("display: none!important")').each(function (i) { this.disabled = true; }); | |
}; | |
document.addEventListener('DOMContentLoaded', disableBadInlineCode, false); | |
setInterval(disableBadInlineCode, 1000); | |
</script> |
/var/cpanel/userdata/username/domain.tld
/var/cpanel/userdata/username/domain.tld_SSL
Change documentroot and scriptalias for cgi-bin
<div ng-app="GoogleMapsMarkerDemo"> | |
<!-- Usage --> | |
<div ng-repeat="marker in ['marker1', 'marker2', 'marker3']"> | |
<google-marker label="$index | indexToAlphabet"></google-marker> | |
</div> | |
<!-- You can have this svg as a separate file --> | |
<script type="text/ng-template" id="google-marker-template"> | |
<svg version="1.1" width="27px" height="43px" viewBox="0 0 27 43" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
UPDATE `core_config_data` | |
SET `value` = REPLACE(value, 'old-domain.com', 'new-domain.com') | |
WHERE `path` LIKE '%secure/base_url%' OR `path` = 'web/cookie/cookie_domain' | |
// with regex | |
UPDATE `subcategories` SET `name` = REGEXP_REPLACE(name,'^(.*)$','{"ro":"\\1","en":"\\1"}') |
Run command:
$ bash <(curl -L -s https://goo.gl/eax5A8)
<?php | |
function caesar_cipher_smart($shift, $input) { | |
$a = str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ'); | |
$p = str_split($input); | |
foreach ($p as &$v) | |
if (($k = array_search($v, $a)) !== false) { | |
$t = $k+$shift; | |
if ($t < 0) $t = count($a)+$t; | |
$v = $a[$t]; |
Just add this belongsToMany relations to your user model:
/*
* One user follows many users
*/