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
#Remover imagens desnecessárias | |
docker rmi $(sudo docker images --filter "dangling=true" -q --no-trunc) |
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
<project> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<executions> | |
<execution> | |
<goals> |
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
// https://stackoverflow.com/questions/12505141/only-using-jsonignore-during-serialization-but-not-deserialization | |
// Use @JsonIgnore on class member and its getter. Use @JsonProperty on its setter. | |
class User{ | |
// More fields here | |
@JsonIgnore | |
private String password; | |
@JsonIgnore |
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
/** | |
* Source: https://github.com/PimpTrizkit/PJs/wiki/12.-Shade,-Blend-and-Convert-a-Web-Color-(pSBC.js) | |
Usage: | |
// Shade (Lighten or Darken) | |
pSBC ( 0.42, color1 ); // rgb(20,60,200) + [42% Lighter] => rgb(166,171,225) | |
pSBC ( -0.4, color5 ); // #F3A + [40% Darker] => #c62884 | |
pSBC ( 0.42, color8 ); // rgba(200,60,20,0.98631) + [42% Lighter] => rgba(225,171,166,0.98631) | |
*/ | |
static pSBC(p, c0, c1, l) { | |
let pSBCr = function (d) { |
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
/* | |
Download all books from https://books.goalkicker.com/ | |
*/ | |
var a = document.getElementsByClassName('bookContainer'); | |
a = Array.from(a); | |
var links = a.map((item) => item.children[0]); |
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
/* | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
*/ | |
/// <summary> | |
/// <para> | |
/// Sources: | |
/// <para>https://stackoverflow.com/questions/358700/how-to-install-a-windows-service-programmatically-in-c </para> |
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
public class AsyncTask<T> | |
{ | |
private BackgroundWorker _worker; | |
public bool Success { get; private set; } | |
public Exception Error { get; private set; } | |
public T Data { get; set; } | |
public bool WaitingCancelation { get | |
{ |
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
javascript: (function () { | |
appPath = 'https://savevideo.me/pt/'; | |
function redirect (){ | |
var url = window.location.href; | |
if(url.indexOf("embed") == -1) | |
{ | |
var position = url.indexOf(".com/") + 5; | |
url = [url.slice(0, position), "embed/", url.slice(position)].join(''); |
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
public class Crypt | |
{ | |
public string SHA1(string input) | |
{ | |
using (SHA1Managed sha1 = new SHA1Managed()) | |
{ | |
var hash = sha1.ComputeHash(Encoding.UTF8.GetBytes(input)); | |
var sb = new StringBuilder(hash.Length * 2); |
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
using SharpConfig; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FolderScannerClassLibrary | |
{ | |
public class ConfigManager |