Skip to content

Instantly share code, notes, and snippets.


Zulhilmi Zainudin zulhfreelancer

View GitHub Profile

git clone and cd function

A simple little alias function that lets you clone and cd into a GitHub repo in one command.


Add to your zsh or bash config (usually ~/.bash_profile or ~/.zshrc) and open a new terminal to be able to use the function.


gcd [github_repo_owner/repo_name]
sebsto / code-stack.ts
Last active Oct 11, 2021
CDK Create EC2 instace in private subnet. Install Nginx.
View code-stack.ts
import ec2 = require('@aws-cdk/aws-ec2');
import cdk = require('@aws-cdk/core');
import { Fn, Tag, Resource } from '@aws-cdk/core';
import { AmazonLinuxImage, UserData, InstanceType } from '@aws-cdk/aws-ec2';
import { Role, ServicePrincipal, ManagedPolicy, CfnInstanceProfile } from '@aws-cdk/aws-iam'
* Create my own Ec2 resource and Ec2 props as these are not yet defined in CDK
* These classes abstract low level details from CloudFormation
larshaendler /
Created Jan 21, 2019
Rename multiple files with prefix or suffix in Linux console

Add a suffix

for file in *; do mv "$file" "$(basename "$file")yourSuffix"; done;

Exmpale to add an underscore "_" at the end each text file:

for file in *.txt; do mv "$file" "$(basename "$file")_"; done;

Add a prefix

View RDS-notes.MD

What does Amazon RDS manage on my behalf?

  • Amazon RDS manages the work involved in setting up a relational database: from provisioning the infrastructure capacity you request to installing the database software.
  • Once your database is up and running, Amazon RDS automates common administrative tasks such as performing backups and patching the software that powers your database.
  • With optional Multi-AZ deployments, Amazon RDS also manages synchronous data replication across Availability Zones with automatic failover.

How do I access my running DB instance?

  • Once your DB instance is available, you can retrieve its endpoint via the DB instance description in the AWS Management Console, DescribeDBInstances API or describe-db-instances command. image
lukehedger / HelloYou.sol
Created Nov 23, 2017 — forked from anonymous/HelloYou.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View HelloYou.sol
pragma solidity ^0.4.18;
// import './SomeContract.sol';
contract HelloYou {
event Hello(address you);
function sayHello() public {
address _person = msg.sender;
andy-piccalilli / .htaccess
Created Oct 23, 2017
.htaccess rules to place site in maintenance mode, but allow certain IP Address through
View .htaccess
RewriteEngine On
# Allow through given IP Address
RewriteCond %{REMOTE_ADDR} !^95\.128\.11\.149
# Check for presence of Maintenance Page
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
# Check for presence of enable file
RewriteCond %{DOCUMENT_ROOT}/maintenance.enable -f
clarkdave /
Last active Oct 26, 2020
#!/bin/bash -e
# Use this annotated script a base for launching an interactive console task on Amazon ECS
# more info:
# Requirements:
# - `jq` must be installed on both the client and server
justjanne / Price
Last active Oct 16, 2021 — forked from kylemanna/price.txt
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/
View Price

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/



Provider Type RAM Cores Storage Transfer Network Price
cheeaun /
Last active Jun 13, 2018
RedDotRubyConf 2016 links & resources 😘
maxivak /
Last active Jul 18, 2021
Sending emails with ActionMailer and Sidekiq

Sending emails with ActionMailer and Sidekiq

Send email asynchroniously using Sidekiq.


Create your mailer us usual: