Skip to content

Instantly share code, notes, and snippets.

Set value

GCC_PREPROCESSOR_DEFINITIONS = FOO=My Value

Add Constants.m

It is particularly important to check that the definition of your value exists here, as it will not cause a compilation failure, but instead result in the generation of @"FOO".

@import Foundation;
@skkut
skkut / FirewallBlockAllAppsInFolder.bat
Last active April 27, 2024 11:59
A windows batch file to block all applications in a folder in Windows firewall
@ setlocal enableextensions
@ cd /d "%~dp0"
for /R %%a in (*.exe) do (
netsh advfirewall firewall add rule name="Blocked with Batchfile %%a" dir=out program="%%a" action=block
)
@Klerith
Klerith / instalaciones.md
Created April 19, 2022 14:43
Instalaciones recomendadas para el curso de principios SOLID y CleanCode

Instalaciones recomendadas - Curso de principios SOLID y CleanCode

Instalaciones Necesarias

opcional - Yarn

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 11:56
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@dhh
dhh / linux-setup.sh
Last active April 27, 2024 11:46
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl docker.io \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@samarthbhargav
samarthbhargav / CUDA Availability in Torch
Created September 24, 2018 10:00
One liner to test if cuda is available
python -c "import torch; print(torch.cuda.is_available())"
@nfriedly
nfriedly / chirp-audiobooks-downloader-readme.md
Last active April 27, 2024 11:37
Chirp Audiobook Download Script

Chirp AudioBook Download Script

⚠️ Not currently working. Chirp changed something that broke this script.


This script eases the process of downloading the audio files from Chirp Audiobooks. It uses the browsers console to generate a list of URLs, and then provides a list of curl or wget commands to download them.

Tested with Firefox + Terminal on MacOS, and Firefox + PowerShell on Windows 10.