Skip to content

Instantly share code, notes, and snippets.

View OnlyRefat's full-sized avatar

Rafi Ud Daula Refat OnlyRefat

View GitHub Profile
@nnarain
nnarain / install.bash
Last active October 29, 2018 19:58
setup virtual can bus linux
#!/bin/bash
# install can-utils
git clone https://github.com/linux-can/can-utils.git
cd can-utils
./autogen.sh
./configure
make
sudo make install
{
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme",
"font_size": 14,
"tab_size": 2,
"highlight_line": true,
@ishaadX
ishaadX / Breadcrumb
Last active June 7, 2016 05:12
Simple & Customize Breadcrumb for wordpress from WooCommerce for general purpose...
*********Create a new File name class-breadcrumb.php and paste this code.....*********
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Turbowp_Breadcrumb {
private $crumbs = array();
@ishaadX
ishaadX / WooCommerce Add to cart without login
Last active January 1, 2019 06:59
Woocommerce Product add to cart while logged out
Copy and paste this code on functions.php file in wordpress theme....
add_action( 'woocommerce_add_to_cart' , 'repair_woocommerce_session_add_to_cart');
function repair_woocommerce_session_add_to_cart( ){
if ( defined( 'DOING_AJAX' ) ) {
wc_setcookie( 'woocommerce_items_in_cart', 1 );
do_action( 'woocommerce_set_cart_cookies', true );
}
}
export const GoogleApi = function(opts) {
opts = opts || {}
const apiKey = opts.apiKey;
const libraries = opts.libraries || [];
const client = opts.client;
const URL = 'https://maps.googleapis.com/maps/api/js';
const googleVersion = '3.22';
let script = null;
<?php
/*
Register Fonts
*/
function studio_fonts_url() {
$font_url = '';
/*
Translators: If there are characters in your language that are not supported
by chosen font(s), translate this to 'off'. Do not translate into your own language.
@ishaadX
ishaadX / gist:78c039bd4deeb16dcf38
Last active May 22, 2016 08:22 — forked from probaldhar/gist:82eff5fdc7b6035a92e5
How to make bootable Mac OS X
Follow these steps that in the link
http://www.macworld.co.uk/how-to/mac/make-bootable-mac-os-x-1010-yosemite-install-drive-3575875/
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active November 4, 2025 05:48
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active November 12, 2025 11:31
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@sloria
sloria / bobp-python.md
Last active September 9, 2025 10:52
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens