Skip to content

Instantly share code, notes, and snippets.

vodolaz095

Block or report user

Report or block vodolaz095

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vodolaz095
vodolaz095 / install.sh
Created Dec 15, 2018
basicFedoraSetup4Development.sh
View install.sh
#!/usr/bin/env bash
# upgrade system
su -c 'dnf upgrade -y'
# install extra repos
su -c 'dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm'
su -c 'dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
su -c 'dnf upgrade -y rpmfusion-free-release rpmfusion-nonfree-release'
@vodolaz095
vodolaz095 / screenshot
Created Nov 18, 2018
screenshot - shell script to make and upload screenshot
View screenshot
#!/bin/bash
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 9 | head -n 1)
PIC_URL=$HOME/Pictures/Screenshots/$NEW_UUID.png
mkdir -p $HOME/Pictures/Screenshots
scrot -s -c $PIC_URL
scp $PIC_URL holod.local:/srv/www/s/
View gist:e74972c114356223177980e5da043112
+ check_common_commands http://example.com
+ '[' 1 -gt 0 ']'
+ parm=http://example.com
+ shift
+ case "$parm" in
+ '[' 0 -gt 0 ']'
+ '[' -z '' ']'
+ unset XDG_UTILS_DEBUG_LEVEL
+ '[' 0 -lt 1 ']'
+ xdg_redirect_output=' > /dev/null 2> /dev/null'
@vodolaz095
vodolaz095 / main.go
Created May 20, 2017
Example of how to host telegram bot on heroky
View main.go
package main
import (
"gopkg.in/telegram-bot-api.v4"
"log"
"net/http"
"os"
)
func main() {
@vodolaz095
vodolaz095 / guimessage.sh
Created Dec 4, 2016
Send message to users desctop using notify-send from remote console via SSH
View guimessage.sh
#!/bin/bash
DISPLAY=:0.0 /bin/notify-send "$1"
View authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAcHKLMrD4T0N9aKruHTiAhmT2vO8KVByeFWPFvQ+50ZGeuQ9A0eKG8hZdvMsIKH7Xb0w5peTUoeI7xKQP1p6oqVZvXQLsqMdtIewkSMEESMDczl3embt+khxGozAWqQ1+c6zqEKwpCH04RK5Cp7pPYS+AHBx8i/KEVVxmrge+VpchuVNS9Yu9Hcl8H4/eE/tiWGLXi29mNQJ4egGmD0NsIu5mF0aWaFhumyupQZkEVlR/ShkDjoiG0LWcLlO65parePD3TsNhkh034+WaIVtj5T5tt13GiOGo/w5XKFiz3Mm+MxRVYKeg1CEXSACgu3MlNR6yFZgkDYElw6qAZZp1 vodolaz095@snow.local
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDumbiY/euFsYCD+l2bOcle18HS0X45zx2YH5eIHIQxIAWrJxIbEYYVg74JqSABw5h+/mUhocDe3PTskmXUQ9d7Z0YA2GyEAL+m85jXhP5zRoA9Gz5CBL4Rko0Uz5uA9ET868Gnx5J8R1tjSWYEsz9hEbTmXn9ermS03fasw8U53g9cfY197eSqP2Os+BioSPkuJbF8i164NW9i7IgCtTVyBWQWXq5q5wZyDQL5qAc12qlofTE/s7OLynS1/Iwx07G0z6bd0Pz1wscFqnKI7WRnho8rwsed5/Cni3p0r/nvnB2eBH6ktNoWplj9h09G76knjZvgvHdDpTi78KdSH7d vodolaz095@steel.local
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAtX0e7ey1x1PBsQbEGX9/0Avwah45Xd9cVfEo9xNuCYbMNptYL3ki/FVjRXzrtz8YEkUHGoNJ2bpcaeNm/RdGMK2vZw6FoZwsMN2ZFGrF42gWt0TYOXWVAfww2r0HNn3cvILxoRwEkZn5SivRTGRIZ6ego8AEUVKN/yx6EGQRMPvk8xDia
@vodolaz095
vodolaz095 / topten.sh
Created Oct 12, 2016
Show top 10 Shell commands you are using
View topten.sh
#/bin/sh
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
View decodeViberMessages.sh
#!/bin/bash
unzip Viber\ messages.zip
find . -name "*.CSV" -exec iconv -c -f UCS-2 -t UTF-8 {} -o {}.txt \;
View go-skype.go
package main
// Accessing last 10 messages in Skype using Golang.
//HOW TO RUN this application:
// 1. Install Go - https://golang.org/doc/install.
// 2. Instal dependencies by running in console
// go get github.com/jinzhu/gorm
View XAV.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<!-- UPS XAV Service WSDL Release Date Dec 29, 2007 -->
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. -->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xav="http://www.ups.com/XMLSchema/XOLTWS/xav/v1.0" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0" targetNamespace="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0">
<wsdl:types>
<!-- This schema defines the UPS Security header used for authorization purposes -->
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:element name="UPSSecurity">
<xsd:complexType>
<xsd:sequenc
You can’t perform that action at this time.