Skip to content

Instantly share code, notes, and snippets.

View sitemapxml's full-sized avatar
🏠
Working from home

sitemapxml

🏠
Working from home
View GitHub Profile
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
mQGiBEXwb0YRBADQva2NLpYXxgjNkbuP0LnPoEXruGmvi3XMIxjEUFuGNCP4Rj/a
kv2E5VixBP1vcQFDRJ+p1puh8NU0XERlhpyZrVMzzS/RdWdyXf7E5S8oqNXsoD1z
fvmI+i9b2EhHAA19Kgw7ifV8vMa4tkwslEmcTiwiw8lyUl28Wh4Et8SxzwCggDcA
feGqtn3PP5YAdD0km4S4XeMEAJjlrqPoPv2Gf//tfznY2UyS9PUqFCPLHgFLe80u
QhI2U5jt6jUKN4fHauvR6z3seSAsh1YyzyZCKxJFEKXCCqnrFSoh4WSJsbFNc4PN
b0V0SqiTCkWADZyLT5wll8sWuQ5ylTf3z1ENoHf+G3um3/wk/+xmEHvj9HCTBEXP
78X0A/0Tqlhc2RBnEf+AqxWvM8sk8LzJI/XGjwBvKfXe+l3rnSR2kEAvGzj5Sg0X
@sitemapxml
sitemapxml / gdrive
Created March 26, 2020 00:55
Preuzimanje fajlova sa google drive-a
#!/bin/bash
fileid=""
filename="file.zip"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
@sitemapxml
sitemapxml / media-query.css
Created May 21, 2020 00:13 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@sitemapxml
sitemapxml / wp-config.php
Last active July 22, 2023 13:10
Wordpress wp-config.php Template With Custom Directory Structure #wordpress #custom #config
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the
* installation. You don't have to use the web site, you can
* copy this file to "wp-config.php" and fill in the values.
*
* This file contains the following configurations:
*
@sitemapxml
sitemapxml / mysqld.cnf
Created December 16, 2020 21:39
MySQL important configuration for performance and RAM usage.
#
# * Fine Tuning
#
key_buffer_size = 16M
#max_allowed_packet = 16M
thread_stack = 192K
# thread_cache_size = -1
performance_schema = off
@sitemapxml
sitemapxml / github.sh
Last active July 12, 2021 14:07
This simple script allows you to clone git repository by entering github username and repository name.
#!/bin/bash
# #############################################################################################################################################
# This simple script will allow you to clone github project by providing github username and repository name you want to clone.
# The format is as following:
# > github username repository foldername
# Foldername is not neccessary. If not specified, repository name will be used.
# This script is meant to be copied to /usr/bin so you can run it as a command.
# You can do so by running:
# > wget https://gist.githubusercontent.com/sitemapxml/ccb1b14e4fbee4cc8122c086ec5694e6/raw/6d4b9bb97b455a79ed7a54b48734d15ec1a39fb4/github.sh
@sitemapxml
sitemapxml / upgrade.sh
Last active July 7, 2021 17:53
This is simple one-liner script used for updating repository lists, upgrading packages and removing old packages.
#!/usr/bin/env sh
# This is simple one-liner script used for updating repository lists, upgrading packages and removing old packages.
# The script will reboot the server after finished.
# #################################################
# Installation:
# wget https://gist.githubusercontent.com/sitemapxml/d19a43ba9fcbf83a1c639e18bd69d578/raw/9e7ba290b7f3d72db09a92c733a28e16b229149d/upgrade.sh
# chmod +x upgrade.sh
# mv upgrade.sh /usr/bin/upgrade
sudo apt update && sudo apt upgrade -y && sudo apt autoremove && sudo apt autoclean
@sitemapxml
sitemapxml / nginx-sample.conf
Last active July 14, 2021 14:38
Sample nginx config used in USet script (@sitemapxml/uset)
# You can download this file and copy to sites-available
# You can also change file name
# To activate configuration you should make symlink sites-enabled
# Install instructions:
# wget https://gist.githubusercontent.com/sitemapxml/34fbe77218884467e7767ccec9a61169/raw/a6bf47e6bb93ab87dba3d061dd866d3aa20f4a92/nginx-sample.conf
# cp ./nginx-sample.conf /etc/nginx/sites-available/nginx-sample.conf
# ln -s ./nginx-sample.conf /etc/nginx/sites-enabled/nginx-sample.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
@sitemapxml
sitemapxml / apache.conf
Last active August 8, 2021 20:32
Apache example configuration
# This is sample apache configuration
# It can be put in /etc/apache2/sites-available
# Installation:
# wget https://gist.githubusercontent.com/sitemapxml/92f01802d3909ca125250f58005db3b1/raw/04b768699bf4813aa67e9ad22030c2c236257856/apache.conf
# cp apache.conf /etc/apache2/sites-available/example.com
# a2ensite example.com
# apachectl restart
<VirtualHost *:80>
ServerName sn_default
@sitemapxml
sitemapxml / docker-install.sh
Last active August 9, 2021 20:39
Instalacija Docker-a na Debian 10
#!/bin/bash
# Instalacija ##############################################################
# ##########################################################################
# git clone https://gist.github.com/e58f3da8f5ec65b188ee303950b5783e.git
# mv e58f3da8f5ec65b188ee303950b5783e/docker-install.sh ./docker-install.sh
# chmod +x ./docker-install.sh
# rm -r e58f3da8f5ec65b188ee303950b5783e
# ##########################################################################
# nakon toga samo pokrenuti: