Skip to content

Instantly share code, notes, and snippets.

Avatar
Loading...

Niccolo Brogi nkkollaw

Loading...
View GitHub Profile
View nomi_italiani.txt
-- 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 Jan 13, 2018 — forked from haasn/about:config.md
Firefox bullshit removal via about:config
View about:config.md

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.

View XFCE
# 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 Dec 2, 2017 — forked from aaronpk/github-oauth2-client.php
Simple PHP example of using Github's OAuth 2 API
View github-oauth2-client.php
<?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 — forked from joshuadavidnelson/remove-feeds.php
Remove all feeds from WordPress
View remove-feeds.php
<?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 Dec 5, 2020 — forked from jessepearson/acf-update-via-json.php
Automatically update Advanced Custom Fields field groups via JSON
View jp_sync_acf_fields.php
<?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;
View brew config
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