Skip to content

Instantly share code, notes, and snippets.

@kneipp
kneipp / wsl-lamp.md
Created May 28, 2020 00:40 — forked from aslamdoctor/wsl-lamp.md
Windows 10 - WSL LAMP Stack Setup
@kneipp
kneipp / readme.md
Created March 11, 2020 18:23 — forked from ismael-pires/readme.md
Jetbrains IntelliJ Activation Code

For Subsciption until January 10, 2020

CATF44LT7C-eyJsaWNlbnNlSWQiOiJDQVRGNDRMVDdDIiwibGljZW5zZWVOYW1lIjoiVmxhZGlzbGF2IEtvdmFsZW5rbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQQyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEQiIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6I

<?php
use Doctrine\Common\Annotations\AnnotationRegistry;
use PHPSC\PagSeguro\Credentials;
//use PHPSC\PagSeguro\Environments\Production;
use PHPSC\PagSeguro\Environments\Sandbox;
use PHPSC\PagSeguro\Customer\Customer;
use PHPSC\PagSeguro\Items\Item;
use PHPSC\PagSeguro\Requests\Checkout\CheckoutService;
@kneipp
kneipp / gist:47cabf18430445e792fdd286ca528c17
Created March 28, 2019 15:26
zsh problem wsl git core.autocrlf
The temporary solution to that is changing your core.autocrlf git config setting to use input, given that you are on OSX. See #4402 (comment).
To sum up, you need to run the following:
cd $ZSH
git config core.autocrlf input
git rm --cached -r .
git reset --hard
-attributes: array:4 [
"oauth_access_token_id" => "0d66b551f7953d6058e9a5824a6c46b55d97d72f38a6623465f32ab8exxxxxxxxxxxxxxxxxxxxxx"
"oauth_client_id" => "5"
"oauth_user_id" => ""
"oauth_scopes" => []
<?php
@kneipp
kneipp / gist:67bfe0570b705c1b8ecdf4bf94de7925
Created April 7, 2017 17:04
ITAU homebanking funcionando no Arch Linux ou qualquer sistema operacional sem warsaw
ITAU: Mozilla/5.0 (X11; FreeBSD OS x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/27.0.1453.93 Chrome/27.0.1453.93 Safari/537.36
https://addons.mozilla.org/pt-BR/firefox/addon/user-agent-overrider/
@kneipp
kneipp / Arch linux
Created June 7, 2016 12:30
archlinux notas
material de linux:
https://linuxjourney.com/lesson/linux-history
acentos:
https://bbs.archlinux.org/viewtopic.php?id=156515
https://zuttobenkyou.wordpress.com/2011/08/24/xorg-using-the-us-international-altgr-intl-variant-keyboard-layout/
display manager:
https://wiki.archlinux.org/index.php/LightDM#Changing_your_avatar
@kneipp
kneipp / gist:d9e1d6427a8b964f5417
Created March 22, 2016 04:34
Ugly fonts in ArchLinux: paste that into '.config/fontconfig/fonts.conf' and restart DE
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
if (! function_exists('link_to_back')) {
/**
* Generate a HTML link to the previous location.
*
* @param string $title
* @param array $attributes
* @param bool $secure
*
* @return string
*/
@kneipp
kneipp / 5.2.php
Last active February 22, 2016 16:23
5.2
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.