Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
plist=$1"/Info.plist" | |
/usr/libexec/PlistBuddy -c "Add :UIFileSharingEnabled bool true" $plist |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
The UK Houses of Parliament netblocks are publicly listed:
https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=194.60.0.0%20-%20194.60.63.255 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.122.128%20-%2082.111.122.135 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.119.192%20-%2082.111.119.199 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.126.144%20-%2082.111.126.159 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=212.161.99.0%20-%20212.161.99.7
They were unwilling to reveal the UK parliament web proxies in an FOI request, so here's the list of every IP address that has made a Wikipedia edit from the UK parliament netblocks. Guess the proxies.
#! /usr/bin/osascript | |
(* | |
--------------------------------------------------------------------------------- | |
Script: SpreadsheetExportToCSV | |
Command-line tool to convert a spreadsheet document to CSV | |
This AppleScript is tested with and compatible with Apple iWork Numbers 3.6, | |
current as at October 23, 2015. |
def addUnique(l,item): | |
if item not in l: | |
l.append(item) | |
return l | |
from PIL import Image | |
import sys | |
im = Image.open(sys.argv[1]) | |
pix = im.load() |
// My game is using a Japanese font that doesn't seem to declare codepoint for Kanjis for those which only comprised of a simple radical. | |
// e.g. https://en.wikipedia.org/wiki/Radical_180 | |
// Radical 180 (U+2FB3) ~~ 音 (U+97F3) | |
// I am remapping the codepoints in software but couldn't find an easy to parse list, ended up scraping from Unicode webpages | |
{ 0x4E00, 0x2F00 }, // Kangxi Radical One | |
{ 0x4E28, 0x2F01 }, // Kangxi Radical Line | |
{ 0x4E36, 0x2F02 }, // Kangxi Radical Dot | |
{ 0x4E3F, 0x2F03 }, // Kangxi Radical Slash | |
{ 0x4E59, 0x2F04 }, // Kangxi Radical Second |
toki. ni li lipu pi nasin pona lon toki pona. toki Sonko la nimi ona li "Daodejing" (anu "Tao te ching", kepeken ilo pi sin ala).
tenpo ni la lipu ni li pini ala. sina li wile pona e ijo la o toki tawa mi lon ilo IRC.
nasin li jo e nimi la
ona li nasin ala pi tenpo ale
nimi pi ken nimi li
wile ante tan tenpo
var type = Type.GetType( "UnityEditor.PlayerSettings,UnityEditor" ); | |
if ( type != null ) | |
{ | |
var propertyInfo = type.GetProperty( "submitAnalytics", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static ); | |
if ( propertyInfo != null ) | |
{ | |
{ | |
var value = (bool)propertyInfo.GetValue( null, null ); | |
Debug.LogFormat( "PlayerSettings.submitAnalytics {0}", value ); | |
} |
On Jul 4, 2017 theverge.com posted an article about photobucket (silently) no longer allowing their users to source their images on 3rd party websites for free, thus leaving websites all over the web broken displaying the following image in replace:
Me being one of those individual, I attempted to go into my photobucket account and download my content as I now have my own hosting I am able to store those images on; however, the only ways to bulk download (on desktop) is by downloading albums through their interface. Doing so, gave me the following error message: "Hmmm. Something didn't click. Want to give it another shot? Try again now."
Doing this serveral times, in different browsers (chrome, firefox and safari), after disabling all my addons and extensions (including ad blockers), it still didn't work.
At this point, doing anything on their website w
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE BangPatterns #-} | |
{-# OPTIONS_GHC -Wall #-} | |
import Data.IORef |