$ docker run --rm --name c1 --ipc shareable -it ubuntu:18.04 /bin/bash
# mkfifo /dev/shm/mypipe
# echo "Hello from C1" > /dev/shm/mypipe
$ docker run --rm --name c2 --ipc container:c1 -it ubuntu:18.04 /bin/bash
def get_video_url(url): | |
videos = [] | |
params = [] | |
addon_log(url) | |
xbmc.log(url, level=xbmc.LOGWARNING) | |
quality = (Addon.getSetting('qualityType')).lower() | |
resp = api_hotstar_request(url, auth=True) | |
manifest1 = resp['body']['results']['item']['playbackUrl'] | |
addon_log('manifest1 is, '+manifest1) |
Prevent creation of vmmem files in VMware (Windows)
VMWare creates .vmem
files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.
Add the following lines to the .vmx
file to prevent creation of .vmem
files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.
#!/usr/bin/sh | |
echo "[+] Checking for updates..." | |
path_bases_cav="/c/Program Files/COMODO/COMODO Internet Security/scanners/bases.cav" | |
update_url="http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav" | |
hash_check () { | |
# Download first 256 bytes (after header) of remote stream | |
tmp_first_256_remote=`mktemp` |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
void genMatrix(char mat[5][5], char str[]) { | |
for (int i = 0; i < 25; i++) { | |
int m = (i * 2) % 25; | |
int f = (i * 7) % 25; | |
mat[m/5][m%5] = str[f]; | |
} |
Environment: Windows 7 SP1 x86
pip install unicorn
pip install angr
.ATmega328 | |
; Ida avr.cfg (c) THANATOS | |
SUBARCH=5 | |
RAM=2048 | |
ROM=32768 | |
EEPROM=1024 | |
; MEMORY MAP |