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 | |
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 | |
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 | |
# 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
<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
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
#!/bin/bash | |
# | |
# USAGE: h4g-html-reporter.sh > module.html | |
# | |
# Folders structure: | |
# . | |
# ├── 1.1 | |
# │ ├── 1.png | |
# │ ├── 6.png |
OlderNewer