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
#!/usr/bin/ruby | |
require 'date' | |
start = Date.parse("2000-01-17") | |
(start..Date.today).each do |id| | |
url = "https://sinfest.xyz/btphp/comics/#{id.to_s}.gif" | |
puts url | |
system("wget #{url} -q") |
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
if(freeCluster == NO_FREE_SPACE){ | |
System.out.println("corre negada!"); | |
} |
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
class Integer | |
def multiplo_de_quatro? | |
self % 4 == 0 | |
end | |
def pim! | |
multiplo_de_quatro? ? "pim!" : "#{self}" | |
end | |
end |
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
#!/bin/sh | |
USER=johndoe | |
echo "[Running: $(date)]" >> /var/log/autoblock.log | |
grep -a -E -e 'Failed password for' /var/log/auth.log | awk '$9 != "$USER" && $9 != "invalid" {print "ufw deny from "$11}' | sh | grep -vi "skipping" >> /var/log/autoblock.log | |
grep -a -E -e 'Failed password for invalid' /var/log/auth.log | awk '$11 != "$USER" {print "ufw deny from "$13}' | sh | grep -vi "skipping" >> /var/log/autoblock.log |
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
; first function receives another function and two values | |
; second function returns the average of two values | |
(define calculate | |
(fun | |
([op v1 v2] | |
(op v1 v2)))) | |
(define average | |
(fun | |
([a b] |
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
#/bin/bash | |
# 0.1.0 | |
git checkout 26144646e6f1e2de8876 | |
git tag v0.1.0 -a -m "First version" | |
# 0.3.0 | |
git checkout 6914f2c8a99a54c6641b | |
git tag v0.3.0 -a -m "Release 0.3.0" |
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
aquivemumtextoescritoporalguémseminspiraçãoouvindodirestraitserollingstonesnumferiadodemadrugadaenquantoafamíliadormetranquilasevocêestáusandointernetexplorerparavisualizaressatelasópossodizerquevocêestáperdendoomelhordafestaissoaquinumbrowserdeverdadeficarealmentemuitobonitoesperoquedepoisdeumaboanoitedesonoeucontinueachandoessatelabonitaacontecesério |
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
data = undefined | |
onLoadContrato = -> | |
enableStep4() | |
$('.right_selector').click drawMontante | |
drawMontante = -> | |
startDate = $('#contrato_inicio_vigencia').val().split('/') | |
endDate = $('#contrato_fim_vigencia').val().split('/') |
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
var data, drawMontante, fillData, onLoadContrato, onLoadMontante, readMontanteData, update_tributos; | |
data = void 0; | |
onLoadContrato = function() { | |
enableStep4(); | |
return $('.right_selector').click(drawMontante); | |
}; | |
drawMontante = function() { | |
var endDate, endMonth, endYear, params, startDate, startMonth, startYear; | |
startDate = $('#contrato_inicio_vigencia').val().split('/'); | |
endDate = $('#contrato_fim_vigencia').val().split('/'); |
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
} catch (final Exception e) { | |
// Don't bother reporting this | |
} |
OlderNewer