Skip to content

Instantly share code, notes, and snippets.

View acruxray's full-sized avatar

Nazar Mozol acruxray

  • Ukraine
View GitHub Profile
@acruxray
acruxray / terminal.sh
Created September 16, 2025 13:54 — forked from webarchitect609/terminal.sh
Git: disable GPG signing for current repo only.
# Write local
git config --local commit.gpgsign false
# Read local (if never set, can be an empty value)
git config --local commit.gpgsign
@acruxray
acruxray / autocomplete.vue
Created February 27, 2019 12:13 — forked from sryabov/autocomplete.vue
vuetify autocomplete component example
<template>
<v-autocomplete
v-model="select"
:loading="loading"
:items="items"
:search-input.sync="search"
no-filter
hide-selected
clearable
return-object
@acruxray
acruxray / countries.json
Created July 20, 2018 07:34 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@acruxray
acruxray / download website assets
Created March 21, 2018 10:09 — forked from christiangenco/download website assets
Use wget to download a website's assets, including images, css, javascript, and html. From http://www.linuxjournal.com/content/downloading-entire-web-site-wget
$ wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--domains website.org \
--no-parent \
www.website.org/tutorials/html/
<?php
/**
* Take all content from source directory and
* copy it to each subdirectory in acceptor directory
*
* @param String $source_dir The path of source directory
* @param String $acceptor_dir The path of acceptor directory
* @return Void
*/
AuthType basic
AuthName 'Authorization...'
AuthUserFile '/path/.htpasswd'
Require valid-user
DirectoryIndex index.php
<html>
<head>
<title>Preloader</title>
<style>
body{
background-color:#333;
display: flex;
}
<?php
class Vkapi {
protected $_access_token = '';
public static function factory ()
{
$class = get_class();
return new $class;
}