Skip to content

Instantly share code, notes, and snippets.

View aslafy-z's full-sized avatar

Zadkiel AHARONIAN aslafy-z

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aslafy-z on github.
  • I am zadki3l (https://keybase.io/zadki3l) on keybase.
  • I have a public key whose fingerprint is 5C78 B85E 5739 AD19 A2AB 0EF4 4614 FD47 1243 BADA

To claim this, I am signing this object:

<script>
// A simple function to copy a string to clipboard. See https://github.com/lgarron/clipboard.js for a full solution.
var copyToClipboard = (function() {
var _dataString = null;
document.addEventListener("copy", function(e){
if (_dataString !== null) {
try {
e.clipboardData.setData("text/plain", _dataString);
e.preventDefault();
@aslafy-z
aslafy-z / gmaps-rightclick-contextmenu.html
Last active July 31, 2016 13:11
Context menu over google maps
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/swisnl/jQuery-contextMenu/master/dist/jquery.contextMenu.min.css">
</head>
<body>
<div id="map"></div>
<script src="https://maps.googleapis.com/maps/api/js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdn.rawgit.com/swisnl/jQuery-contextMenu/master/dist/jquery.contextMenu.min.js"></script>
#!/usr/bin/perl -w
use strict;
use IO::Socket::INET;
use IO::Socket::SSL;
use Getopt::Long;
use Config;
#./ddos.pl -dns ip -port 80 -num 500
$SIG{'PIPE'} = 'IGNORE'; #Ignore broken pipe errors
print <<EOTEXT;
@aslafy-z
aslafy-z / export_chrome_to_enpass.js
Last active October 19, 2016 23:42 — forked from beaverb1ll/ExportChromePasswords.js
export_chrome_to_enpass.js
var row='';
var pm = PasswordManager.getInstance();
var model = pm.savedPasswordsList_.dataModel;
var pl = pm.savedPasswordsList_;
for(i=0;i<model.length;i++){
PasswordManager.requestShowPassword(i);
};
setTimeout(function(){
row += 'url,username,password,extra,name,grouping,fav';
for(i=0; i<model.length; i++) {
@aslafy-z
aslafy-z / disable_journaling.c
Created October 25, 2016 11:42
Little program allowing disabling of hfsplus journaling within linux. Tooked from: https://ubuntuforums.org/showthread.php?t=1420673&p=10303113#post10303113
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <byteswap.h>
@aslafy-z
aslafy-z / howto-hearthstone-archlinux.md
Last active November 4, 2022 11:17
Install Hearthstone on Archlinux

Dependencies

Installation

  • Open PlayOnLinux
@aslafy-z
aslafy-z / snippy.sh
Created April 13, 2017 10:56 — forked from coderofsalvation/snippy.sh
modified version of snippy which features easier installation, follows symlinks, bashdown templates and automatic detection of cli vs window
#!/bin/bash
# video demo at: http://www.youtube.com/watch?v=90xoathBYfk
# written by "mhwombat": https://bbs.archlinux.org/viewtopic.php?id=71938&p=2
# Based on "snippy" by "sessy"
# (https://bbs.archlinux.org/viewtopic.php?id=71938)
#
# You will also need "dmenu", "xsel" and "xdotool". Get them from your linux
# distro in the usual way.
#
@aslafy-z
aslafy-z / .Xresources
Created April 14, 2017 15:42
Rofi configuration
rofi.color-enabled: true
rofi.scroll-method: false
rofi.hide-scrollbar: true
! Background Foreground Background Alternate Highlight Background Highlight Foreground
rofi.color-window: #BB000000, #BB000000, #BB000000
rofi.color-normal: #00000000, #AADEDEDE, #00000000, #00000000, #AA1793D1
rofi.color-active: #00000000, #AADEDEDE, #00000000, #00000000, #AAFF0000
rofi.color-urgent: #00000000, #CCDEDEDE, #00000000, #00000000, #AAFF0000
rofi.levenshtein-sort: true
@aslafy-z
aslafy-z / glusterfs-kubernetes-3.12.patch
Created September 1, 2017 22:04
apply with `patch -p0`
diff --git deploy/kube-templates/glusterfs-daemonset.yaml deploy/kube-templates/glusterfs-daemonset.yaml
index d291e78..e04d8f4 100644
--- deploy/kube-templates/glusterfs-daemonset.yaml
+++ deploy/kube-templates/glusterfs-daemonset.yaml
@@ -20,7 +20,7 @@ spec:
storagenode: glusterfs
hostNetwork: true
containers:
- - image: gluster/gluster-centos:latest
+ - image: zadki3l/glusterfs:3.12