This file contains hidden or 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
page = 1 | |
pagenum = scribus.pageCount() | |
content = [] | |
number = 0 | |
copies = 2 ### how many times number are displayed | |
current_pos = 1 | |
while (page <= pagenum): | |
scribus.gotoPage(page) | |
d = scribus.getPageItems() | |
for item in d: |
This file contains hidden or 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 | |
# Indonesia | |
for long in {090..160..5}; do | |
# north side | |
for lat in {020..000..-5}; do | |
file="N${lat}E${long}_N$(printf '%03d' $((10#$lat + 05)))E$(printf '%03d' $((10#$long + 05))).tar.gz" | |
wget -nc ftp://ftp.eorc.jaxa.jp/pub/ALOS/ext1/AW3D30/release_v1804/$file | |
done | |
This file contains hidden or 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
. | |
├── acs_cli | |
├── acsd | |
├── ash | |
├── bcmlog | |
├── bdmf_shell | |
├── bobtest | |
├── brctl | |
├── bs | |
├── busybox |
This file contains hidden or 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
# Using gdbus | |
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Extensions.UninstallExtetension "([email protected])" | |
## | |
gnome-shell-extension-tool -d [email protected] |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# -*- mode: python -** | |
import fileinput, os | |
dests = dict() | |
"""A dictionary associating absolute file names and file objects.""" | |
counter = dict() | |
"""A dictionary associating file objects with count of emitted |
This file contains hidden or 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 | |
for input in "$@"; do | |
output="${input%%.*}.avi" | |
# does not work if filename has multiple dot | |
ffmpeg -i "$input" -c:v mpeg4 -vtag DIVX -s 640x480 -qscale:v 10 -c:a libmp3lame -qscale:a 0 "$output" | |
done |
OlderNewer