Skip to content

Instantly share code, notes, and snippets.

View nkkollaw's full-sized avatar
Loading...

Niccolo Brogi nkkollaw

Loading...
View GitHub Profile
@nkkollaw
nkkollaw / nomi_italiani.txt
Created September 3, 2018 20:34 — forked from pdesterlich/nomi_italiani.txt
lista nomi italiani
-- DISCLAIMER --
il presente elenco consiste in una raccolta di nomi presenti sul territorio italiano (non necessariamente "italiani")
viene generato prendendo processando automaticamente uno o più archivi anagrafici e non è controllato in alcun modo
è pertanto altamente possibile che ci siano errori o refusi
non è nè pretende di essere un elenco omnicomprensivo di tutti i nomi esistenti
----------------
abaco
abbondanza
abbondanzia
@nkkollaw
nkkollaw / about:config.md
Created January 13, 2018 20:18 — forked from haasn/about:config.md
Firefox bullshit removal via about:config

Firefox bullshit removal

Due to the incessant swarm of complete and utter nonsense that has been forcing its way into Firefox over time, I've decided to start collecting my personal list of “must-have” about:config tweaks required to turn Firefox into a functional brower.

NOTE: Unfortunately this is somewhat out of date. The comments link to some resources that may be more up-to-date. Patches welcome.

WebSockets

These can be used for nefarious purposes and to bypass access restrictions.

@nkkollaw
nkkollaw / XFCE
Last active December 28, 2017 11:21
# Start with Ubuntu 18.04 minimal.
## Install Git
sudo apt install git -y
## Install GNU toolchain
sudo apt install autoconf automake libtool intltool pkg-config -y
@nkkollaw
nkkollaw / github-oauth2-client.php
Last active December 2, 2017 21:52
Simple PHP example of using Github's OAuth 2 API
<?php
error_reporting(E_ALL);
ini_set('display_errors', 0);
define('GITHUB_APP_NAME', ''); // your Github username or application name (required by Github)
define('OAUTH2_CLIENT_ID', '');
define('OAUTH2_CLIENT_SECRET', '');
define('AUTHORIZE_URL', 'https://github.com/login/oauth/authorize');
define('TOKEN_URL', 'https://github.com/login/oauth/access_token');
@nkkollaw
nkkollaw / remove-feeds.php
Created May 26, 2017 23:33 — forked from joshuadavidnelson/remove-feeds.php
Remove all feeds from WordPress
<?php
add_action( 'wp_head', 'remove_feeds_from_wp_head', 1 );
/**
* Remove feed links from wp_head
*/
function remove_feeds_from_wp_head() {
// Remove feed links
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'feed_links_extra', 3 );
@nkkollaw
nkkollaw / jp_sync_acf_fields.php
Last active October 19, 2021 00:03 — forked from jessepearson/acf-update-via-json.php
Automatically update Advanced Custom Fields field groups via JSON
<?php
/**
* Function that will automatically update ACF field groups via JSON file update.
*
* @link http://www.advancedcustomfields.com/resources/synchronized-json/
*/
function jp_sync_acf_fields($json_dirs) {
$groups = acf_get_field_groups();
if (empty($groups)) {
return;
HOMEBREW_VERSION: 1.1.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: 394f9fa0aaa5854aa52bc589708a079665dcf462
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8c0ba8d0304f916acffea5d03e60989b8c796518
Core tap last commit: 48 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar