Skip to content

Instantly share code, notes, and snippets.

View Tikam02's full-sized avatar
:octocat:
Focusing

Tikam Singh Alma Tikam02

:octocat:
Focusing
View GitHub Profile
@Tikam02
Tikam02 / .htaccess
Created August 8, 2022 14:35 — forked from lukecav/.htaccess
Browser caching for Apache
<IfModule mod_expires.c>
ExpiresActive On
# Images
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/avif "access plus 1 year"
ExpiresByType image/avif-sequence "access plus 1 year"
## useful refs
* https://realpython.com/deploying-a-django-app-to-aws-elastic-beanstalk/#Create.the.Admin.User
* https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
## CLI approach
1. Enter your project root (versioned with Git)
2. install awsebcli
2.1 if encountering trouble installing PyYAML, using prepackages wheel:
3. > eb init
@Tikam02
Tikam02 / bash-cheatsheet.sh
Created November 30, 2016 18:02 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@Tikam02
Tikam02 / graph_search.cpp
Created November 20, 2016 04:36 — forked from douglas-vaz/graph_search.cpp
Breadth First Search and Depth First Search in C++
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
class Node{
@Tikam02
Tikam02 / BFSDFS.java
Created November 20, 2016 04:35 — forked from gennad/BFSDFS.java
Breadth-first search and depth-first search Java implementation
Class Main {
public void bfs()
{
// BFS uses Queue data structure
Queue queue = new LinkedList();
queue.add(this.rootNode);
printNode(this.rootNode);
rootNode.visited = true;
while(!queue.isEmpty()) {
Node node = (Node)queue.remove();
@Tikam02
Tikam02 / dfs-bfs.c
Created November 20, 2016 04:34 — forked from dtinth/dfs-bfs.c
#include <stdio.h>
#include <stdlib.h>
#define NUM_VERTEX 10
struct Vertex {
char name;
int mark;
struct Node* list;
@Tikam02
Tikam02 / Graph.java
Created November 19, 2016 21:43 — forked from pxpc2/Graph.java
package us.brtm.cfg;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.LabelNode;
import org.objectweb.asm.tree.MethodNode;
import org.objectweb.asm.tree.analysis.*;
import us.brtm.cfg.generic.Node;
/**
* Class that represents a Control Flow Graph constructed for a specified method.