This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 4 | |
| indent_style = space | |
| insert_final_newline = false | |
| max_line_length = 120 | |
| tab_width = 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: jimmyadaro/gitlab-ci-cd:latest | |
| before_script: | |
| - mkdir -p ~/.ssh | |
| - echo "$PRIVATE_KEY" > ~/.ssh/id_rsa | |
| - chmod 700 ~/.ssh | |
| - chmod 600 ~/.ssh/id_rsa | |
| - eval $(ssh-agent -s) | |
| - ssh-add ~/.ssh/id_rsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Class Bitrix24 | |
| * @author [email protected] | |
| * @gist https://git.io/fj9nH | |
| */ | |
| class Bitrix24 { | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* header menu */ | |
| register_nav_menu("menu", "Main menu"); | |
| /* footer menu */ | |
| register_nav_menu("menu_footer", "Footer menu"); | |
| /* thumbnails */ | |
| add_theme_support('post-thumbnails'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias home='cd /c/OSPanel/domains/' | |
| alias ls='ls -alh --color=auto' | |
| alias g-pull='git pull origin master' | |
| alias g-push='git push origin master' | |
| # Code review | |
| g-review() { | |
| if [ "$1" = "" ]; then | |
| echo Ex. review issues1234 | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| iftttkey="" | |
| iftttevent="" | |
| if [ "$3" = "0000000000000000000000000000000000000000" ]; then | |
| type=delete | |
| else | |
| type=$(git cat-file -t $3) | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| echo Memory usage gt 200 MB | |
| tasklist /nh /fi "Session ne 0" /fi "Memusage gt 200000" | |
| echo . | |
| echo Memory usage gt 300 MB | |
| tasklist /nh /fi "Session ne 0" /fi "Memusage gt 300000" | |
| echo . | |
| echo Memory usage gt 400 MB | |
| tasklist /nh /fi "Session ne 0" /fi "Memusage gt 400000" | |
| echo . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtKh067D6Qe+QDw4nJPFDYPcA3xloUHx/iOWRpzwpyEkB0cjNmzxQFaAFo3006nxsMKt17lEuj8Cjtl3mV6BTH00i+XPs88brlcXwU8nnpXlOnH8yMRPiGnN/VXpwSgL8MNVp9M1AZnlR0BPhbIuJ/Ua8Y8whMJL5bfaX3L2Q7MNuHagAqMlKk9T5zQKxVSNaJxKsCGg+DP3o5FKg94ksF/QHkoiAWD4wF+/GkgZGr3LOJei0yTGSRX5cScIkLy0kgjNaCfd+0ijXZEozYo7g5onsTFIDsjU413dQq21Ax1rlDo4JP84+b8P7bPfla5L5VToQ+sNX8Q1bc3Ot0Ivs7 [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isIE() { | |
| return (navigator.userAgent).indexOf("MSIE") != -1 || (navigator.userAgent).indexOf("Trident") != -1; | |
| } |