draw(bg_color="white")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import difflib | |
import nuke | |
import nukescripts | |
class KnobsPanel(nukescripts.PythonPanel): | |
def __init__(self, knobs): | |
nukescripts.PythonPanel.__init__(self, 'KnobsPanel') |
#jQuery#
Sélectionner lesimages d'une largeur de 300 pixels :
$("img[width=300]");
Sélectionner les deux premiers titres <h3>
d'une page :
#BASH
du -sh {directory}
list display size of directory in human readable format.du -sh *
show size of each directory in the current pathdf
disk space usage
$ du -sh *
11M Applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
NewerOlder