Skip to content

Instantly share code, notes, and snippets.

Avi Zurel KensoDev

Block or report user

Report or block KensoDev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:b501029d2540c90ea14f848079fe5b1b
function isGreatThanTen(num) {
if (num > 10) {
return true
}
return false;
}
View gist:54004b1fe7ddd63aefaab49940aafb90
Performing ProcessImagesJob from DelayedJob(high_priority) with arguments: "GalleryImage", 69953, "image", ["small", "medium"]
GalleryImage Load (1.2ms) SELECT "gallery_images".* FROM "gallery_images" WHERE "gallery_images"."id" = $1 LIMIT 1 [["id", 69953]]
assets-funzing-dev.s3.amazonaws.com
443
0
1
false
assets-funzing-dev.s3.amazonaws.com
View gist:609d1d13b3f745ed9d9b8d992efdfd1c
8.8.8.8 10 ms 10 ms 9 ms 21 ms 48 ms 77 ms 10 ms 22 ms 10 ms 49 ms 26.60
8.8.4.4 10 ms 10 ms 11 ms 9 ms 31 ms 172 ms 11 ms 38 ms 10 ms 10 ms 31.20
cloudflare 10 ms 10 ms 11 ms 11 ms 17 ms 11 ms 10 ms 15 ms 11 ms 15 ms 12.10
level3 15 ms 10 ms 10 ms 9 ms 11 ms 12 ms 11 ms 14 ms 10 ms 12 ms 11.40
google 19 ms 9 ms 13 ms 28 ms 51 ms 68 ms 14 ms 22 ms 10 ms 29 ms 26.30
quad9 11 ms 10 ms 16 ms 17 ms 10 ms 22 ms 21 ms 32 ms 20 ms 65 ms 22.40
freenom 33 ms 47 ms 34 ms 31 ms 75 ms 93 ms 32 ms 49 ms 44 ms 62 ms 50.00
opendns 10 ms 11 ms 22 ms 39 ms 11 ms 49 ms 10 ms 48 ms 10 ms 21 ms 23.10
norton 13 ms 11 ms 14 ms 11 ms 12 ms 16 ms 11 ms 11 ms 11 ms 12 ms 12.20
cleanbrowsing 18 ms 36 ms 24 ms 18 ms 18 ms 159 ms 18 m
View check.py
import csv
import urllib2
import sys
import multiprocessing
with open("users.csv", 'r') as csvfile:
rows = [row for row in csv.reader(csvfile)]
csvfile.close()
def check(row):
View gist:9e4c695be2cd3cab5f041377717caab4
CarrierWave.configure do |config|
if S3_SECRET && !Rails.env.test?
config.fog_provider = 'fog/aws'
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: S3_ACCESS_KEY,
aws_secret_access_key: S3_SECRET
}
config.fog_directory = S3_BUCKET
config.fog_public = true
View gist:8e3f31d9c850787f743db906809f6f01
function checkObj(checkProp) {
// We check that the object has a propery
if(myObj.hasOwnProperty(checkProp)) {
return myObj[checkProp];
}
// We did not find anything
return "Not Found";
}
View gist:b368280471a4057136b36e4078648fda
TODO:
[] Add a login screen.
We use Auth0 for login, so we need to integrate the lock into the app.
When you are logged out, you will see the login screen. Once you login, we
store your token in local storage and you can see the other parts of the
application.
View instances.json
{
"DBInstances": [
{
"PubliclyAccessible": false,
"MasterUsername": "mymasteruser",
"MonitoringInterval": 0,
"LicenseModel": "general-public-license",
"VpcSecurityGroups": [
{
"Status": "active",
View x.json
{
"Volumes": [
{
"AvailabilityZone": "us-west-2a",
"Attachments": [
{
"AttachTime": "2013-09-17T00:55:03.000Z",
"InstanceId": "i-a071c394",
"VolumeId": "vol-e11a5288",
"State": "attached",
View main.go
package main
import (
"fmt"
"io/ioutil"
"os"
"github.com/Jeffail/gabs"
)
You can’t perform that action at this time.