Skip to content

Instantly share code, notes, and snippets.

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:
@phackwer
phackwer / 0 - Instalação Ubuntu Gnome - by Phackwer (easy use)
Last active November 29, 2017 13:36 — forked from adlerluiz/0 - Instalação Ubuntu Gnome - by Phackwer (easy use)
Instalação Ubuntu Gnome 16.04 - by Phackwer (easy use)
Este guia tem por objetivo facilitar a minha vida para ter o meu ambiente restaurado ou construído do zero, mas pode ser utilizado por qualquer outra pessoa que goste de um ubuntu ainda mais fácil para utilizar no desenvolvimento de aplicações PHP com repositórios Git. Não estão colocados aqui detalhes sobre instalação de banco de dados, e o hardwar alvo é um macbook pro 17" i7 com HD SSD.
COLOCANDO UM SAY COMO DO MAC NO LINUX
sudo apt-get install gnustep-gui-runtime
say "hello"
1 - Install Ubuntu Unity LTS - Update and upgrade
2 - Install Nvidia driver and reboot
3 - Install Gnome Desktop over Ubuntu
Use Imagick to manipulate PSD file instances in PHP
Time: Jan 15, 2017 From Machine Translation.
php
References:
Http://www.php.net/manual/en/book.imagick.php
premise
@phackwer
phackwer / gist:e5a8b39bbd9138d6714897e1ee743afb
Created March 5, 2018 17:03
Find error in PHP files (linter)
find -type f -name "*.php" -exec php -l '{}' \;
grep -rl $'\xEF\xBB\xBF' `pwd` > file_with_boms.txt
while read l; do sed -i '1 s/^\xef\xbb\xbf//' $l; done < file_with_boms.txt
#!/bin/sh
alias errcho='>&2 echo'
if [ ! $REPO ]; then
errcho "No \$REPO to clone from;
exit 1;
fi
if [ ! $BRANCH ]; then
#!/bin/bash
# expected to be defined in the environment
# - AZURE_STORAGE_ACCOUNT
# - AZURE_CONTAINER_NAME
# - AZURE_ACCESS_KEY
# - CURRDATE
# - FILE_EXTENSION
# - APP_ENV
0 - Install supported version of docker and docker compose (in docker hosts too)
apt-get remove docker*
curl https://releases.rancher.com/install-docker/17.03.sh | sh
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
1 - Start your Rancher instance, locked for the outside world:
docker run -d --restart=unless-stopped --name rancher-server -p 0.0.0.0:8080:8080 rancher/server:stable
Requirements:
apt-get install pv original-awk
Creating:
tar cf - folder_you_will_compress -P | pv -s $(du -sb folder_you_will_compress | awk '{print $1}') | gzip > compressed_folder.tgz
Unpacking:
@phackwer
phackwer / x
Created May 25, 2018 08:57
Xcode, swift, "bootstrap" accordion with UIWebView and dynamic height according to content
You will need:
1 - ViewController
2 - Scroll View
3 - Scroll content view
4 - Button (with text and image that will be replaced when you click)
5 - WebView
6 - Greyline at the bottom
In your layout, the Webview stays between the button and the grey line, with 0 height