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 | |
# | |
# USAGE: h4g-html-reporter.sh > module.html | |
# | |
# Folders structure: | |
# . | |
# ├── 1.1 | |
# │ ├── 1.png | |
# │ ├── 6.png |
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
from numpy import * | |
from matplotlib.pyplot import * | |
import Gnuplot, Gnuplot.funcutils | |
import time | |
#Inicializa e usa linhas | |
g = Gnuplot.Gnuplot(debug=0) | |
g('set style data lines') | |
for i in arange(1,100,0.1): |
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
<style type="text/css">table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
width: 100%; | |
border: 1px solid #ddd; | |
} | |
th, td { | |
text-align: left; | |
padding: 8px; |
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 | |
# DESCRIPTION: Difference between two files in percentage | |
# USAGE: | |
# ./diffpercent file1 file2 | |
cat $1 | base64 -w 0 > /tmp/1.64 | |
cat $2 | base64 -w 0 > /tmp/2.64 | |
sed 's/./\0\n/g' /tmp/1.64 > /tmp/3.64 | |
sed 's/./\0\n/g' /tmp/2.64 > /tmp/4.64 |
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 | |
armorFile="/etc/apparmor.d/usr.bin.evince" | |
hadWxFixed=$(cat $armorFile | grep "WinuniX") | |
if [ "$hadWxFixed" == "" ]; then | |
NUM=$(cat $armorFile | grep 'owner /tmp/evince-thumbnailer\*/{,\*\*} rw,' -n | cut -d':' -f1) | |
sed -i $(($NUM+1))"i\ \ # WinuniX added this line" $armorFile | |
sed -i $(($NUM+2))"i\ \ owner /home/\*/.cache/thumbnails/\*/\*.\* rw," $armorFile | |
apparmor_parser -r $armorFile |
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 | |
GithubId="ailtonbsj" | |
Email="[email protected]" | |
AppDomain="com.github.ailtonbsj" | |
AppName="sample" | |
AppNameEn="Sample" | |
AppNameBr="Exemplo" | |
Comment="A Sample of application" | |
CommentBr="Um exemplo de aplicativo" |
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 | |
rm -rf ~/Downloads && ln -s /mnt/d/Downloads/ ~/Downloads | |
rm -rf ~/Documentos && ln -s /mnt/d/Documents/ ~/Documentos | |
rm -rf ~/Imagens && ln -s /mnt/d/Pictures/ ~/Imagens | |
rm -rf ~/Música && ln -s /mnt/d/Music/ ~/Música | |
rm -rf ~/Vídeos && ln -s /mnt/d/Videos/ ~/Vídeos | |
rm -rf ~/Modelos && ln -s /mnt/d/Models/ ~/Modelos | |
rm -rf ~/Público && ln -s /mnt/d/Public/ ~/Público |
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 | |
function expressionsWithoutIf { | |
A=$1 | |
B=$2 | |
[ "$A" -ge "$B" ] ; C=$? | |
if [ "$C" == "0" ]; then | |
echo "TRUE!" | |
else |
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/env node | |
var exec = require('child_process').exec | |
var child; | |
var initialHoursBeforeCommit = 0.5 | |
if(process.argv[2] == '--help'){ | |
console.log(`Usage: time-gitlog [option] | |
--initial hour Hours before commit. Default 0.5h. |
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 | |
if [ "$(id -u)" != "0" ]; then | |
echo 'need root!' | |
exit | |
fi | |
cat << EOF > /usr/share/polkit-1/actions/org.freedesktop.policykit.xampp.policy | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE policyconfig PUBLIC | |
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" |
NewerOlder