Skip to content

Instantly share code, notes, and snippets.

Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
Do While True
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (6000)
Loop
@loop
loop / whatsnew
Created July 25, 2017 18:35
whatsnew
#!/bin/sh
# up - script to keep your Mac up-to-date (both OS and Homebrew updates) via the command line
# run thus to to install: cd /usr/local/bin && curl -s -O https://gist.githubusercontent.com/mayel/e681a6175bf17366a16e03006d7feac2/raw/bb4ddb0c4842f5633fa1f29df61c433760c4affe/up && chmod 755 /usr/local/bin/up
# and then run it anytime by simply entering the command: up
# By https://github.com/mayel based on a script by https://github.com/imwally
# homebrew
Technical Interview Questions
=============================
**General**
- Find the most frequent integer in an array
- Find pairs in an integer array whose sum is equal to 10 (bonus: do it in linear time)
- Given 2 integer arrays, determine of the 2nd array is a rotated version of the 1st array.
```Ex. Original Array A={1,2,3,5,6,7,8} Rotated Array B={5,6,7,8,1,2,3}```
- Write fibbonaci iteratively and recursively (bonus: use dynamic programming)
@loop
loop / pagesToPDF.applescript
Created October 15, 2015 19:33
convert pages to pdf applescript
set theFolder to choose folder with prompt "Select folder with original pages files :"
--Do it
tell application "Finder"
set theNames to name of files of theFolder ¬
whose name extension is "pages"
end tell
-- How many files to export
set item_count to (get count of items in theNames)

Restart BitTorrent Sync ~/btsync/btsync --config ~/.btsync/btsync.conf

Restart SickRage Activate virtualenv

source ~/virtualenv/bin/activate

python ~/SickRage/SickBeard.py -d -p XXXXX (Port number, default is 8081). If not known check nano ~/SickRage/config.ini

@loop
loop / install_player_state_virtualbox_fedora
Created January 9, 2015 16:20
Installing Player/Stage and development tools on Fedora 15 through Virtualbox
After quite some struggles, I finally managed to get the Player / Stage stack installed exactly the way I wanted it. It gave me quite a headache, so I thought it would be a good thing to share (so other people don’t have to go through the same thing).
First of all, my perfect setting was to set my environement up through VirtualBox. This is because Player / Stage is still quite rough and requires packets and tinkering I did not want to occur on my stable work machine. However, I wanted to develop through my normal Eclipse (in my host operating system) as that was already all set-up and I didn’t want to get into performance issues through the Virtual Machine. Knowing all of that, I made the following choices :
Virtualbox
Easy to install, widespread and I knew it already
Fedora 15
This was an easy choice, as it was recommended on the player / stage download page – Fedora already has the player / stage packets in it’s official repositories, making things a lot easier.
OpenJDK
I wasn’t 100% sure it would all work
@loop
loop / howto__install_javasdk_ubuntu
Created January 9, 2015 16:18
Installing Java SDK on Ubuntu
I recommend...
1. Download Java JDK
Download the 32Bit JDK right from SUN.
You want this: jdk-6-linux-i586.bin
2. Download Eclipse
Download the 32Bit Eclipse right from eclipse.org
You want this: eclipse-SDK-3.2.1-linux-gtk.tar.gz

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
> "www.theverge.com/2014/7/31/5954891/best-drone-you-can-buy"
"Trending now For flying, for photos — there's no cooler toy right now than a drone By Ben Popper on July 31, 2014 12:00 pm 5Comments The word drone has a lot of different meanings: military craft, research tool, delivery robot. But for the average civilian, drone means a high-tech toy. Maybe you’ve seen one flying at your local park or caught some viral video footage of a drone swooping through a fireworks display. Even people like Martha Stewart are suddenly penning love letters to their drones. If you’ve ever wondered whether it would be fun, easy, and affordable to own one yourself, we’re here to tell you it’s possible. The word drone has a lot of different meanings: military craft, research tool, delivery robot. But for the average civilian, drone means a high-tech toy. Maybe you’ve seen one flying at your local park or caught some viral video footage of a drone swooping through a fireworks display. Even people like Martha Stewart are suddenly
@loop
loop / Installed brew packages
Created July 26, 2014 21:18
Installed brew packages
apple-gcc42 gtk+ openssl
archey harfbuzz ossp-uuid
atk icu4c pango
autoconf jpeg pixman
automake libffi pkg-config
cairo libgpg-error postgresql
fontconfig libksba python
freetype libpng readline
gdbm libtiff scala
gdk-pixbuf libtool sqlite