Skip to content

Instantly share code, notes, and snippets.

package co.ryred.rybot;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
/**
* Created by rissa on 01/07/2015.
/*
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft
*
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval
*
*/
package com.empireminecraft.util.serialization;
import com.empireminecraft.util.Util;
@jinyeow
jinyeow / bspwmrc
Last active November 7, 2022 13:30
Config files related to bspwm and panel (lemonbar)
#!/bin/zsh
ws1= # main
ws2= # web
ws3= # mail
ws4= # code
ws5= # math [infinity]  (term icon)
ws6= # media
ws7= # misc  (9 squares icon)
ws8= # notes/docs  (pdf icon)
@aichbauer
aichbauer / apache, php, mysql for MAC OS X 10.11
Last active January 26, 2021 10:01
How to install or run apache, php, and mysql on Mac OSX 10.11 with the Terminal
/**ALLOW HIDDEN FOLDER**/
defaults write com.apple.finder AppleShowAllFiles YES
sudo killall Finder
/**APACHE**/
sudo apachectl start
sudo apachectl stop
sudo apachectl restart
@manichabba
manichabba / jsonscraping.py
Created August 20, 2016 01:17
====Extracting Data from JSON: ==== The program will prompt for a URL, read the JSON data from that URL using urllib and then parse and extract the comment counts from the JSON data, compute the sum of the numbers in the file and provide the sum.
import urllib #importing urllib
import json #importing json
#requesting a json file url
url = raw_input("Enter the URL:")
#load json file as list -info
info = json.loads(urllib.urlopen(url).read())
x = 0
#loop through each item in list comments
@Signifies
Signifies / Net Neutrality
Created July 13, 2017 04:25
Net Neutrality
So, I usually don't make posts like this on Facebook, but this one is truly important to myself and should be important to practically everyone in the United States and around the world. I'm talking about Net Neutrality.
A great video explanation of what Net Neutrality is. (With CC)
https://vimeo.com/222706185
Here are a couple of good articles.
https://www.savetheinternet.com/net-neutrality-what-you-need-know-now
https://www.battleforthenet.com/#widget-learn-more
@Signifies
Signifies / Research on PANDAS-PANS
Last active September 20, 2017 18:06
My personal notes and research on PANDAS/PANS (Pediatric, Autoimmune, Neuropsychological, Disorder, Associated with Streptococcal Infections)
# Leaving this public for all to notate and to read.
# Updated, 27/08/2017 - EJS.
# Special mentions to my mom. for finding this data.
http://m.huffpost.com/us/entry/us_57f8399fe4b0b665ad817fea
https://www.google.com/amp/s/www.psychologytoday.com/blog/attention-please/201501/adult-pandas-seek-and-ye-shall-find%3famp
https://www.psychologytoday.com/blog/attention-please/201102/evil-pandas-scourge-the-brain
@Signifies
Signifies / Lemons-music.txt
Last active August 20, 2021 19:33
This selection was created by my friend Lemon for a research project on the compositional and musical effect in Latin/south American culture
Salsa :
Llorarás- Oscar D’León
El Cantante -Héctor Lavoe
El Preso- Fruko y sus Tesos
La Rebelión -Joe Arroyo
Cali Pachanguero-Grupo Niche
Carnaval -Celia Cruz
Aguanile -Marc Anthony
La Murga- Héctor Lavoe & Willie Colon
Idilio-Willie Colin
@Signifies
Signifies / backup-script.sh
Last active August 22, 2023 22:11
Backup script for parrotos. Will commit updates later.
#!/bin/bash
echo "Starting file system backup."
cd
cd Desktop
if [! -d "$backups" ];
then mkdir "$backups" ;
# Not sure if I did this correctly. Will test tomorrow...
tar -cvpzf parrotos-backup.tar.gz --exclude=/parrotos-backup.tar.gz \ --exclude=/proc \ --exclude=/tmp \ --exclude=/mnt \ --exclude=/dev \ --exclude=/sys \ --exclude=/run \ --exclude=/media \ --exclude=/var/cache/apt/archives \ --exclude=/usr/src/linux-headers* \ --exclude=/home/*/.gvfs \ --exclude=/home/*/.cache /