Skip to content

Instantly share code, notes, and snippets.

View JanGalek's full-sized avatar
😈
Time to work!

Jan Galek JanGalek

😈
Time to work!
View GitHub Profile
// Small devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }
// Medium devices (tablets, 768px and up)
@media (min-width: 768px) { ... }
// Large devices (desktops, 992px and up)
@media (min-width: 992px) { ... }
// Extra large devices (large desktops, 1200px and up)
@JanGalek
JanGalek / VIES.php
Last active May 18, 2018 07:58
SK Ares :)
<?php
declare(strict_types=1);
namespace App\Galek\Helper;
class VIES
{
protected static $_viesUrl = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl';
protected $_client;
@JanGalek
JanGalek / spammer_ip.md
Last active August 21, 2018 15:26
spammer ip

After count >= 5 -> full range (x.x.x.1-x.x.x.254)

//31.220.43.x
iptables -I INPUT -s 31.220.43.11 -j REJECT
iptables -I INPUT -s 31.220.43.121 -j REJECT
iptables -I INPUT -s 31.220.43.153 -j REJECT

//58.62.167.x
iptables -I INPUT -s 58.62.167.119 -j REJECT

How to build go from linux to windows

https://hub.docker.com/_/golang/

OLD - not working (tested with Windows 10)

Install

sudo apt-get install gcc 
sudo apt-get install mingw-w64
@JanGalek
JanGalek / UnityUbuntu.md
Last active October 31, 2018 20:48
Unity Ubuntu

Install dependency

sudo apt-get install -y libnss3 libnspr4 p7zip-full tar gzip cpio zip
sudo apt-get install -y gconf-service lib32gcc1 lib32stdc++6 libasound2 libc6 libc6-i386 libcairo2 libcap2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libfreetype6 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libgl1-mesa-glx libglib2.0-0 libglu1-mesa libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 libstdc++6 libx11-6 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxtst6 zlib1g debconf npm
@JanGalek
JanGalek / UbuntuSetup.md
Last active August 18, 2024 09:52
UbuntuSetup

.ssh Permisions

  • .ssh directory 700 (drwx------)
  • public key (.pub file) 644 (-rw-r--r--)
  • private key (id_rsa) 600 (-rw-------)
  • lastly your home directory should not be writeable by the group or others (at most 755 (drwxr-xr-x)).

zsh fix for snap, ...

@JanGalek
JanGalek / SteamSystemInformations.yml
Created December 20, 2018 21:29
SteamSystemInformations
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD FX(tm)-8350 Eight-Core Processor
CPU Family: 0x15
@JanGalek
JanGalek / steam-7110.log
Created December 20, 2018 21:39
Steam log 7110 Jade Empire
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
23548.780:0008:0009:trace:module:load_builtin_callback loaded ntdll.dll 0x1106f0 0x7bc10000
23548.780:0008:0009:trace:module:load_builtin_dll Trying built-in L"kernel32.dll"
23548.780:0008:0009:trace:module:load_dll looking for L"ntdll.dll" in L""
23548.780:0008:0009:trace:module:load_dll Found L"C:\\windows\\system32\\ntdll.dll" for L"ntdll.dll" at
@JanGalek
JanGalek / steam-242920.log
Created December 20, 2018 21:54
Banished audio log
This file has been truncated, but you can view the full file.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
24721.566:0008:0009:trace:module:load_builtin_callback loaded ntdll.dll 0x1106f0 0x7bc10000
24721.566:0008:0009:trace:module:load_builtin_dll Trying built-in L"kernel32.dll"
24721.567:0008:0009:trace:module:load_dll looking for L"ntdll.dll" in L""
24721.567:0008:0009:trace:module:load_dll Found L"C:\\windows\\system32\\ntdll.dll" for L"ntdll.dll" at
@JanGalek
JanGalek / steam-242920-proton3.16.5Beta.log
Created December 20, 2018 21:57
Banished Proton 3.16.5 Beta crash
This file has been truncated, but you can view the full file.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/warfacez/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
24883.408:0008:0009:trace:module:load_builtin_callback loaded ntdll.dll 0x1106f0 0x7bc10000
24883.408:0008:0009:trace:module:load_builtin_dll Trying built-in L"kernel32.dll"
24883.409:0008:0009:trace:module:load_dll looking for L"ntdll.dll" in L""
24883.409:0008:0009:trace:module:load_dll Found L"C:\\windows\\system32\\ntdll.dll" for L"ntdll.dll" at