- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action- your default shell should already be selected, otherwise use
/bin/zsh
for macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
Discover gists
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 | |
# SEM O CLASS | |
TScript::create("$('table th:contains(\"TITULO DA COLUNA\")').hide();"); | |
# COM O CLASS | |
TScript::create("$('table th.tdatagrid_col:contains(\"TITULO DA COLUNA\")').hide();"); | |
# "tdatagrid_col" É O NOME DO class | |
# "TITULO DA COLUNA" É O NOME DO TÍTULO DA COLUNA |
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 | |
TTransaction::open(self::$database); | |
$preferences = SystemPreference::getAllPreferences(); | |
$mail_from = $preferences['mail_from']; | |
$host = $preferences['smtp_host']; | |
if (!empty($mail_from) and !empty($host)) |
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 ipyvolume.pylab as p3 | |
import numpy as np | |
element_list = [ | |
"H", "He", "Li", "Be", "B", "C", "N", "O", "F", "Ne", | |
"Na", "Mg", "Al", "Si", "P", "S", "Cl", "Ar", "K", "Ca" | |
] | |
class IPyVolume_GC: | |
""" |
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amend
This will open your $EDITOR
and let you change the message. Continue with your usual git push origin master
.
The setup of a bluetooth speaker on a Pi Zero W is pretty touchy.
Please get in touch via Twitter @actuino or http://www.actuino.fr/ if you've got comments or improvements to this quick draft.
- Use a solid power source
- check the speaker works on another hardware (android phone f.i.)
- make sure you've updated your Raspbian, install and run rpi-update just in case.
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
// copy into a file called linkedinScrape.js (or whatever you want to call it) then call node linkedinScrape.js | |
const cookies = "" // your cookies | |
const page = 1 | |
const searchTerm = "marketing agency" | |
const results = await searchLinkedIn(searchTerm, page) | |
console.log(results) | |
export async function searchLinkedIn(query, page = 1) { | |
try { |
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
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
NewerOlder