Skip to content

Instantly share code, notes, and snippets.

View gist:d95f46d75d7c6e5657c0
Faça download
http://decompositionbeauty.deviantart.com/art/Black-Leopard-Icon-Set-UPDATE-69590061
// Go to /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources folder
// where system icons are located.
$ cd /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
// Backup the icns file for generic folder icon.
$ sudo cp GenericFolderIcon.icns GenericFolderIcon.org.icns
// Move the icns file to your home folder and go there.
$ sudo mv GenericFolderIcon.icns ~/
View gist:5054590edb86bf69d82a
https://sites.google.com/site/easylinuxtipsproject/speed
https://sites.google.com/site/easylinuxtipsproject/ssd
@phackwer
phackwer / gist:3c41ee74b6c72244d9bd
Last active Nov 17, 2015
Adobe CS6 em Case Sensitive FileSystem - MacOS
View gist:3c41ee74b6c72244d9bd
Installing Adobe CS6 on case-sensitive drives (Mac OS X)¶
20 May 2013
Well, everybody knows that Adobe are a shitty company. Their products are the defacto standard for image/video editing and designing, but their codebase really suck. No excuses.
The problem addressed here is that Creative Studio™ refuses to install on a case-sensitive drives on Mac OS X. And it doesn’t just refuse to install on a case-sensitive drive, but it also requires to install on your boot drive as well! Srsly?
Well, there’s a solution. I’ve just stumbled upon this, and I’m really anxious to share it. I’ve forked the code to update it for CS6.
Prerequisites¶
View OpenProj complains of Oracle as java vendor instead of Sun with latest version
Those of you who use OpenProj for project management on Linux may receive an erroneous error from the software application complaining that your Java vendor is "Oracle" rather than "Sun".
Obviously, they are one in the same , but the OpenProj software isn't smart enough to know this (as of the authoring date of this article, version 1.4).
Here's an easy fix to get around this and trick the application into working with the Oracle java installation.
The error:
[eriks@eclipse: ~/.openproj]$ openproj
Java auto-detection...
Checking java
View C# com DotNetCasClient no Visual Studio 2015 Community
F5 - Builda e executa uma versão do IIS embutida no Visual Studio
CTRL + , = Eclipse Ctrl + Shift + R
CTRL + K e C = Comentar linha
CTRL + K e D = Identar código
https://wiki.jasig.org/display/casc/.net+cas+client
1 - Adicionar o DotNetCasClient ao projeto, selecionando o Manage NuGet Packages
2 - Remova o nó
<authentication mode="None"/>
View GIT SVN
Those are the required commands to import a SVN project into a Git repository
##################################################################################
# clone svn into a local git repository and goes into it
git svn clone https://127.0.0.1/svn/testes/trunk git_svn
cd git_svn
# Map the destiny git repository as origin and pull from it
git remote add origin http://gitlab.com/user/git-project
@phackwer
phackwer / Registro de chaves ICP-Brasil em VM Java
Created Aug 25, 2016
Registro de chaves ICP-Brasil em VM Java
View Registro de chaves ICP-Brasil em VM Java
# Obtenção das chaves ICP-Brasil / Serpro
wget http://acraiz.icpbrasil.gov.br/credenciadas/RAIZ/ICP-Brasilv5.crt
wget http://acraiz.icpbrasil.gov.br/credenciadas/SERPRO/v0/p/Autoridade_Certificadora_do_Serpro_v1.crt
wget http://acraiz.icpbrasil.gov.br/credenciadas/SERPRO/v1/p/Autoridade_Certificadora_Serpro_v2.crt
wget http://acraiz.icpbrasil.gov.br/credenciadas/SERPRO/v2/p/Autoridade_Certificadora_Serpro_v3.crt
# Registrando na keystore da VM para uso no JBoss
keytool -keystore /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/cacerts -importcert -alias icpbrasil5 -file ICP-Brasilv5.crt
View gist:3284893fdbe0497c28518ee0e0aa1133
find -type f -exec md5sum "{}" +
Ex: lista apenas por extensão:
find -type f -name "*.zip" -exec md5sum "{}" +
@phackwer
phackwer / gist:b70e47331606e6e2313749b04862d0e8
Last active Oct 11, 2016
Diversas formas de substituição e geração de MD5 e SHA1 com base em padrões dentro de arquivos
View gist:b70e47331606e6e2313749b04862d0e8
for f in `grep -rl srv267 .`;
do \
sed -i 's/srv267/pvl010/g' $f && \
echo $f \
set -- $(md5sum $f) && \
echo $1 > $f.md5;
set -- $(sha1sum $f) && \
echo $1 > $f.sha1;
done;