Skip to content

Instantly share code, notes, and snippets.

View drnikki's full-sized avatar

Dr. Nikki Stevens drnikki

View GitHub Profile
@drnikki
drnikki / about.md
Created August 10, 2011 01:02 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@drnikki
drnikki / .gitconfig
Created November 30, 2011 18:58 — forked from joshuajabbour/.gitconfig
Git Config: Rename this file ".gitconfig" and place inside your home directory.
##
# This file should be renamed ".gitconfig" and placed inside your home directory.
##
[user]
name = YOUR_NAME
email = YOUR_EMAIL
[github]
user = YOUR_GITHUB_USERNAME
token = YOUR_GITHUB_TOKEN
@drnikki
drnikki / git last
Created November 30, 2011 18:59 — forked from joshuajabbour/git last
Shows all local and remote commits for X user over the last Y days. Add to your .gitconfig -- Usage: `git last Y X` (author name can be partial)
[alias]
last = "!fn() { S=1; A=`git config --get user.name`; if [ -n \"$1\" ]; then S=\"$1\"; shift; fi; if [ -n \"$1\" ]; then if [ \"$1\" != \"me\" ]; then A=\"$1\"; fi; shift; fi; git log -i --since=\"$S days ago\" --author=\"$A\" --branches --remotes --format='%C(yellow)%t%Creset %s (%an)' \"$@\"; }; fn"
@drnikki
drnikki / google_twunter_lol
Created July 30, 2012 20:04 — forked from jamiew/google_twunter_lol
All the dirty words from Google's "what do you love" project: http://www.wdyl.com/
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,
mkdir /var/selenium
cd /var/selenium
# get selenium jar
wget http://selenium-release.storage.googleapis.com/2.46/selenium-server-stan dalone-2.46.0.jar
#install java
sudo apt-get install openjdk-7-jre-headless.
# get headless browser
sudo apt-get install firefox.
@drnikki
drnikki / phpmd_drupal_ruleset.xml
Created February 21, 2017 19:17 — forked from therealssj/phpmd_drupal_ruleset.xml
PHP Mess Detector Ruleset for Drupal.
<?xml version="1.0"?>
<ruleset
name="PMD Ruleset for Drupal"
xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd"
>
<rule ref="rulesets/unusedcode.xml" />
<rule ref="rulesets/codesize.xml">
<exclude name="ExcessiveMethodLength" />
@drnikki
drnikki / oct-30-gov-notes.md
Last active October 31, 2017 16:52 — forked from AlannaBurke/oct-30-gov-notes.md
Oct 30 Governance Meeting Notes/Takeaways

Attendees: Alanna (leading), Nikki, Tara, Fatima, Lyndsey, Heather, Rachel (7 total)

We need a clear values statement, which should include why this statement is necessary - why not having one is adversely affecting the community and what the purpose is.

Instead of worrying about getting the whole community on board, the statment should reflect how things are going forward, full stop.

We need a very clear CoC, which should include as much as we possibly can (look at examples like Geek Feminism) (most agreed to this, some did not) to be clear so there is no question what is not allowed and what the consequences will be. Use language like "includes but is not limited to"

Implementation details to be worked out later (do you agree to CoC by creating a d.o account? downloading Drupal? etc)

@drnikki
drnikki / archive-all-facebook-messages.js
Created April 22, 2018 02:04 — forked from elibosley/archive-all-facebook-messages.js
Archive all of the messages in your Facebook Messages Inbox
function archive_all(testOnly) {
messages = $("._5blh")
console.log("Found", messages.length, "messages on messsenger.");
if (!testOnly) {
for (i = 0; i < messages.length; i++) {
try {
messages[i].click()// open dialog
$("li:contains('Archive')").last().click()