A fish oneliner to delete the latest workflow runs of a repo.
Install the GitHub CLI and replace <owner>/<repository> with your repository.
You can also change ?per_page=100 with the number of runs you want to delete.
A fish oneliner to delete the latest workflow runs of a repo.
Install the GitHub CLI and replace <owner>/<repository> with your repository.
You can also change ?per_page=100 with the number of runs you want to delete.
| # explicitly define host-ip mappings | |
| address=/myapp.local/172.16.1.2 | |
| # dnsmasq entries are always wildcard entries, so this maps both myapp.local and *.myapp.local | |
| # (yes, it's fine for this to be your entire dnsmasq config. the defaults are pretty sensible) |
| const nodeRSA = require('node-rsa'); | |
| /** | |
| * return the decrypted Data (RSA OAEP Encryption) | |
| * @param {string} RSAPrivateKey | |
| * @param {string} EncrypteDataBuffer | |
| * @returns {string} Data decrypted data | |
| */ | |
| var RSA_OAEP_Decrypt = function(RSAPrivateKey, EncrypteDataBuffer){ | |
| #!/bin/sh | |
| echo "This script is going to setup Node, NPM, pm2" | |
| echo "WARNING: The sudouser password will be prompted sometimes !" | |
| echo "==> Setup Node/NPM" | |
| curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
| sudo apt-get install -y nodejs | |
| node -v |
| # | |
| # based on: http://knowledgevoid.com/blog/2012/01/13/logging-the-correct-ip-address-using-apache-2-2-x-and-amazons-elastic-load-balancer/ | |
| # mod_evasive based on | |
| # https://www.linode.com/docs/websites/apache-tips-and-tricks/modevasive-on-apache | |
| # update cloudflare download link | |
| # make sure you're root | |
| sudo -i |
| Some Jenkinsfile examples |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log| "use strict"; | |
| const del = require("del"); | |
| const gulp = require("gulp"); | |
| const gulpsync = require("gulp-sync")(gulp); | |
| const gulpif = require("gulp-if"); | |
| const rename = require('gulp-rename'); | |
| const sourcemaps = require("gulp-sourcemaps"); | |
| const source = require("vinyl-source-stream"); | |
| const buffer = require("vinyl-buffer"); |
| <?php | |
| namespace Deployer; | |
| require 'recipe/laravel.php'; | |
| // Configuration | |
| set('ssh_type', 'native'); | |
| set('repository', '[REPO URL]'); | |
| set('branch', 'master'); | |
| set('keep_releases', 5); |