Skip to content

Instantly share code, notes, and snippets.

View Rashidsalim's full-sized avatar

Rashid Salim Rashidsalim

View GitHub Profile
This file has been truncated, but you can view the full file.
[
{
"id": 1429,
"title": "Skippy Peanut Butter Creamy 6x1Kg",
"link": "https://bulkbox.co.ke/skippy-peanut-butter-creamy-6x1kg/",
"image_link": "https://d264pgy0lrqi5f.cloudfront.net/images/detailed/3/1205.Skippy_Peanut_Butter_Creamy_6x1kg.jpg?t=1584563033",
"price": 7638,
"availability": "A",
"brand": "Skippy",
"categories": "Grocery///Honey, Jams & Spreads///Nut & Seed Butters",
@nickferrando
nickferrando / imagemagick-ubuntu.txt
Last active April 30, 2025 20:35
Install ImageMagick with JPG, PNG and TIFF Delegates - Ubuntu (20.04)
#These are the steps required in order to Install ImageMagick with JPG, PNG and TIFF delegates.
sudo apt-get update
#Install Build-Essential in order to configure and make the final Install
sudo apt-get install build-essential
#libjpg62-dev required in order to work with basic JPG files
@eddmann
eddmann / handler.js
Created November 7, 2017 13:32
Scheduled Start/Stop of EC2 Instances using Lambda and Serverless (Extra)
'use strict';
const AWS = require('aws-sdk');
module.exports.stateChange = (event, context, callback) => {
const { state, id, region } = event;
const ec2 = new AWS.EC2({ region });
ec2[`${state}Instances`]({ InstanceIds: [id] }).promise()
@eddmann
eddmann / modify-ec2-instance-type.js
Created November 3, 2017 15:32
Scheduled EC2 Instance Type Modification using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/_gJyK1-NGq8
// ModifyEC2InstanceType
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const { instanceId, instanceRegion, instanceType } = event;
const ec2 = new AWS.EC2({ region: instanceRegion });
@eddmann
eddmann / start-stop-ec2-instances.js
Created November 3, 2017 14:00
Scheduled Start/Stop of EC2 Instances using Lambda and CloudWatch Events
// Demonstration video can be found at: https://youtu.be/roAerKVfq-Y
// StopEC2Instance
const AWS = require('aws-sdk');
exports.handler = (event, context, callback) => {
const ec2 = new AWS.EC2({ region: event.instanceRegion });
ec2.stopInstances({ InstanceIds: [event.instanceId] }).promise()
@JonnyWong16
JonnyWong16 / share_unshare_libraries.py
Last active March 28, 2025 18:26
Automatically share and unshare libraries for Plex users
# Run this script using "share" or "unshare" as arguments:
# To share the Plex libraries:
# python share_unshare_libraries.py share
# To unshare the Plex libraries:
# python share_unshare_libraries.py unshare
import requests
import sys
from xml.dom import minidom
@baali
baali / dlAttachments.py
Created May 8, 2012 08:32
Python script to download all gmail attachments.
# Something in lines of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail
# Make sure you have IMAP enabled in your gmail settings.
# Right now it won't download same file name twice even if their contents are different.
import email
import getpass, imaplib
import os
import sys
detach_dir = '.'