Skip to content

Instantly share code, notes, and snippets.

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

_scry3r_ scry3r

:octocat:
^_^
View GitHub Profile
@scry3r
scry3r / config
Created October 12, 2017 16:33
i3-gaps config
# General format of my i3 configuration file
# Uses colors from .Xresources to color windowborders
# Now it uses polybar for configuration.
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
@scry3r
scry3r / Vagrantfile
Created October 11, 2017 16:35
Vagrantfile
Vagrant.configure("2") do |config|
# config.ssh.username = 'root'
# config.ssh.password = 'vagrant'
# config.ssh.insert_key = 'false'
config.ssh.keys_only = false
config.ssh.forward_agent = true
Vagrant::Config.run do |config|
config.vm.network :bridged
end
# (1..3).each do |i|
@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
- name: run main ldap container
docker:
image=muzili/ldap
name=ldap-server
hostname=ldap-server
state=running
ports=389:389
env:
SLAPD_PASSWORD: somepass
SLAPD_DOMAIN: ldap.ua2web.com
conky.config = {
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window_colour = '#000000',
own_window_class = 'Conky',
minimum_width = 300,
minimum_height = 150,
maximum_width = 1000,
#!/bin/bash
#Root perm
sudo su
# get latest docker compose released tag
COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)
# Install docker-compose
sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
#!/bin/sh
confirm () {
read -r -p "${1:-Are you sure? [y/N]} " response
case $response in
[yY][eE][sS]|[yY])
# true
echo 1;
;;
*)

#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>