Skip to content

Instantly share code, notes, and snippets.

View johonunu's full-sized avatar

Nikola Trifunović johonunu

View GitHub Profile
+----------------------------------------------------+------------+------------+-------------------------------------+
| Instance url | Created on | Last Login | Client |
+----------------------------------------------------+------------+------------+-------------------------------------+
| https://bfr.appsco.one | 2019-04-10 | 2021-03-22 | Bård Frode Rønningen |
| https://mesier.appsco.one | 2020-09-23 | 2021-03-09 | Bard Ronningen |
| https://demotest.appsco.one | 2019-04-12 | never | Aplication Tester |
| https://brittsdemo.appsco.one | 2019-04-23 | 2020-04-02 | Bard Frode Ronningen |
| https://yomytest.appsco.one | 2019-10-02 | 2020-11-04 | Milos Jovanovic |
| https://arcasa.appsco.one | 2019-11-18 | 2020
@johonunu
johonunu / rename-database.sql
Created October 13, 2021 09:24 — forked from shivanshs9/rename-database.sql
Rename MySQL Database
DROP PROCEDURE IF EXISTS moveTables;
DROP PROCEDURE IF EXISTS renameDatabase;
DELIMITER $$
CREATE PROCEDURE moveTables(_schemaName varchar(100), _newSchemaName varchar(100))
BEGIN
DECLARE done INT DEFAULT FALSE;
DECLARE table_name VARCHAR(64);
DECLARE table_cursor CURSOR FOR SELECT information_schema.tables.table_name FROM information_schema.tables
WHERE information_schema.tables.table_schema = _schemaName;
# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
# Test user for authentification
TEST_USER_USERNAME=test_user
TEST_USER_PASSWORD=123456
# Test user customer for authentification
TEST_USER_CUSTOMER_USERNAME=tc2
alias kill-on-port="sudo fuser -k -n tcp $1"
ALT + SHIFT + "R" -> REPLACE
CTRL + "_" -> GO TO LINE
CTRL + "W" -> SEARCH
CTRL + "+" -> ZOOM IN
CTRL + "0" -> RESET ZOOM
CTR + "-" -> ZOOM OUT
Vue.component('vue-switch', {
template: '<label :class="classObject"><span class="vue-switcher__label" v-if="shouldShowLabel"><span v-if="label" v-text="label"></span><span v-if="!label && value" v-text="textEnabled"></span> <span v-if="!label && !value" v-text="textDisabled"></span> </span> <input type="checkbox" :disabled="disabled" :true-value="trueValue" :false-value="falseValue" @change="trigger" :checked="value"><div></div> </label>',
props: {
typeBold: {
default: false
},
value: {
default: false
},
@johonunu
johonunu / gist:10c9eca4853f102deaba2d1518bceeca
Last active August 18, 2017 15:08
Admin bootstrap sidebar
http://www.jqueryscript.net/menu/Responsive-Admin-Sidebar-Menu-Plugin-With-jQuery-sidebar-nav.html
http://www.jqueryscript.net/tags.php?/off%20canvas%20menu/
{
"matchCount": 20,
"days": [{
"matchCount": 20,
"date": 1499896800000,
"sports": [{
"matchCount": 6,
"sport": {
"id": 1,
"name": "Fudbal"
@johonunu
johonunu / php-webscraping.md
Created July 24, 2017 15:13 — forked from anchetaWern/php-webscraping.md
web scraping in php

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}

@johonunu
johonunu / gist:61c3edca3b5ad52d059340521fe181fc
Created September 7, 2016 13:43
SMARTSVN / SMARTGIT opening when connect usb or archive
xdg-mime default nautilus-folder-handler.desktop inode/directory application/x-gnome-saved-search