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
# include this in your ~/.bashrc | |
# enc usage: | |
# 1) put the public keys (pem files) in ~/.keylist/recipient_name.pem | |
# 2) copy the text you want to encrypt | |
# 3) go to terminal and type enc recipient_name to encrypt your clipboard | |
# dec usage: | |
# 1) copy the encrypted message | |
# 2) go to terminal and type dec |
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
// Using Lib iTextSharp: http://sourceforge.net/projects/itextsharp/ | |
PdfReader reader = new PdfReader("Portifolio.pdf"); // Seu arquivo collection | |
for (int x = 0; x < reader.XrefSize; x++) // Loop em todos os objetos | |
{ | |
PdfObject obj = reader.GetPdfObject(x); | |
if ((obj != null) && (obj.IsDictionary()) && (obj.ToString().EndsWith("/Filespec"))) | |
{ | |
PdfDictionary filespec = (PdfDictionary)obj; | |
PdfDictionary refs = filespec.GetAsDict(PdfName.EF); |
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
foreach (Process proc in Process.GetProcesses()) | |
if ((proc.ProcessName == Path.GetFileNameWithoutExtension(Application.ExecutablePath)) && (proc.Id != Process.GetCurrentProcess().Id)) | |
proc.Kill(); |
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
using System.IO; | |
using System.IO.Compression; | |
//--------------- | |
string stringNormal = "seutexto"; | |
byte[] byteArr = Encoding.Unicode.GetBytes(stringNormal); | |
// Você pode trocar o MemoryStream pelo FileStream para salvar em arquivo. |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |