Skip to content

Instantly share code, notes, and snippets.

View shelbyKiraM's full-sized avatar

Shelby Kira Marvell shelbyKiraM

View GitHub Profile
```
LL OOO VV VV EEEEEEE
LL OO OO VV VV EE
LL OO OO VV VV EEEEE
LL OO OO VVVV EE
LLLLLL OOO VV EEEEEEEE
```
```
LLLL OOOOOO LLLL
#####
# OS X temporary files that should never be committed
.DS_Store
*.swp
*.lock
profile
#####
# DotEnv files
.env
@shelbyKiraM
shelbyKiraM / bot.php
Last active July 17, 2019 16:45
Bot message for California law
<?php if (preg_match('/bot.php/', $_SERVER['REQUEST_URI'])) : //hi
?><!DOCTYPE html><html><head><title>Bot message</title></head>
<body><br /><br /></div><?php endif; ?><script>
function loadStyle(href, callback){
// avoid duplicates
for(var i = 0; i < document.styleSheets.length; i++){
if(document.styleSheets[i].href == href){
return;
}
}
Verifying my Blockstack ID is secured with the address 1HG24nAbFje5hXaSM5P3Mqf2WQ9pcF8rCU https://explorer.blockstack.org/address/1HG24nAbFje5hXaSM5P3Mqf2WQ9pcF8rCU
Verifying my Blockstack ID is secured with the address 1FByev2EkUeg6QtgcJ693Yq4NxzkW8twjY https://explorer.blockstack.org/address/1FByev2EkUeg6QtgcJ693Yq4NxzkW8twjY
@shelbyKiraM
shelbyKiraM / cp.zsh
Last active January 24, 2019 21:27
ZSH function overwriting the shell built-in `cp`, using `rsync` with a progress bar.
function cp() {
if [ -f "$1" ];then
SIZE="$(stat -f '%z' "$1")"
if [ -e "$2" ];then
echo "File exists. Overwrite (Y/n)? "
read todo
if [ "$todo" = "y" ] || [ "$todo" = "Y" ] || [ "$todo" = "Yes" ] \
|| [ "$todo" = "yes" ] || [ "$todo" = "" ];then
echo "Overwriting $2 with $1"
else

Keybase proof

I hereby claim:

  • I am marv3lls on github.
  • I am marv3lls (https://keybase.io/marv3lls) on keybase.
  • I have a public key ASACRu3b_nde38Jd661RuH2tFI-PI0_vRVZLv9qIfPgKfgo

To claim this, I am signing this object:

server {
server_name cudd.li www.cudd.li;
listen 80;
return 301 https://cudd.li$request_uri;
}
server {
server_name cudd.li www.cudd.li;
listen 443 ssl http2;
index index.php index.html index.htm;
root /home/user/http/cuddli;

Keybase proof

I hereby claim:

  • I am blacRose on github.
  • I am smunsch (https://keybase.io/smunsch) on keybase.
  • I have a public key whose fingerprint is 6CE9 1AFB 141A 909E C290 9CE5 B85A 36BC 293E CF41

To claim this, I am signing this object:

function http() {
echo 'Loading...\n'
wget http://http.cat/$1 >/dev/null 2&> $1.chk
grep "ERROR 404" $1.chk >/dev/null
if [ $? = 1 ]; then
mv $1 $1.jpg
qlmanage -p $1.jpg >/dev/null 2&> /dev/null
osascript -e '
tell app "iTerm"
reopen