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 | |
function callback() { | |
echo 'callback ...'; | |
} | |
pcntl_signal(SIGTERM, 'callback'); | |
pcntl_signal(SIGINT, 'callback'); |
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
git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" | |
git checkout pr/2 |
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 Rpm | |
{ | |
const FILED_SEPARATOR = ';;;'; | |
const ROW_SEPARATOR = '|||'; | |
public function listPackages() | |
{ | |
$parameters = array('name', 'version', 'packager'); |
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
anchour: | |
connections: | |
ftp_server: | |
type: "ftp" | |
options: | |
host: %ftp_host% | |
username: %ftp_username% | |
password: %ftp_password% | |
commands: |
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 | |
# ---- | |
# | |
# Script de backup serveur perso vers serveur distant | |
# Fonctionnemenent : | |
# 1. Targz de /var/www | |
# 2. Dump de toutes les bases de données MySql | |
# 3. Zip du backup courant avec protection par mot de passe | |
# 4. Envoi sur serveur distant |
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
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var babelify = require('babelify'); | |
var del = require('del'); | |
var source = require('vinyl-source-stream'); | |
var _ = require('lodash'); | |
var extReplace = require('gulp-ext-replace'); | |
var less = require('gulp-less'); | |
var gulpMerge = require('merge-stream'); | |
var ngTemplates = require('gulp-ng-templates'); |
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
// Probably a file in core-data module | |
/** | |
* WordPress dependencies | |
*/ | |
import { createContext, useContext } from '@wordpress/element'; | |
import { useSelect, useDispatch } from '@wordpress/data'; | |
const PostEntityContext = createContext( null ); | |
const SiteEntityContext = createContext( null ); |
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
const { createElement: el, useState, useEffect } = React; | |
const PanelBody = wp.components.PanelBody; | |
const PluginSidebar = wp.editor.PluginSidebar; | |
const addAction = wp.hooks.addAction; | |
const registerPlugin = wp.plugins.registerPlugin; | |
function MyPluginSidebar() { | |
const [ deprecations, setDeprecations ] = useState( [] ); | |
useEffect( () => { | |
addAction( |