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
view = new QWebView(this); | |
QPalette palette = view->palette(); | |
palette.setBrush(QPalette::Base, Qt::transparent); | |
view->page()->setPalette(palette); | |
view->setAttribute(Qt::WA_OpaquePaintEvent, false); |
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
<?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> |
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
ulauncher -v | |
(ulauncher:13739): Gtk-WARNING **: Theme parsing error: gtk.css:10:13: 'min-width' is not a valid property name | |
(ulauncher:13739): Gtk-WARNING **: Theme parsing error: gtk.css:11:14: 'min-height' is not a valid property name | |
/usr/local/lib/python2.7/dist-packages/ulauncher/util/desktop/notification.py:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded. | |
from gi.repository import Notify | |
/usr/local/lib/python2.7/dist-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py:6: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded. | |
from gi.repository import Gio, Gtk, WebKit2, GLib | |
2017-11-01 21:22:09,714 | INFO | ulauncher: main() | Ulauncher version %VERSION% |
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
# 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" |
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
#! /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 |
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
#!/bin/bash | |
# https://github.com/markus-perl/ffmpeg-build-script | |
VERSION=0.8 | |
CWD=$(pwd) | |
PACKAGES="$CWD/packages" | |
WORKSPACE="$CWD/workspace" | |
CC=clang | |
LDFLAGS="-L${WORKSPACE}/lib -lm" |
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
if $(gsettings get org.gnome.desktop.background show-desktop-icons) == true; then gsettings set org.gnome.desktop.background show-desktop-icons false; else gsettings set org.gnome.desktop.background show-desktop-icons true ; fi |
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
<?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> |
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
<?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=="/> |
OlderNewer