docker run --security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
-it --rm alpine:edge sh
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing buildah
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 MyTable | |
{ | |
protected $field_id; | |
protected $field_value; | |
/** | |
* MyTable constructor. | |
* @param $field_value |
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 | |
echo toKebabStyle("TestingConversion"); | |
function toKebabStyle($input) { | |
$result = preg_replace_callback( | |
'/([a-z])([A-Z])/', | |
function ($match) use ($input) { | |
return $match[1] . "-" . $match[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
git branch -a | grep remotes | xargs -l | cut -d"/" -f3 | xargs -l git checkout | |
git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset); %(color:red)%(objectname:short)%(color:reset); %(contents:subject); %(authorname); (%(color:green)%(committerdate:relative)%(color:reset))' | |
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
<!-- Start Audima Widget Injection --> | |
<div id="audimaWidget"></div> | |
<script src="//audio.audima.co/audima-widget.js"></script> | |
<!-- End Audima Widget Injection --> | |
<!-- Audima CSS Customization --> | |
<style> | |
#audimaWidget .audima-panel { | |
/* Insira aqui a customização exemplo: | |
background-color: silver; |
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
docker network create test | |
cat << EOF > master.conf | |
bind 0.0.0.0 | |
appendonly yes | |
appendfilename "appendonly.aof" | |
EOF | |
docker run -it --rm -v $PWD/master.conf:/etc/master.conf --name master --network test -d redis:6.2 redis-server /etc/master.conf |
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
// This will open up a prompt for text to send to a console session on digital ocean | |
// Useful for long passwords | |
(function () { | |
window.sendString = function (str) { | |
f(str.split("")); | |
function f(t) { | |
var character = t.shift(); | |
var i=[]; | |
var code = character.charCodeAt(); | |
var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/); |
OlderNewer