Skip to content

Instantly share code, notes, and snippets.

View scry3r's full-sized avatar
:octocat:
^_^

_scry3r_ scry3r

:octocat:
^_^
View GitHub Profile
def request(linode_method, query_args = {})
begin
args = {
api_key: @api_key,
api_action: linode_method,
}.merge(query_args).map{|k,v| "#{k}=#{v}"}.compact.join('&')
uri = URI("https://api.linode.com/?#{args}")
http = Net::HTTP.new(uri.host, uri.port)
@scry3r
scry3r / gist:a75be5338a3efa0083fb9645477609dd
Created July 24, 2017 18:26 — forked from paulmaunders/gist:3e2cbe02c07b6393f7ef0781eed9f97b
Installing VirtualBox and Vagrant on CentOS 7
# Some notes from installing VirtualBox on CentOS 7.
# These exact steps haven't been tested, as I ran them in a different order when manually installing.
# Install dependencies
yum -y install gcc make patch dkms qt libgomp
yum -y install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
# Install VirtualBox
cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo

#petya #petrWrap #notPetya

Win32/Diskcoder.Petya.C

Ransomware attack.

About

This gist was built by the community of the researchers and was scribed by Kir and Igor from the QIWI/Vulners. We are grateful for the help of all those who sent us the data, links and information. Together we can make this world a better place!

Gist updates

@scry3r
scry3r / vlc.html
Created February 23, 2017 14:27 — forked from mylesjao/vlc.html
vlc web plugin sample. only for IE and Firefox
<!DOCTYPE html>
<html>
<body>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
</head>
<object
@scry3r
scry3r / quick_sort.c
Created November 28, 2016 15:55 — forked from mbalayil/quick_sort.c
Quick Sort using recursion in C
/** Divide : Partition the array A[low....high] into two sub-arrays
* A[low....j-1] and A[j+1...high] such that each element
* of A[low....j-1] is less than or equal to A[j], which
* in turn is is less than or equal to A[j+1...high]. Compute
* the index j as part of this partitioning procedure.
* Conquer : Sort the two sub-arrays A[low....j-1] and A[j+1....high]
* by recursive calls to quicksort
**/
#include<stdio.h>
#!/bin/sh
if [ $# -eq 2 ]
then
proc=`pgrep $2`
if [ "${proc:-null}" = null ]; then
echo 'Process not running'
else
killall $2
fi
else