Skip to content

Instantly share code, notes, and snippets.

@malford
malford / transmission_remove_finished.sh
Created June 16, 2019 18:39 — forked from pawelszydlo/transmission_remove_finished.sh
Script to clear finished torrents from transmission-daemon
#!/bin/bash
# port, username, password
SERVER="localhost:9091 --auth user:pass"
# use transmission-remote to get torrent list from transmission-remote list
TORRENTLIST=`transmission-remote $SERVER --list | sed -e '1d' -e '$d' | awk '{print $1}' | sed -e 's/[^0-9]*//g'`
# for each torrent in the list
for TORRENTID in $TORRENTLIST
@malford
malford / gist:7490a2b0ca04a1bc1576
Created February 16, 2015 21:01
tools/migration/populate_missing_image_json.py output
ubuntu@shell:/percolate/hotlanta (5.14.5)$ python tools/migration/populate_missing_image_json.py
Gathering image ids with no/bad json data. This will take several minutes to run and we will be checking ~1200000 images (on live)
Checked 100000 images so far...
Checked 200000 images so far...
Checked 300000 images so far...
Checked 400000 images so far...
Checked 500000 images so far...
Checked 600000 images so far...
Checked 700000 images so far...
Checked 800000 images so far...
@malford
malford / gist:6686323ec1babf293489
Created February 8, 2015 21:16
devolate /usr/bin/npm output
vagrant@hotlanta:/percolate/predator$ /usr/bin/env HOME=/home/vagrant /usr/bin/npm --cache /home/vagrant/.npm --tmp /tmp install
npm WARN excluding symbolic link test/browser/fixtures -> ../fixtures
npm WARN excluding symbolic link test/browser/fixtures -> ../fixtures
-
> canvas@1.2.0 install /percolate/predator/node_modules/carapace/node_modules/canvas
> node-gyp rebuild
make: Entering directory `/percolate/predator/node_modules/carapace/node_modules/canvas/build'
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node: Finished
2015-01-28T23:08:52+0000 verbose: /default/main/methods/'any'/default/base_packages/packages/'libc6'[0]: Package promises to refer to itself as 'libc6' to the manager
2015-01-28T23:08:52+0000 verbose: /default/main/methods/'any'/default/base_packages/packages/'libc6'[0]: Package version seems to match criteria
2015-01-28T23:08:52+0000 verbose: /default/main/methods/'any'/default/base_packages/packages/'libc6'[0]: Package method does NOT specify a file repository
2015-01-28T23:08:52+0000 verbose: /default/main/methods/'any'/default/base_packages/packages/'libc6'[0]: Checking if latest available version is newer than installed...
2015-01-28T23:08:52+0000 verbose: /default/main/methods/'any'/default/base_packages/packages/'libc6'[0]: Looking for an installed package older than (libc6,2.15-0ubuntu10.10,*) [name,version,arch]
2015-01-28T23:08:52+0000 verbose: /default/main/methods/'any'/default/base_packages/packages/'libc6'[0]: Found installed package (libc6,2.15-0ubuntu10.5,default) [name,version,arch]
201
@malford
malford / npm_list
Created September 25, 2014 21:37
malford npm list
ip-192-168-3-101 in ~/code/hotlanta/ui
± |master ✓| → npm list
devolate-server@0.0.1 /Users/malford/code/devolate/hotlanta/ui
├─┬ backbone@1.1.2
│ └── underscore@1.7.0
├─┬ backbone-faux-server@0.10.3
│ ├── backbone@1.0.0
│ └── underscore@1.5.2
├─┬ css-loader@0.9.0
│ ├── csso@1.3.11
@malford
malford / API_Error
Created September 23, 2014 17:25
/percolate/hotlanta/bin/update_token_pages Error
ERROR:apps.common.lib.page_getters:LinkedIn API Error: couldn't fetch company pages
Traceback (most recent call last):
File "/percolate/hotlanta/apps/common/lib/page_getters.py", line 81, in get_linkedin_companies
return client.companies_for_user()
File "/percolate/hotlanta/apps/platforms/linkedin/api.py", line 380, in companies_for_user
self._check_response_status(resp)
File "/percolate/hotlanta/apps/platforms/linkedin/api.py", line 116, in _check_response_status
raise UnauthorizedException(resp.content)
UnauthorizedException: {
"errorCode": 0,
npm WARN deprecated es5-shim@2.3.0: Please update to the latest version; it overrides noncompliant native methods even in modern implementations
> contextify@0.1.9 install /Users/matthewalford/code/devolate/hotlanta/ui/node_modules/d3/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild
CXX(target) Release/obj.target/contextify/src/contextify.o
SOLINK_MODULE(target) Release/contextify.node
SOLINK_MODULE(target) Release/contextify.node: Finished
> ws@0.4.32 install /Users/matthewalford/code/devolate/hotlanta/ui/node_modules/webpack-dev-server/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
@malford
malford / malford_npm_list
Created September 22, 2014 19:39
npm list
± |master ✗| → npm list
devolate-server@0.0.1 /Users/matthewalford/code/devolate/hotlanta/ui
├── backbone@1.1.2
├─┬ backbone-faux-server@0.10.3
│ ├── backbone@1.0.0
│ └── underscore@1.5.2
├─┬ css-loader@0.7.0
│ ├── csso@1.3.11
│ └─┬ loader-utils@0.2.3
│ └── json5@0.1.0
@malford
malford / devolate_new_fail.out
Created September 19, 2014 17:24
Devolate KeyError
This file has been truncated, but you can view the full file.
Last login: Thu Sep 18 17:40:43 on ttys004
ip-192-168-3-101 in ~/code/devolate
± |master ✓| → vagrant up
Bringing machine 'devolate' up with 'virtualbox' provider...
==> devolate: Importing base box 'ubuntu/precise64'...
==> devolate: Matching MAC address for NAT networking...
==> devolate: Checking if box 'ubuntu/precise64' is up to date...
==> devolate: Setting the name of the VM: Devolate
==> devolate: Clearing any previously set forwarded ports...
@malford
malford / devolate_provision.out
Created September 18, 2014 00:49
Devolate Provision 'devolate_for_aws' branch
This file has been truncated, but you can view the full file.
Last login: Wed Sep 17 18:30:05 on ttys000
|system| ip-192-168-3-10 in ~
○ → vagrant up
A Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,
get an ID of a target machine from `vagrant global-status` to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.