Bash script which will:
- Iterate all commits made within a Git repository.
<?php | |
namespace App\Console\Commands; | |
use Exception; | |
use Throwable; | |
use Illuminate\Queue\Worker; | |
use Illuminate\Console\Command; | |
use Illuminate\Contracts\Queue\Job; | |
use Illuminate\Queue\WorkerOptions; |
import { NgbDatepickerConfig, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap'; | |
import { NgbDateFRParserFormatter } from "./ngb-date-fr-parser-formatter" | |
@Component({ | |
providers: [{provide: NgbDateParserFormatter, useClass: NgbDateFRParserFormatter}] | |
}) | |
export class AppComponent {} |
It "types" the contents of the clipboard.
Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.
The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.
## CRONTAB HINTS AND TIPS | |
## | |
## | |
## Entry Description Equivalent To | |
## @yearly (or @annually) Run once a year at midnight in the morning of January 1 0 0 1 1 * | |
## @monthly Run once a month at midnight in the morning of the first of the month 0 0 1 * * | |
## @weekly Run once a week at midnight in the morning of Sunday 0 0 * * 0 | |
## @daily Run once a day at midnight 0 0 * * * | |
## @hourly Run once an hour at the beginning of the hour 0 * * * * | |
## @reboot Run at startup @reboot |
#!/bin/bash | |
# Script to generate an mpc playlist containing up-to-date BBC stream | |
# locations. This can be run every hour or so as a cronjob to keep | |
# the non-static BBC streams working. My version differs from the | |
# ones I've seen online in that each stream is added to a single | |
# playlist, rather than individual playlist files. This makes it | |
# easier to use with MPoD and via command line with "mpc play 4" for | |
# Radio 4. |
@Component | |
@Profile("untrusted") | |
public class SelfSignedTrustCertConfigurer { | |
private final static Logger logger = LoggerFactory.getLogger(SelfSignedTrustCertConfigurer.class.getName()); | |
@PostConstruct | |
public void allowUntrustedCerts() { | |
HostnameVerifier hv = new HostnameVerifier() { | |
public boolean verify(String urlHostName, SSLSession session) { |
#!/bin/sh | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
<?php | |
// ADD NEW ADMIN USER TO WORDPRESS | |
// ---------------------------------- | |
// Put this file in your Wordpress root directory and run it from your browser. | |
// Delete it when you're done. | |
require_once('wp-blog-header.php'); | |
require_once('wp-includes/registration.php'); | |
// ---------------------------------------------------- |
// Copyright (c) 2015, Brad Conte (http://bradconte.com) | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// * Redistributions of source code must retain the above copyright | |
// notice, this list of conditions and the following disclaimer. | |
// * Redistributions in binary form must reproduce the above copyright | |
// notice, this list of conditions and the following disclaimer in the | |
// documentation and/or other materials provided with the distribution. |