Skip to content

Instantly share code, notes, and snippets.

View C-F-4's full-sized avatar
:octocat:
Makin' Heads Rollin'

Abhinav S C-F-4

:octocat:
Makin' Heads Rollin'
View GitHub Profile
@C-F-4
C-F-4 / composing-software.md
Created January 8, 2024 18:33 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series
@C-F-4
C-F-4 / multiple_ssh_setting.md
Created October 4, 2020 12:01 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@C-F-4
C-F-4 / multiple_ssh_setting.md
Created October 4, 2020 12:01 — forked from RichardBronosky/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
// injection technique borrowed from http://stackoverflow.com/questions/840240/injecting-jquery-into-a-page-fails-when-using-google-ajax-libraries-api
window.onload = function () {
var script = document.createElement("script");
script.src = "https://code.jquery.com/jquery-3.3.1.min.js";
script.onload = script.onreadystatechange = function () {
$(document).ready(function() {
$("#lst-ib").val("Hello, World!");
});
};
document.body.appendChild(script);
@C-F-4
C-F-4 / better-nodejs-require-paths.md
Created June 20, 2018 16:34 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@C-F-4
C-F-4 / scopes.txt
Created August 1, 2017 21:17 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@C-F-4
C-F-4 / data_type.c
Created February 28, 2017 18:25
Get Value Ranges for all the data types
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <float.h>
int main(int argc, char** argv) {
printf("CHAR_BIT : %d\n", CHAR_BIT);
printf("CHAR_MAX : %d\n", CHAR_MAX);
@C-F-4
C-F-4 / HTML.html
Last active February 10, 2017 17:35
Some basic things about HTML
HTML - Hypertext Markup Language - The Language of the Web
(Used to structure content and reflect its meaning in form of Code)
Note: Do not use HTML for presentational Purposes. Leave that to the CSS. As HTML5 has evolved, it's pretty clear, HTML is not for make-up.
HTML - Structure | CSS - Beautification | Javascript - Action Handling
Hypertext - non linear text with Hyperlinks
Markup - code used to define and structure text
** Not a Programming Language
@C-F-4
C-F-4 / Must-remember Links
Created January 30, 2017 05:19
Everything you must remember
@C-F-4
C-F-4 / Linux
Last active January 8, 2017 09:01
Commands commonly required in Terminal
Search if a package is installed
(requires full package name)
apt-cache policy <package name> -- Returns package name(Installed, candidate, Version)
dpkg -l | grep <package name> -- Returns package name and basic description if installed
aptitude show <package name> -- Gives full description
Or dpkg-query -s <pkg> -- Gives full description
(doesn't requires full package name)
apt-cache search <pkg>