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
#!/bin/bash | |
## | |
# Script which let's you gather some basic information about your SSL certificate | |
## | |
## Instructions | |
## wget https://gist.github.com/saviour123/cfb52d09883649296ed664e7f61e2ceb | |
## bash ssl domain.com | |
## |
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
-- | |
-- Created by IntelliJ IDEA. | |
-- User: jackisback | |
-- Date: 15/04/2021 | |
-- Time: 23.20 | |
-- To change this template use File | Settings | File Templates. | |
-- | |
-- Reference: | |
-- https://github.com/openresty/lua-nginx-module#data-sharing-within-an-nginx-worker | |
-- This module needs to be loaded by the `require()` builtin like this: |
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
```shell script | |
$ bumpversion --current-version 1.0.0 minor setup.py | |
$ rm -rf {build,dist}/* && python setup.py sdist bdist_wheel | |
$ twine check dist/* | |
$ twine upload dist/* | |
``` |
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
# GAIA: | |
# https://github.com/MTG/gaia/blob/master/README.md | |
# ESSENTIA: | |
# https://github.com/MTG/homebrew-essentia | |
# https://essentia.upf.edu/installing.html | |
# Will create `Brewfile` wil all currently installed taps and packages | |
# After this process wou might want to use it it reinstall what was already there before |
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
#!/bin/bash | |
#PATHS | |
RSYNC="/usr/bin/rsync" | |
SRC="/mnt/storage/data/FOLDER_TO_BACKUP" # !!!NO TRAILING SLASH PLEASE!!! | |
DST="/mnt/autofs/WD-BACKUP-RW/AdamJakab/FOLDER_TO_BACKUP" # !!!NO TRAILING SLASH PLEASE!!! | |
# SET UP VARIABLES FOR CP | |
RSYNC_PATH_SRC="${SRC}/" | |
RSYNC_PATH_DST="${DST}/" |
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
<?php | |
/** | |
* Created by Adam Jakab. | |
* Date: 06/03/17 | |
* Time: 12.43 | |
*/ | |
namespace Agora\Alter\Form\Id; | |
use Mekit\Drupal7\HookInterface; |
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
/** | |
* Add beans to prospect list | |
*/ | |
protected function action_addToProspectList() { | |
global $beanList; | |
$answer = [ | |
'STATUS' => 'UNKNOWN', | |
'ERRORS' => [], | |
'REQUEST' => $_REQUEST, | |
]; |
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
<?php | |
/** | |
* Enable barcode field handling for Feeds | |
* | |
* Implements hook_feeds_processor_targets_alter(). | |
* @param array &$targets | |
* Array containing the targets to be offered to the user. Add to this array | |
* to expose additional options. |
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
<?php | |
require_once 'include/utils/progress_bar_utils.php'; | |
/** | |
* Class progress_bar_utilsTest | |
*/ | |
class progress_bar_utilsTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testprogress_bar_flush() |
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
<?php | |
error_reporting(E_ALL); | |
ini_set("display_errors",1 ); | |
$socket_context = stream_context_create([]); | |
$timeout = 30; | |
$errno = 0; | |
$errstr = ''; |
NewerOlder