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 feedparser | |
import sqlite3 | |
import os | |
import logging | |
import dotenv | |
import time | |
dotenv.load_dotenv() | |
logging.basicConfig(level=logging.INFO) |
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
{ | |
"platform": "iOS", | |
"platform_version": "15.5", | |
"model": "iPhone14,3", | |
"device_type": "Physical", | |
"app_version": "2.0.1", | |
"build_number": "1653370657", | |
"en_version": "2", | |
"daily_summaries": [ | |
{ |
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
const http = require('http'); | |
const QUESTIONS = [ | |
'Have you found happiness?', | |
'What makes you happy?', | |
'What would make today better?', | |
'Are you drinking enough water?', | |
'Have you eaten two pieces of fruit today?', | |
'Have you eaten three pieces of vegetables today?', | |
'Are you reading this?' |
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/bash | |
tmp_path="/tmp/wordpress-cleaner" | |
echo "Wordpress Ultra Cleaner" | |
echo "--------" | |
echo "Fetching fresh copy of Wordpress" | |
curl -OL wordpress.org/latest.tar.gz |
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
_get_gcp_accounts() { | |
res=$(gcloud auth list --format="value(account)") | |
for i in $res; do | |
COMPREPLY+=("$i") | |
done | |
} | |
_get_gcp_projects() { |
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
!function () { | |
console.log("foo"); | |
}(); | |
(function() { | |
console.log("foo"); | |
})(); |
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/bash | |
modprobe -r psmouse && modprobe psmouse |
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
[Unit] | |
Description=Restart trackpad after suspend | |
After=basic.target suspend.target hibernate.target | |
[Service] | |
User=root | |
Environment=DISPLAY=:0 | |
ExecStart=/usr/bin/restart-trackpad | |
[Install] |
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
const Spark = ({ | |
height = 20, | |
width = 140, | |
series = [], | |
color = "#4CAF50", | |
backgroundColor = "#37474F", | |
radius = 3, | |
padding = [4, 4] | |
}) => { | |
const max = series.reduce((p, c) => { |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4xtUCMHOy8rpC4OvL45t4OGIGTlXKb7uWOfp/xcabmiAWgS8ER0arlkVbHQMHm6yMEVAQSaZUpWUV27gE3EARWid946P5us+yPx4e7rR4XZO6ppPDKs4XEi26F5eqWj/O6sVByhUeY/RV0Qo3kUkWQTJKJD7iSmYCLQrYwGboJK0KxMVFVdC0z3h9qjf7tRq/pEWA5STcpdLfFCVkPDCqAegULWQEpYl/+wPgNdS3rw+MPNHyxF1dz5tnrvyH8GMn80Vwff0k6TKfnDu+n3GxrvyJDwAnP6m4B5F6HJ0aYwodeoZvVmh/MTOzKu3dWZkp/ssoXpa0ktgJq+rLhW1Z brian@thonkpad |
NewerOlder