This file contains 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
"@editorjs/editorjs": "^2.30.7", | |
"@react-router/node": "^7.2.0", | |
"@react-router/serve": "^7.2.0", | |
"editorjs-html": "^3.4.3", | |
"react": "^19.0.0", | |
"react-dom": "^19.0.0", | |
"react-router": "^7.2.0", | |
"react-router-aws": "^2.0.0-beta.2", | |
"typescript": "^5.7.3", |
This file contains 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 | |
namespace ib\Misc; | |
/** | |
* Class Slugifier. | |
* @author Ivan Barlog <[email protected]> | |
*/ | |
class Slugifier | |
{ |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
/*! | |
* Nestable jQuery Plugin - Copyright (c) 2014 Ramon Smit - https://github.com/RamonSmit/Nestable | |
*/ | |
; | |
(function($, window, document, undefined) { | |
var hasTouch = 'ontouchstart' in window; | |
/** | |
* Detect CSS pointer-events property | |
* events are normally disabled on the dragging element to avoid conflicts |
This file contains 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 | |
read -p "repository (owner/repository): " REPO | |
read -p "user: " USER | |
read -p "password: " -s PASS | |
# Delete default labels | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$REPO/labels/bug" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$REPO/labels/duplicate" | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$REPO/labels/enhancement" |
This file contains 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
#include <stdio.h> | |
unsigned int factorial(unsigned int x); | |
int main() { | |
/* testing code */ | |
printf("1! = %i\n", factorial(1)); | |
printf("3! = %i\n", factorial(3)); | |
printf("5! = %i\n", factorial(5)); | |
} |
This file contains 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 | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
echo "Provide first argument which is path to project relative to /var/www/src/ folder" | |
echo "Provide second argument which is domain which will be added to hosts file (.dev is added automatically)" | |
exit | |
fi |
This file contains 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 | |
V=${1-"4.2.0"} | |
curl http://www.adminer.org/latest-en.php -L --create-dirs -o /var/www/src/adminer-${V}/index.php | |
chown -R ivan:ivan adminer-${V}/ | |
chmod -R 0755 adminer-${V}/ | |
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/adminer-${V}.conf | |
sed -i -e 's/#ServerName www.example.com/ServerName adminer.dev/g;s/\/var\/www\/html/\/var\/www\/http\/adminer/g;s/.log/_adminer.log/g' /etc/apache2/sites-available/adminer-${V}.conf |