Skip to content

Instantly share code, notes, and snippets.

View yudina-m's full-sized avatar
🎯
Focusing

Maria Yudina yudina-m

🎯
Focusing
View GitHub Profile
@yudina-m
yudina-m / scanner.sh
Created November 30, 2021 22:13 — forked from andyrbell/scanner.sh
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@yudina-m
yudina-m / gist:c5212bc314c9bf29fa82058c2956383b
Last active February 25, 2021 16:56
GoITGirls - Homework
Перейти по ссылке
https://www.w3schools.com/php/phptryit.asp?filename=tryphp_compiler
Удалите код, который написан в окне слева по умолчанию.
Пишите туда код из заданий ниже.
-------
Homework 1 - "Hello world!"
Написать в окне слева код:
@yudina-m
yudina-m / MySQL.md
Created March 11, 2018 06:47 — forked from nrollr/MySQL.md
Install MySQL on El Capitan using Homebrew

Install MySQL on OS X El Capitan

Normally the installation of MySQL can be achieved with a single command, which executes a script provided by MacMiniVault : bash <(curl -Ls http://git.io/eUx7rg)

However, at the time of writing the script is not compatible with OS X El Capitan (10.11)

Install MySQL using Homebrew

An alternative to the aforementioned installation script is installing MySQL using Homebrew. This gist assumes you already have Homebrew installed, if not first read the article "Homebrew and El Capitan"

Make sure Homebrew has the latest formulae, so run brew update first

@yudina-m
yudina-m / Update .gitignore cache
Created February 6, 2017 11:30
.gitignore - refresh file index to ignore added files/folders
//commit all changes and then
git rm -r --cached .
git add .
git commit -m ".gitignore - fixed"
@yudina-m
yudina-m / .bash_profile
Created April 5, 2014 19:47
.bash_profile - homebrew, rbenv
export PATH=$HOME/.rbenv/shims:/usr/local/bin:$PATH

install php

with mysql pgsql intl support

$ brew install php --with-apache --with-mysql --with-pgsql --with-intl

set php timezone in php ini

date.timezone = Europe/Vienna
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@yudina-m
yudina-m / .desktop
Created January 12, 2013 12:25
desktop menu
xdg-desktop-menu install --novendor /[path to software.desktop]
software.desktop file:
[Desktop Entry]
Name=Software Name
Comment=Software Comment
Exec=/[path to software.sh]
TryExec=/[path to software.sh]
Icon=/[path to software.png icon]