Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
view = new QWebView(this); | |
QPalette palette = view->palette(); | |
palette.setBrush(QPalette::Base, Qt::transparent); | |
view->page()->setPalette(palette); | |
view->setAttribute(Qt::WA_OpaquePaintEvent, false); |
<?xml version="1.0" encoding="UTF-8"?> | |
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sec="http://www.sec.co.kr/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"> | |
<item id="f-0" parentID="0" restricted="0"> | |
<dc:title>Video</dc:title> | |
<dc:creator>vGet</dc:creator> | |
<upnp:class>object.item.videoItem</upnp:class> | |
<res protocolInfo="http-get:*:video/mp4:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" sec:URIType="public">$URI</res> | |
</item> | |
</DIDL-Lite> |
# ag <https://github.com/ggreer/the_silver_searcher> | |
# usage: ag-replace.sh [search] [replace] | |
# caveats: will choke if either arguments contain a forward slash | |
# notes: will back up changed files to *.bak files | |
ag -0 -l $1 | xargs -0 perl -pi.bak -e "s/$1/$2/g" | |
# or if you prefer sed's regex syntax: | |
ag -0 -l $1 | xargs -0 sed -ri.bak -e "s/$1/$2/g" |
#! /bin/bash | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
<?xml version="1.0"?> | |
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<s:Body> | |
<u:X_SendIRCC xmlns:u="urn:schemas-sony-com:service:IRCC:1"> | |
<IRCCCode>AAAAAgAAAJcAAAAZAw==</IRCCCode> | |
</u:X_SendIRCC> | |
</s:Body> | |
</s:Envelope> |
<?xml version="1.0"?> | |
<remoteCommandList> | |
<command name="Confirm" type="ircc" value="AAAAAQAAAAEAAABlAw=="/> | |
<command name="Up" type="ircc" value="AAAAAQAAAAEAAAB0Aw=="/> | |
<command name="Down" type="ircc" value="AAAAAQAAAAEAAAB1Aw=="/> | |
<command name="Right" type="ircc" value="AAAAAQAAAAEAAAAzAw=="/> | |
<command name="Left" type="ircc" value="AAAAAQAAAAEAAAA0Aw=="/> | |
<command name="Home" type="ircc" value="AAAAAQAAAAEAAABgAw=="/> | |
<command name="Options" type="ircc" value="AAAAAgAAAJcAAAA2Aw=="/> | |
<command name="Return" type="ircc" value="AAAAAgAAAJcAAAAjAw=="/> |
#! /bin/bash | |
set -e | |
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
trap 'echo FAILED COMMAND: $previous_command' EXIT | |
#------------------------------------------------------------------------------------------- | |
# This script will download packages for, configure, build and install a GCC cross-compiler. | |
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
# If you get an error and need to resume the script from some point in the middle, | |
# just delete/comment the preceding lines before running it again. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
# Script for easy developing by Carlos Suárez ([email protected]) - 2018 | |
# Define variables | |
PACKAGE="myapplication" | |
TEMPLATE=po/$PACKAGE.pot | |
FILES=po/*.po | |
# Search strings to translate and update po files (mark with _ translatable fields in appdata file) | |
# p.ex.: <_li>My Application do something</_li><_li>Also do something more</_li> | |
# Don't use _ to <name> and <summary>. | |
MYVAR=$(find . -type f -name *vala -or -name *appdata.xml.in -or -name *desktop.in) |