Skip to content

Instantly share code, notes, and snippets.

@phackwer
phackwer / gist:d95f46d75d7c6e5657c0
Created January 9, 2015 06:23
Alterando ícones do Mac
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 ~/
@phackwer
phackwer / gist:3c41ee74b6c72244d9bd
Last active November 17, 2015 02:51
Adobe CS6 em Case Sensitive FileSystem - MacOS
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¶
@phackwer
phackwer / gist:5054590edb86bf69d82a
Created October 25, 2015 03:01
Speed up Linux and SSD
https://sites.google.com/site/easylinuxtipsproject/speed
https://sites.google.com/site/easylinuxtipsproject/ssd
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
Primeiro Passo:
1- Acesse a pasta do jogo e clique com o botão direito sobre o arquivo 3Dconfig.exe" e selecione propriedades.
2- Após, selecione a aba Compatibilidade e marque a caixa "executar este programa em modo de compatibilidade" e selecione "Windows XP SP2"
e marque a caixa "Executar este programa como administrador".
3 - Execute o arquivo 3DConfig e faça a configuração da sua placa.
4 - Se houverem outros executaveis, altere a execucao para todos.
Para resolver o bug da imagem 3d do carro:
1 - Abra o arquivo "Config.ini" na pasta principal do jogo(onde fica o executável)
procure essas linhas e deixe assim:
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"/>
@phackwer
phackwer / CentOS 7.3 - User config
Last active June 1, 2018 02:16
CentOS 7.3 - User config
PRIMEIRA COISA
https://copr.fedorainfracloud.org/coprs/duh/GNOME_3.22_for_RHEL_and_CentOS_7.x/
#############################################################################################################################
#
# INSTALAÇÃO DO CENTOS 7.2 - CUSTOMIZAÇÃO BÁSICA
#
#############################################################################################################################
# Passos básicos - Configuração do Gnome (como root)R
@phackwer
phackwer / GIT
Last active November 3, 2016 10:25
Estrutura de trabalho do Git:
SUMINDO COM UM COMMIT PUSHADO! SOME ATÉ O HISTÓRICO
git push -f origin shadocommit:nomedabranch
Working dir ==(add)===> Stash ==(commit)==> git local <==(pull)==(push)==> git remoto
Comandos do dia a dia
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 August 25, 2016 16:34
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