Skip to content

Instantly share code, notes, and snippets.

View kevcjones-archived's full-sized avatar
👾
Reach out to me, happy to help anyone

Kevin C Jones kevcjones-archived

👾
Reach out to me, happy to help anyone
View GitHub Profile

Google+ JavaScript Community FAQs

These are frequently asked question in the JavaScript Community.

  1. How do I do thing in Java?

That's a great question! Please find a Java community on Google+ to ask. JavaScript is not the same as Java. Here's a good explanation of the differences between Java and JavaScript: http://www.dannyg.com/ref/javavsjavascript.html.

@kevcjones-archived
kevcjones-archived / howto-unlock-pdf
Last active June 20, 2022 02:19
Unlocking a PDF using ghostscript
required - install ghost script - e.g brew install ghostscript (takes a few minutes)
update this line as needed and run in terminal
-- New and updated thanks to comments --
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -SPDFPassword=THE_PASSWORD -sOutputFile=unencrypted.pdf -c .setpdfwrite -f 2017-06-13-11-55-56-188_14972345156188_XXXPT6345X_ITRV.pdf
-- Original --
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf
@kevcjones-archived
kevcjones-archived / yeoman-ember-jasmine-consolereporting
Created January 10, 2013 17:03
Setting up Yeoman with Ember and Jasmine - Workaround needed Also adding a reporter for more output in the phantomJS console.
*I found Yeoman wanted to use Mocha regardsless of the --test-framework i passed in*
$ yeoman init ember
$ yeoman init jasmine:app --force
*Then edit the grunt.js*
//line 50 - replace mocha with jasmine...
mocha: {
all: ['test/**/*.html']
@kevcjones-archived
kevcjones-archived / yeoman-ember-handlebars-setup
Last active December 10, 2015 23:48
yeoman-ember-handlebars not quite as simple if your using YEOMAN scaffolding - self reminder on what got me (since i'm new to grunt / npm etc etc)
The Grunt.js isn't handlebars ready - folling on from my last hiccups stuff
https://gist.github.com/4503821
//Turns out i need to hookup and write up the grunt stuff.
1. Install https://github.com/dgeb/grunt-ember-templates
2. Update the gruntfile
3. https://github.com/dgeb/grunt-ember-templates/issues/7 this was my issue, make sure you only use 0.2.0 until yeoman uses 0.4 grunt
4. https://github.com/dgeb/yeoman-ember-basic-example/ - follow these guys for setup tips and files...
@kevcjones-archived
kevcjones-archived / ssid_vpn
Last active December 20, 2015 07:49
ASUS script i need to WGET
#!/bin/sh
####### Interface Specific Settings #######
WRLSS_IF=wl0.1 # Name of the wireless interface that will be used.
WRLSS_IF_NTWK_ADDR=192.168.2.0 # Network address that the wireless interface will be on.
WRLSS_IF_INET_ADDR=192.168.2.1 # IP address that will be assigned to the wireless interface.
WRLSS_IF_NETMASK=255.255.255.0 # Netmask of the wireless network to be added.
TUN_IF=tun11 # Name of tunnel interface.
########## DHCP Specific Settings ###########
DHCP_OPT1=3 # dnsmasq option to specify router.
LS_TIME=86400s # Duration of the dhcp leases.
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=UK, ST=NR, L=Attleborough, O=Hide My Ass! Pro, OU=VPN, CN=vpn.hidemyass.com/[email protected]
Validity
Not Before: Jun 6 09:43:26 2009 GMT
Not After : Jun 4 09:43:26 2019 GMT
Subject: C=US, ST=CA, L=SanFrancisco, O=VPNUser, OU=User, CN=hmauser/[email protected]
# the admin password for all of the IE VMs is “Password1″ without the quotes, it's also used for the password hints
1) Install VirtuaBox on your mac
http://download.virtualbox.org/virtualbox/4.1.10/VirtualBox-4.1.10-76795-OSX.dmg
2) Decide which versions of Internet Explorer you want to download and install – each version of Internet Explorer is contained within a separate virtual machine that runs within VirtualBox. In other words, if you want to run Internet Explorer 7, 8, and 9, you will need to download three separate VM’s, which may take a while so keep that in mind. Select the text below and copy it:
# Install ALL versions of Internet Explorer: IE 7, IE 8, and IE 9 (for now this script will also pull down a IE 6 vm with windows xp)
#!/bin/bash
# Created by Håvard Fossli <[email protected]> in 2013
# This is free and unencumbered software released into the public domain.
# For more information, please refer to <http://unlicense.org/>
#
# Description
# A bash script for reversing videos using ffmpeg and sox.
#
# Keywords
@kevcjones-archived
kevcjones-archived / grunt-react-failtree
Last active January 3, 2016 06:19
grunt-react with grunt-browserify set direct to 1.3.0 fails to run, this is the tree in the folder (compare to https://gist.github.com/KevCJones/8421756)
[email protected] /XXXXX/Work/GITS/grunt-react
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
@kevcjones-archived
kevcjones-archived / grunt-react-successtree
Last active January 3, 2016 06:19
grunt-react with grunt-browserify set direct to 1.2.0 first and then patched does run, this is the tree in the folder (compare to https://gist.github.com/KevCJones/8421664)
[email protected] /XXXXX/Work/GITS/grunt-react
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]