I hereby claim:
- I am zyber17 on github.
- I am zackary (https://keybase.io/zackary) on keybase.
- I have a public key whose fingerprint is 8BB1 13B9 436C 5FD0 FC63 D88A 5469 4C69 FB58 3F7F
To claim this, I am signing this object:
| tell application "System Events" | |
| keystroke (the clipboard) | |
| end tell |
| const fbGen = (fbValues, min, max) => | |
| Array.apply(null, Array(max - min + 1)) | |
| .map((val, i) => min + i) | |
| .map(val => | |
| fbValues.reduce( | |
| (accum, fbVal) => | |
| val % fbVal.number === 0 ? `${accum}${fbVal.text}` : accum, | |
| '' | |
| ) || val | |
| ) |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| -ms-box-sizing: border-box; | |
| -o-box-sizing: border-box; | |
| box-sizing: border-box; |
| repeat | |
| tell application "System Events" to set CalIsRunning to (name of processes) contains "Calendar" | |
| tell application "Calendar" | |
| if CalIsRunning is false then | |
| activate | |
| delay 10 # If Calendar isn't running and needs to be launched, the script will fail becuase Calendar isn't ready to accept commands as soon as it's launched. | |
| end if | |
| set workEvents to (get events of calendar "Calendar 1") | |
| set testEvents to (get events of calendar "Calendar 2") | |
| set testEventDates to {} |
I hereby claim:
To claim this, I am signing this object:
| import webbrowser | |
| import urllib | |
| import sys | |
| url = sys.argv[1] | |
| text = url.encode('utf-8') | |
| text = urllib.quote(text, safe='') | |
| go = urllib.quote('launchpro://messaging?body='+text, safe='') |
| rule 'Move folders from one directory to another' do | |
| folder_destination = '[the path of the directory to where we want the folder moved]' | |
| if File.directory?(folder_destination) #Let's make sure that the directory we want to move the folder to exists | |
| dir('[the direcotry where we are getting the folder from]').each do |folder| #Let's grab all the potential folders | |
| if File.directory?(folder) #Let's check and see if this item is a folder | |
| file_destination = folder_destination + File.basename(folder) #Let's get the path to the folder we're about to create | |
| mkdir(file_destination) #We need to make the 'moved' folder where we're going to put the files from the original folder | |
| move(dir("#{folder}/*"), file_destination) #Now we can move the files | |
| trash(folder) #Finally, let's trash the original folder | |
| end |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| sudo service apache2 stop | |
| sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common | |
| sudo apt-get autoremove --purge | |
| sudo rm -Rf "$(whereis apache2)" | |
| sudo apt-get update -y | |
| sudo apt-get upgrade -y | |
| sudo apt-get install nginx nodejs npm g++ -y | |
| ln -s /usr/bin/nodejs /usr/bin/node | |
| npm install forever -g | |
| sudo apt-get update -y |
| var app, cluster, cpu, cpus, express, http, path, setup; | |
| cluster = require('cluster'); | |
| if (cluster.isMaster) { | |
| if (process.env.NODE_ENV === 'setup') { | |
| console.log('Starting setup process.'); | |
| express = require('express'); |