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 namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Http\Response; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Register any application services. |
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
Find the existing supervisord process and kill it | |
pgrep -fl supervisord | |
Run the following commands and you should have your worker running | |
supervisord -c /etc/supervisord.conf | |
supervisorctl -c /etc/supervisord.conf reload | |
supervisorctl -c /etc/supervisord.conf start laravel-worker:* |
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
ps -p {processId} // See which app is running on that process id |
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
For Chrome, | |
Install cookies.txt Chrome extension | |
Login to Apple Developer site and get the url for downloading | |
Run cookies.txt extension and download cookies.txt file | |
From the cookies.txt download directory, load cookies into wget and start resumable download. For example, to download Xcode_7.dmg, you would run: | |
wget --load-cookies=cookies.txt -c http://adcdownload.apple.com/Developer_Tools/Xcode_7/Xcode_7.dmg | |
Credit: https://stackoverflow.com/questions/4081568/downloading-xcode-with-wget-or-curl |
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
1) Edit elasticsearch service unit file using the following command | |
sudo systemctl edit elasticsearch.service | |
This command will create a file | |
/etc/systemd/system/elasticsearch.service.d/override.conf | |
2) Now, add the following lines in the unit file. | |
[Service] | |
Restart=always |
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
--- | |
version: "2.1" | |
volumes: | |
adguardhome-sync: | |
services: | |
adguardhome-sync: | |
image: ghcr.io/bakito/adguardhome-sync | |
container_name: adguardhome-sync |
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
version: "3.5" | |
# The Scrypted docker-compose.yml file typically resides at: | |
# ~/.scrypted/docker-compose.yml | |
# Example volumes SMB (CIFS) and NFS. | |
# Uncomment only one. | |
# volumes: | |
# nvr: |
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
version: '2' | |
services: | |
homebridge: | |
image: oznu/homebridge:latest | |
restart: always | |
network_mode: host | |
volumes: | |
- ./volumes/homebridge:/homebridge | |
logging: | |
driver: json-file |
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
service: tts.google_translate_say | |
data: | |
entity_id: media_player.christophers_homepod | |
message: This is Christopher's Homepod playing on Google Translate! | |
cache: true | |
enabled: true |