Skip to content

Instantly share code, notes, and snippets.

View efelex's full-sized avatar

fchinyama efelex

View GitHub Profile
@efelex
efelex / COMMANDS.md
Last active April 8, 2022 18:17 — forked from gojun077/LFCS_study
LFCS Study Outline 2015.02.28

LFCS Domains 2015.02

Note - the domains will change somewhat in March 2015. SW RAID with mdadm will be removed

The Command Line Editing text files on the CLI

Covers the use of the basic text editors nano and gedit as well as the advanced editors vi and emacs -nano simple CLI-based text editor

@efelex
efelex / models.py
Created July 27, 2021 22:59 — forked from jacobian/models.py
An example of using many-to-many "through" to augment m2m relationships. See http://www.quora.com/How-do-you-query-with-a-condition-on-a-ManyToMany-model-in-Django for context.
from django.db import models
class Person(models.Model):
name = models.CharField(max_length=200)
groups = models.ManyToManyField('Group', through='GroupMember', related_name='people')
class Meta:
ordering = ['name']
def __unicode__(self):
@efelex
efelex / gist_markdown_examples.md
Created November 28, 2021 00:32 — forked from ww9/gist_markdown_examples.md
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@efelex
efelex / appsScript_ListFilesFolders_Mesgarpour.js
Created May 29, 2022 18:14 — forked from abubelinha/appsScript_ListFilesFolders_Mesgarpour.js
[Google Apps Script] List all files & folders in a Google Drive folder, & write into a speadsheet
/**
* Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet.
* - Main function 1: List all folders
* - Main function 2: List all files & folders
*
* Hint: Set your folder ID first! You may copy the folder ID from the browser's address field.
* The folder ID is everything after the 'folders/' portion of the URL.
*
* @version 1.0
* @see https://github.com/mesgarpour