This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: Alexander <estliberitas> Makarenko | |
| * Date: 04.01.13 | |
| * Time: 3:25 | |
| */ | |
| // http://stackoverflow.com/questions/19498796/how-to-let-tor-change-ip-in-nodejs | |
| // $ nodejs tor-identity.js /home/ubuntu/.tor/control_auth_cookie | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --!/usr/bin/env lua | |
| local delpattern = KEYS[1] | |
| local count = 0 | |
| local valuelist = redis.call('keys', delpattern) | |
| if valuelist then | |
| for i = 1, #valuelist do | |
| redis.call('del', valuelist[i]) | |
| count = count + 1 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| Author: Casey Smith @subTee | |
| License: BSD3-Clause | |
| .SYNOPSIS | |
| Simple Reverse Shell over HTTP. Execute Commands on Client. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Tutorial: http://gloriouseggroll.tv/arch-linux-efi-install-guide/ | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setup bios | |
| disable secure boot control | |
| enable csm & disable pxe oprom policy | |
| wifi-menu | |
| ping -c3 www.google.com | |
| lsblk | |
| cfdisk /dev/sda | |
| mkfs.ext4 /dev/sda7 | |
| mkfs.ext4 /dev/sda8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type debugMutex struct { | |
| name string | |
| mux sync.Mutex | |
| } | |
| func (d *debugMutex) Lock() { | |
| d.print("Lock") | |
| d.mux.Lock() | |
| d.print("Lock after") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Powershell script for installing taurus dependencies on a windows10 machine using conda | |
| # I use it for provisioning a vagrant win10 machine | |
| # Install SSL as a workaround for conda bug https://github.com/conda/conda/issues/6064 | |
| echo "Installing SSL" | |
| wget "https://slproweb.com/download/Win64OpenSSL-1_1_1a.msi" -OutFile "$env:TMP\SSL.msi" | |
| msiexec /quiet /i "$env:TMP\SSL.msi" | |
| echo "Downloading conda" | |
| $condainstallerurl = "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" | |
| $condainstaller = "$env:TMP\\Miniconda3-latest-Windows-x86_64.exe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INPUT: | |
| MAXFLDUR(15), //Max Flag Duration | |
| FLAGMIN(2.5), // Max Atr in lowest point in flag | |
| PX(23), //Max Pole Duration. | |
| UPT1BARS(70), // Bars for Uptrend leading to flag | |
| POLEMIN(5.5), //Min ATR Height of the pole | |
| LBF(50), // Min distance between flags | |
| ATRmin(5),// Min volatility change | |
| K(1.2), //Profit Target constant | |
| timeexit(100), //Time exit bars |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs'); | |
| //this is the path that QTNetwork classes uses for caching files for it's http client | |
| //the path should be the one that has 16 folders labeled 0,1,2,3,...,F | |
| exports.cachePath = '/path/to/phantomjs/cache/data/folder'; | |
| //this is the extension used for files in the cache path | |
| exports.cacheExtension = "d"; | |
| //the resources that are to be saved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # cvt 2560 1440 30 | |
| # xrandr --newmode "2560x1440_30.00" 146.25 2560 2680 2944 3328 1440 1443 1448 1468 -hsync +vsync | |
| # xrandr --addmode HDMI-1 2560x1440_30.00 | |
| # xrandr --output HDMI-1 --mode 2560x1440_30.00 | |
| # This one is easier on the eyes than 3840x2160 @24Hz: | |
| # cvt -r 2560 1440 60 | |
| # 2560x1440 59.95 Hz (CVT 3.69M9-R) hsync: 88.79 kHz; pclk: 241.50 MHz |
OlderNewer