CMD + P
Windows: CTRL+ P
Discover gists
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
# https://cloud.google.com/blog/topics/threat-intelligence/untangling-iran-apt42-operations/ | |
import argparse | |
import random | |
import win32com.client | |
def insert_digit(word, digit): | |
pos = random.randint(1, len(word) - 1) | |
return word[:pos] + digit + word[pos:] | |
def generate_command(url, file_path): |
THEME | FORMAT | SOURCE | LINK | |
---|---|---|---|---|
roads, waterways, building footprints, points of interest | shp, pbf | OpenStreetMap (OSM) | http://download.geofabrik.de/asia/philippines.html | |
administrative boundaries (country, region, province, municipality, city) | shp | PSA, NAMRIA, DROMIC, UNOCHA, and patners | https://data.humdata.org/dataset/philippines-administrative-levels-0-to-3 | |
administrative boundaries (barangay) | shp | PSA, NAMRIA, DROMIC, UNOCHA, and patners | https://data.humdata.org/dataset/philippines-admin4-boundaries-barangay | |
framework data (boundaries, roads, elevation, population, etc.) | various | DIVA-GIS | http://www.diva-gis.org/gdata | |
topographic maps (1:50,000 and 1:250,000) | non-georeferenced raster | NAMRIA | http://www.namria.gov.ph/download.php | |
various geohazards | shp | NOAH | http://noah.up.edu.ph/downloads/ | |
various geohazards | shp | DREAM | https://lipad.dream.upd.edu.ph/ | |
various geohazards | shp | MGB | http://www.namria.gov.ph/download.php | |
various geohazards | shp | PHIVOLCS | http://www.phivolcs.dost.gov.ph/ |
# These are fragments of the configuration that will need to be updated | |
# --- | |
## GitLab URL | |
##! URL on which GitLab will be reachable. | |
##! For more details on configuring external_url see: | |
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab | |
external_url 'https://gitlab.your-fqdn.com' | |
#external_url 'http://gitlab.internal.lan' |
Controllers should be in singular case, no spacing between words, and end with "Controller".
Also, each word should be capitalised (i.e. BlogController, not blogcontroller).
For example: BlogController, AuthController, UserController.
Bad examples: UsersController (because it is in plural), Users (because it is missing the Controller suffix).
How to fix a USB drive showing up as two drives (fragmented into multiple partitions) on Windows:
- Hold the Windows key and press X, select PowerShell (Admin), select Yes to the pop-up. You can also use Command Prompt.
- In the Powershell interface type
diskpart
to enter the disk partition tool. - Type
list disk
to see all disks listed. - Select the USB drive by typing
select disk [NUMBER]
. Be careful to select the correct drive. - Type
clean
. An error will occur if you have the drive folder open, close the window and repeat the command if this happens. - Type
create partition primary
. - Type
format fs=ntfs quick
to format the drive (you can also choose to setfs=fat32
). - Type
active
.
When Riot Games introduces the Vanguard anti-cheat to League of Legends, you should STOP playing and you should not install the anti-cheat when you get the pop-up. Vanguard is a kernel-level anticheat and these anticheats operate at a privilege level HIGHER THAN YOUR OWN. The anti-cheat can do things that even you can't do, without asking or letting you know. It's like Riot installing a camera in every room of your house and getting a copy of every key inside.
Here is just one example of what they can do: https://www.theregister.com/2013/11/20/esea_gaming_bitcoin_fine/