-
Install needed adobe apps from adobe creative cloud.
-
Open Terminal.
-
Copy-paste the below command to your terminal and run it (enter password when asked).
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/likes
- Open the console and run the following JavaScript code:
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
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 requests | |
import json | |
from requests.auth import AuthBase | |
from requests_oauthlib import OAuth1 | |
from requests_oauthlib import OAuth1Session | |
# This is very simple code to start a simple Twitter bot. | |
# At the moment, this is only for posting tweets to your | |
# page. Twitter offers additional actions (Liking, Replying, | |
# Retweeting, etc) on their (confusing) developer website. |
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
<?php | |
define('VERBOSE', 1); | |
define('DEBUG', 1); | |
//----------------------------------------------------------------------------- | |
// required commands check | |
$commands = get_commands([ | |
'find' => 'System command: find', | |
'curl' => 'https://curl.haxx.se', | |
'wget' => 'https://www.gnu.org/software/wget/' |
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
<?php | |
# define api keys. | |
define('CONSUMER_KEY', 'XXX'); | |
define('CONSUMER_SECRET', 'XXX'); | |
define('OAUTH_TOKEN', 'XXX'); | |
define('OAUTH_SECRET', 'XXX'); | |
define('USER_TIMELINE', 'https://api.twitter.com/1.1/statuses/user_timeline.json'); | |
# tweets to retrieve per request. |
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/sh | |
# It seems it's very hard to set resample output quality with Ghostscript. | |
# So instead rely on `prepress` preset parameter to select a good /QFactor | |
# and override the options we don't want from there. | |
gs \ | |
-o resampled.pdf \ | |
-sDEVICE=pdfwrite \ | |
-dPDFSETTINGS=/prepress \ |
With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.
autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master
and add the last line:
#
# Automounter master map
#
+auto_master # Use directory service
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
#!/usr/bin/env bash | |
#copy this in a folder from path ex: /usr/local/bin | |
#usage: docker-machine-rename default my-default | |
# Authors | |
# | |
# alexproca initial script | |
# eurythmia sed magic |
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
#!/usr/bin/env bash | |
# Purpose: To create a bootable (USB) drive on OSX | |
# Note: For a NixOS 14.12 ISO (~330MB) to a 512MB USB drive, the last step (rsync) took over 3 minutes. | |
declare -r platform="$(uname -s)" | |
if [ "${platform}" != "Darwin" ]; then | |
>&2 echo "Error: This will not run on ${platform} (anything other than Darwin." | |
exit 1 | |
fi |
NewerOlder