Skip to content

Instantly share code, notes, and snippets.

View melMass's full-sized avatar
Focusing

Mel Massadian melMass

Focusing
View GitHub Profile
@melMass
melMass / iso-edit.psm1
Last active May 1, 2022 18:16 — forked from jonathanelbailey/iso_image_edit.psm1
A PowerShell module to "modify" ISO images.
View iso-edit.psm1
# this function grabs the iso image from the user supplied http location.
function Get-IsoImage {
[CmdletBinding()]
param(
$uri,
$workingfolder
)
begin {
$file_name = $uri -replace "http://[\s\S]+\/([\s\S]+\.iso)$", '$1'
$out_file = Join-Path $workingfolder -ChildPath $file_name
@melMass
melMass / README.md
Last active July 27, 2023 10:32 — forked from korakot/draw.py
Drawing on Google Colab
View README.md

Drawing in Colab

Features

  • Controls for colors and stroke width draw_colab

Examples

draw(bg_color="white")
@melMass
melMass / 0_reuse_code.js
Created November 11, 2016 18:15
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@melMass
melMass / rsync_with_progress.py
Created October 11, 2016 00:17 — forked from aerickson/rsync_with_progress.py
Get total rsync progress using Python
View rsync_with_progress.py
# from https://libbits.wordpress.com/2011/04/09/get-total-rsync-progress-using-python/
import subprocess
import re
import sys
print('Dry run:')
cmd = 'rsync -az --stats --dry-run ' + sys.argv[1] + ' ' + sys.argv[2]
proc = subprocess.Popen(cmd,
shell=True,
@melMass
melMass / iridas_look_to_csp.py
Created October 5, 2016 00:39 — forked from dbr/iridas_look_to_csp.py
IRIDAS .look to .csp LUT
View iridas_look_to_csp.py
"""From the seemingly undocumented IRIDAS .look format to .csp
"""
import re
import os
import sys
import struct
import binascii
import xml.etree.ElementTree as ET
@melMass
melMass / batch_edit.py
Created May 1, 2016 01:57 — forked from tokejepsen/batch_edit.py
Nuke: Batch Edit Tool
View batch_edit.py
import os
import difflib
import nuke
import nukescripts
class KnobsPanel(nukescripts.PythonPanel):
def __init__(self, knobs):
nukescripts.PythonPanel.__init__(self, 'KnobsPanel')
View gist:e290aea88a4ab0c7a5c6

#jQuery#

Sélectionner lesimages d'une largeur de 300 pixels :

$("img[width=300]");

Sélectionner les deux premiers titres <h3> d'une page :

@melMass
melMass / markdown-cheat-sheet.md
Last active May 5, 2016 08:37 — forked from JosefJezek/markdown-cheat-sheet.md
Markdown Cheat Sheet
View markdown-cheat-sheet.md

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@melMass
melMass / bash.md
Last active November 1, 2015 23:25 — forked from todgru/bash.md
bash
View bash.md

#BASH

  • du -sh {directory} list display size of directory in human readable format.
  • du -sh * show size of each directory in the current path
  • df disk space usage
$ du -sh *
 11M Applications
@melMass
melMass / voices.txt
Created November 1, 2015 16:57 — forked from ttscoff/voices.txt
Voices available to say command on OS X 10.10.3
View voices.txt
# Voices available to `say` on OS X
# "*" indicates new additions since 10.8
Agnes (en_US)
Albert (en_US)
Alex (en_US)
*Alice (it_IT)
*Alva (sv_SE)
*Amelie (fr_CA)
*Anna (de_DE)