This file contains hidden or 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
use std::io::Write; | |
use anchor_lang::{prelude::*, solana_program::{entrypoint::ProgramResult}}; | |
/// Old state | |
#[account] | |
pub struct ConfigDeprecated { | |
pub initial_field: Pubkey, | |
} |
This file contains hidden or 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
echo '[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=syslog.target network.target | |
[Service] | |
User=mongodb | |
Group=mongodb | |
ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
[Install] |
This file contains hidden or 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
grep '((eval.*(base64_decode|gzinflate|\$_))|\$[0O]{4,}|FilesMan|JGF1dGhfc|IIIl|die\(PHP_OS|posix_getpwuid|Array\(base64_decode|document\.write\("\\u00|sh(3(ll|11)))' . -lroE --include=*.php* |
This file contains hidden or 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
------------------------------------------------- | |
-- DUMP CATEGORIES | |
-- Fields to be imported: 'ID', 'Active (0/1)', 'Name *', 'Parent category', 'Root category (0/1)', 'Description', 'Meta title', 'Meta keywords', 'Meta description', 'URL rewritten', 'Image URL', | |
------------------------------------------------- | |
SELECT a.id_category, a.active, b.name, c.name as parent_name, 0 as is_root, | |
b.description, b.meta_title, b.meta_keywords, b.meta_description, b.link_rewrite, "" as image_url | |
FROM ps_category AS a | |
JOIN ps_category_lang AS b ON a.id_category = b.id_category | |
LEFT JOIN ps_category_lang AS c ON a.id_parent = c.id_category |
This file contains hidden or 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
// npm install --save-dev gulp gulp-sass gulp-autoprefixer gulp-minify-css gulp-notify gulp-jshint gulp-concat gulp-rename gulp-uglify gulp-livereload gulp-imagemin gulp-cache | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
prefix = require('gulp-autoprefixer'), | |
minifycss = require('gulp-minify-css'), | |
notify = require('gulp-notify'), | |
jshint = require('gulp-jshint'), | |
concat = require('gulp-concat'), | |
rename = require('gulp-rename'), | |
uglify = require('gulp-uglify'), |