-
$ sudo pacman -S tor $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more. $ sudo pacman -S nyx $ ## torsocks safely torify applications
This file contains hidden or 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
-- Case Study #1 - Danny's Diner | |
-- https://8weeksqlchallenge.com/case-study-1/ | |
-- Solved on SQLite 3.39 by Farhad Uneci, August 2022 | |
-- 1. What is the total amount each customer spent at the restaurant? | |
SELECT | |
customer_id AS 'Customer', | |
SUM(price) AS 'Paid' | |
FROM | |
sales |
This file contains hidden or 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 subprocess | |
from django.core.management.base import BaseCommand | |
from django.conf import settings | |
class Command(BaseCommand): | |
help = "Deletes migration files, excluding __init__.py, from apps" | |
def handle(self, *args, **options): |
My Mac Proxy Configuration Script.
This is a friendly and simple script for macOS users to manage proxy settings. Whether you need to quickly switch on your proxies for secure browsing or disable them when not needed, this script makes it a breeze!
- Set Proxies:
./set_proxy.sh <port-number> [server-address]
- Unset Proxies:
./set_proxy.sh off
This file contains hidden or 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 languagetool = require("languagetool-api"); | |
var params = { | |
language: "en-US", | |
text: "If i was you, i wouldt do that", | |
}; | |
languagetool.check(params, function (err, res) { | |
if (err) { | |
console.log(err); |
This file contains hidden or 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
Base form | Past simple | Past participle | |
---|---|---|---|
Abide | Abode/Abided | Abode/Abided/Abidden | |
Aby/Abey | Abought | Abought | |
Alight | Alit/Alighted | Alit/Alighted | |
Arise | Arose | Arisen | |
Awake | Awoke | Awoken | |
Backbite | Backbit | Backbitten | |
Backfit | Backfit | Backfit | |
Backlight | Backlit | Backlit | |
Backslide | Backslid | Backslid/Backslidden |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
) | |
type Clock struct { | |
hours int | |
minutes int | |
} |
This file contains hidden or 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
""" | |
This command-line diary application allows users to add, view, search, | |
and delete diary entries. Entries are stored with timestamps in an | |
SQLite database. | |
Original Author: Charles Leifer | |
Source: https://charlesleifer.com/blog/dear-diary-an-encrypted-command-line-diary-with-python/ | |
""" | |
import datetime |
By default running sudo commands is done via entering your password. If you would rather use your fingerprint to authenticate you must modify your sudo
configuration.
- Copy
/etc/pam.d/sudo_local.template
tosudo_local
sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
This file contains hidden or 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
{ | |
"Print to Console": { | |
"prefix": "print", | |
"body": [ | |
"print(${1:message})" | |
], | |
"description": "Insert a print statement" | |
}, | |
"If Statement": { | |
"prefix": "if", |
OlderNewer