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
/* | |
******************************************************************************** | |
Golang - Asterisk and Ampersand Cheatsheet | |
******************************************************************************** | |
Also available at: https://play.golang.org/p/lNpnS9j1ma | |
Allowed: | |
-------- | |
p := Person{"Steve", 28} stores the value |
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
## | |
## Windows 10 cleanup script. | |
## Remove dodgy tracking settings, unneeded services, all apps, and optional features that come with Windows 10. Make it more like Windows 7. | |
## NOTE: this was tested on Creators Update (1703) and Fall Creators Update (1709). Some of this may not work as expected on newer versions. | |
## | |
## Instructions | |
## 1. Run this script (under Powershell as Administrator): | |
## powershell -ExectionPolicy Bypass .\cleanup-win10.ps1 | |
## 2. Let it run through, you may see a few errors, this is normal | |
## 3. Reboot |
For example, StartOnMount=true will cause the job to start when anything is mounted even if other conditions, e.g. QueueDirectories, say the job should not run
The StartInterval timer begins ticking at the moment the plist is loaded. If something like QueueDirectories is preventing the job from
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
cask_args appdir: '/Applications' | |
# | |
# 1 taps | |
# | |
# homebrew dupes | |
tap 'homebrew/dupes' | |
# homebrew versions |
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
brew "ack" | |
brew "archey" | |
brew "bash" | |
brew "bash-completion" | |
brew "cask" | |
brew "colordiff" | |
brew "django-completion" | |
brew "emacs" | |
brew "fb303" | |
brew "fbthrift" |
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
from scapy.all import sniff, sendp | |
from socket import * | |
import time | |
# Replace with your PS4/5's MAC address. | |
dst_mac=b'\xaa\xbb\xcc\xdd\xee\xff' | |
# Replacing source MAC address is not mandatory | |
src_mac= b'\xab\xcd\xef\xab\xcd\xef' | |
# Replace this with your computer's ethernet interface name | |
iface_name = 'Ethernet' |
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
{%- comment -%} | |
This snippet structures the micro-data using JSON-LD specification. Please note that for Product especially, | |
the schema often changes. We try to output as much info as possible, but Google may add new requirements over time, | |
or change the format of some info | |
LAST UPDATE: May 10th 2023 (we added the "hasMerchantReturnPolicy" and "shippingDetails" to include the shipping and | |
return policy if they have been specified as store policies). | |
{%- endcomment -%} | |
{%- if request.page_type == 'product' -%} |
Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.
To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.
NewerOlder