Skip to content

Instantly share code, notes, and snippets.

View kyberorg's full-sized avatar

Aleksandr Muravja kyberorg

View GitHub Profile
# How to create an RPM from source with spec file
# This is for Redhat versions of linux. Sometimes when you search for an rpm package,
# it is either outdated or not available. The only thing available is the source code.
# You can create a custom RPM package from source.
#
# For this example, I'll be using the latest version of Git, currently v.1.9.2
# Step: 1
# Install rpmbuild
@kyberorg
kyberorg / index.html
Last active August 29, 2015 14:11 — forked from anonymous/index.html
Atlassian
<html>
<head>
<!-- External dependencies -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.15/require.min.js"></script>
<script src="http://aui-cdn.atlassian.com/aui-adg/5.8.0/js/aui.js"></script>
<script src="http://aui-cdn.atlassian.com/aui-adg/5.8.0/js/aui-experimental.js"></script>
<script src="http://aui-cdn.atlassian.com/aui-adg/5.8.0/js/aui-datepicker.js"></script>
<link rel="stylesheet" type="text/css" href="http://aui-cdn.atlassian.com/aui-adg/5.8.0/css/aui.css"/>
<link rel="stylesheet" type="text/css" href="http://aui-cdn.atlassian.com/aui-adg/5.8.0/css/aui-experimental.css"/>
@kyberorg
kyberorg / installing-arch-linux-on-a-vultr-server.md
Last active September 7, 2018 13:05
Installing Arch Linux On a Vultr Server

Installing Arch Linux On a Vultr Server

This is a minimal installation guide targeted to get Arch Linux running on Vultr. For simplicity, 'time zone', 'hostname', 'locale' and 'initramfs' are omited, you can configure them latter by yourself.

Partition the disks

For simplicity, we use single root partition.

# fdisk /dev/vda
@kyberorg
kyberorg / metatags.html
Created November 21, 2018 11:32 — forked from MicBrain/metatags.html
The list of useful meta tags used in HTML5 documents.
<html>
<head>
<!--Recommended Meta Tags-->
<meta charset="utf-8">
<meta name="language" content="english">
<meta http-equiv="content-type" content="text/html">
<meta name="author" content=”Rafayel Mkrtchyan”>
<meta name="designer" content=”Rafayel Mkrtchyan”>
<meta name="publisher" content=”Rafayel Mkrtchyan”>
@kyberorg
kyberorg / mysql-docker.sh
Created December 19, 2018 09:30 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE

NEXUS 5X: Fix lineage 14.1 OS vendor mismatch error (N2G47F)

Issue is due to the fact that lineage 14.1 bullhead nightlies are based on the 7.1.2 N2G47F (Apr 2017) monthly update from google.

More explanations in xda-developers.

PREREQUISITE

This assumes:

  • you already know a bit about flashing you android device and you already installed TWRP.
@kyberorg
kyberorg / hellcheck.service
Last active April 12, 2019 08:02 — forked from funzoneq/simplehttp.service
A systemd file for a python SimpleHTTPServer aka healtcheck daemon
[Unit]
Description=Job that runs the python SimpleHTTPServer daemon at TCP port 80
Documentation=man:SimpleHTTPServer(1)
After=network-online.target
[Service]
Type=simple
WorkingDirectory=/srv/hellcheck
ExecStart=/usr/bin/python -m SimpleHTTPServer 80 &
ExecStop=/bin/kill `/bin/ps aux | /bin/grep SimpleHTTPServer | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'`
@kyberorg
kyberorg / curl.md
Created June 30, 2019 14:20 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@kyberorg
kyberorg / delete-objects.sql
Created December 17, 2019 10:28 — forked from jirkapenzes/delete-objects.sql
Delete all tables, views, packages, procedures, functions and sequences in your Oracle schema.
BEGIN
FOR cur_rec IN (SELECT object_name, object_type
FROM user_objects
WHERE object_type IN
('TABLE',
'VIEW',
'PACKAGE',
'PROCEDURE',
'FUNCTION',
'SEQUENCE'
@kyberorg
kyberorg / grafana_telegram_bot.md
Created February 17, 2021 15:24 — forked from ilap/grafana_telegram_bot.md
Grafana Telegram Alert

Config Telegrambot for grafana's alerts.

1. Create bot

Open Telegram and search for @BotFather user and message them the following:

You
/newbot 

BotFather