When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
#!/bin/bash | |
#set persistence mode for all GPU | |
sudo nvidia-smi -pm 1 | |
#Set gpu max power at 160w | |
sudo nvidia-smi -pl 160 | |
#Set Power level of specific GPU (1080) in watts | |
# sudo nvidia-smi -i 2 -pl 200 |
# include <stdlib.h> | |
# include <stdio.h> | |
# include <sys/stat.h> | |
# include <pthread.h> | |
# include <fcgiapp.h> | |
const char* const sockpath = "/tmp/fcgicpp.sock"; |
Downloaded Windows XP / IE8 image from http://www.modern.ie/en-us/virtualization-tools
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_XP/IE8.XP.For.MacVirtualBox.ova"
from __future__ import print_function | |
import ctypes | |
from ctypes import wintypes | |
GetCurrentProcess = ctypes.windll.kernel32.GetCurrentProcess | |
GetCurrentProcess.restype = wintypes.HANDLE | |
OpenProcessToken = ctypes.windll.advapi32.OpenProcessToken | |
OpenProcessToken.argtypes = (wintypes.HANDLE, wintypes.DWORD, ctypes.POINTER(wintypes.HANDLE)) | |
OpenProcessToken.restype = wintypes.BOOL |
-- We have a table (ip_log) of proper IPv4 addresses (ip) | |
select bitand(ip / 16777216, 255) || '.' || bitand(ip / 65536, 255) || '.' || bitand(ip / 256, 255) || '.' || bitand(ip, 255) ip | |
from ip_log; | |
-- ...or a function to do the same: | |
create or replace function long2ip(ip in number) | |
return varchar2 deterministic | |
as | |
begin | |
return bitand(ip / 16777216, 255) || '.' || |
HTTP Headers | |
------------ | |
-H "X-PAYPAL-SECURITY-USERID: <Caller-UID>" # UserID from the Caller account | |
-H "X-PAYPAL-SECURITY-PASSWORD: <Caller-Pswd>" # Password from the Caller account | |
-H "X-PAYPAL-SECURITY-SIGNATURE: <Caller-Sig>" # Signature from the Caller account | |
-H "X-PAYPAL-REQUEST-DATA-FORMAT: JSON" | |
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: JSON" | |
-H "X-PAYPAL-SANDBOX-EMAIL-ADDRESS: <Caller-Sandbox-edress>" | |
-H "X-PAYPAL-DEVICE-IPADDRESS: 192.0.2.0" | |
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" # Standard Sandbox App ID |