Skip to content

Instantly share code, notes, and snippets.

View mafikes's full-sized avatar

Martin Antoš mafikes

View GitHub Profile
@mafikes
mafikes / php-docker-ext
Created March 27, 2024 14:31 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
# Generated by Powerlevel10k configuration wizard on 2022-05-31 at 13:48 CEST.
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 7197.
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, darkest,
# 24h time, angled separators, sharp heads, flat tails, 2 lines, dotted, no frame,
# sparse, many icons, concise, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate
# your own config based on it.
#
@mafikes
mafikes / .bash_aliases
Created August 15, 2023 10:55
.bash_aliases
# Folders
alias cdh="cd ~"
alias cdp="~/Projects"
alias cdw="~/IndigoProjects"
alias cdo="~/Downloads"
alias cdd="cd ~ && cd Downloads"
# Global
alias c="clear"
alias e="exit"
@mafikes
mafikes / ScaleContent.js
Last active October 12, 2022 11:42
Simple javascript scale content
"use strict";
class ScaleContent {
/**
* @param component => div
* @param resize => allow / disable resize scale listener
* @param width => original width
* @param height => original height
*/
constructor(component, resize = true, width = null, height = null) {
using UnityEngine;
using QuizCannersUtilities;
using PlaytimePainter;
using System.Collections.Generic;
using PlaytimePainter.Examples;
using System.Linq;
using PlayerAndEditorGUI;
public class SimpleGazeCursor : MonoBehaviour, IPEGI
{
@mafikes
mafikes / script.bash
Created August 29, 2017 13:52
FortiClient mac os - fix dns - remote access internet not work
#!/bin/bash
scutil <<EOF
d.init
d.add ServerAddresses 8.8.8.8 8.8.4.4
set State:/Network/Service/forticlientsslvpn/DNS
quit
EOF
@mafikes
mafikes / viewport.js
Last active August 29, 2015 14:10 — forked from bohman/viewport.js
// -----------
// Debugger that shows view port size. Helps when making responsive designs.
// -----------
function showViewPortSize(display) {
if(display) {
var height = jQuery(window).height();
var width = jQuery(window).width();
jQuery('body').prepend('<div id="viewportsize" style="z-index:9999;position:fixed;top:40px;left:5px;color:#fff;background:#000;padding:10px">Height: '+height+'<br>Width: '+width+'</div>');
jQuery(window).resize(function() {
@mafikes
mafikes / config_sublime
Last active August 29, 2015 13:56
My user config sublime-text
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"find_selected_text": true,
"font_face": "Inconsolata",
@mafikes
mafikes / .vimrc
Last active January 29, 2021 13:02
Config Vim
" File: ~/.vimrc
" Set to auto read when a file is changed from the outside
set autoread
" Set 7 lines to the cursor - when moving vertically using j/k
set so=7
"Always show current position
set ruler
@mafikes
mafikes / Webserver.sh
Last active January 2, 2016 21:49
Bash script for manage nginx, mysql server, php-fpm
#!/bin/bash
# WEBSERVER / Webserver.sh
# By Martin Antoš, mafikes.cz
# Script for manage nginx, mysql, php
#
# FUNCTION
#
start() {