Skip to content

Instantly share code, notes, and snippets.

# su -s /bin/bash - o1.ftp -c "rvm all do gem install --conservative ffi"
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
current directory: /home/o1.ftp/.rvm/gems/ruby-2.6.0/gems/ffi-1.10.0/ext/ffi_c
/home/o1.ftp/.rvm/rubies/ruby-2.6.0/bin/ruby -I /home/o1.ftp/.rvm/rubies/ruby-2.6.0/lib/ruby/2.6.0 -r ./siteconf20190226-7366-1mlc5gw.rb extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_closure_alloc()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
W: GPG error: http://repo.percona.com/apt stretch InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/repo.percona.com_apt_dists_stretch_InRelease
W: The repository 'http://repo.percona.com/apt stretch InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://security.debian.org stretch/updates InRelease: Couldn't execute /usr/bin/apt-key to check /var/lib/apt/lists/partial/security.debian.org_dists_stretch_updates_InRelease
W: The repository 'http://security.debian.org stretch/updates InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ftp.osuosl.org/pub/mariadb/repo/10.1/debian stretch InRelease: Couldn't execute /usr/bin/apt-key
#######################################################
### nginx Grav CMS basic configuration start
#######################################################
###
### Add recommended HTTP headers
###
add_header Access-Control-Allow-Origin *;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
---start---
find /var/www/grav-onepage -type d -exec chmod 0755 {} \; &> /dev/null
find /var/www/grav-onepage -type f -exec chmod 0644 {} \; &> /dev/null
chown -R www72:www-data /var/www/grav-onepage
find /var/www/grav-onepage/bin -type d -exec chmod 02755 {} \; &> /dev/null
find /var/www/grav-onepage/bin -type f -exec chmod 0755 {} \; &> /dev/null
find /var/www/grav-onepage/tmp -type d -exec chmod 02775 {} \; &> /dev/null
http://example.com/admin/reports/status/run-cron?token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G&token=CRsXuGz9N6rBr9h3JzlyjQUOtra12EVmcH59HTPM02G
@pricejn2
pricejn2 / double_ip_test.py
Created February 26, 2017 05:56 — forked from dchaplinsky/double_ip_test.py
Simple scrapy spider to utilize bindaddress meta param
from scrapy.spider import BaseSpider
from scrapy.conf import settings
from scrapy.http import Request
from random import choice
class DoubleIPSpider(BaseSpider):
name = "double_ip_test"
allowed_domains = ["httpbin.org"]
@pricejn2
pricejn2 / 0_reuse_code.js
Created February 7, 2017 01:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@pricejn2
pricejn2 / 4ffd0b928327fe8b8edcadb94bedc2dc.html
Last active November 15, 2024 03:24
responsive ad unit with revive ad server
<div id="revive-responsive-top" style="display: block; text-align: center;">
<script type="text/javascript">
adUnit = document.getElementById("revive-responsive-top");
adWidth = adUnit.offsetWidth;
if ( adWidth >= 728 ) {
/* Leaderboard 728x90 */
adUnit.innerHTML = '<ins data-revive-zoneid="3" data-revive-id="4689b54ec658f530f3250f4124e7f1ea"></ins>';
} else {
@pricejn2
pricejn2 / gist:e47dbd6c41edcc38dc46
Last active March 3, 2016 17:00
enable error reporting local settings.php
<?php # local settings.php
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
ini_set('opcache.revalidate_freq', '1');
@pricejn2
pricejn2 / nginx_wordpress_include.conf
Last active March 7, 2017 19:29 — forked from omega8cc/gist:1677835
Wordpress nginx include file for BOA
#######################################################
### nginx.conf site wp vhost include start
#######################################################
###
### deny crawlers without 403 response
###
if ($http_user_agent ~* (HTTrack|HTMLParser|libwww|wget) ) {
return 444;
}