Skip to content

Instantly share code, notes, and snippets.

37a38
> from six.moves.urllib.error import HTTPError
107c108
< data = json.load(open_url(request_path, data=request_params))
---
> data = json.load(open_url(request_path, data=request_params, validate_certs=False))
118c119
< request = open_url(request_path, data=data, headers=headers)
---
> request = open_url(request_path, data=data, headers=headers, validate_certs=False)

Keybase proof

I hereby claim:

  • I am andor44 on github.
  • I am andor (https://keybase.io/andor) on keybase.
  • I have a public key ASDBVFfNs2wKFsmnFWN8FSNQKhO7vgdr0HyjM1hwp499dQo

To claim this, I am signing this object:

fn read_memory(pid: u32, address: usize, len: usize) -> Vec<usize> {
let mut buffer = Vec::with_capacity(len);
let mut bytes_read = 0usize;
let h_process = unsafe { kernel32::OpenProcess(0x1F0FFF, 0, pid) };
unsafe {
kernel32::ReadProcessMemory(
h_process,
address as winapi::minwindef::LPCVOID,
buffer.as_mut_ptr() as winapi::minwindef::LPVOID,
4u64 * BUF_LEN,
sudo mkfs.ext4 /dev/mmcblk0p1
mke2fs 1.42.13 (17-May-2015)
Warning: could not erase sector 2: Attempt to write block to filesystem resulted in short write
Creating filesystem with 1925888 4k blocks and 482384 inodes
Filesystem UUID: 9bb89b28-cfa6-4c82-b130-c17dc280c92f
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Warning: could not read block 0: Attempt to read block from filesystem resulted in short read
[ 494.907448] mmc0: new high speed SDHC card at address 59b4
[ 494.907861] mmcblk0: mmc0:59b4 00000 7.35 GiB
[ 494.908959] mmcblk0: p1
[ 495.262047] mmcblk0: error -110 transferring data, sector 12624, nr 72, cmd response 0x900, card status 0xb00
[ 496.633172] mmc0: card never left busy state
[ 496.633184] mmc0: tried to reset card
[ 496.633189] mmcblk0: retrying using single block read
[ 496.637929] mmcblk0: error -110 sending status command, retrying
[ 496.640230] mmcblk0: error -110 sending status command, retrying
[ 496.642569] mmcblk0: error -110 sending status command, aborting
def test_change_preferences(flask, db, test_user, test_platforms):
preferences = {
# ...
}
result = test_user.post('/users/me', data={'preferences': preferences})
assert result.status_code == 200
db.refresh(test_user)
assert test_user.preferences.as_json() == preferences
preferences.pop('...')
User 'dokku' already exists
docker:x:1001:dokku
Adding user dokku to group adm
/var/lib/dpkg/info/dokku.postinst: 74: /var/lib/dpkg/info/dokku.postinst: cannot open /root/.ssh/id_rsa.pub: No such file
dpkg: error processing package dokku (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up python3-update-manager (1:0.196.14) ...
Setting up python3-distupgrade (1:0.220.8) ...
Setting up ubuntu-release-upgrader-core (1:0.220.8) ...
Setting up update-manager-core (1:0.196.14) ...
@fixture(scope='session', autouse=True)
def schema():
'''The database context provider fixture'''
# Monkeypatch social connections for tests
config = get_config('Testing')
User.social_auth = []
engine = create_engine(config.DATABASE_URL)
connection = engine.connect()
session.configure(bind=connection)
session.begin_nested()
session.begin_nested()
Model.metadata.create_all(engine)
yield session
session.rollback()
session.close()
-- Orbment started --
(WARN) wlc: Failed to bind socket:
(WARN) wlc: Failed to bind socket:
wlc: Activating tty
wlc: WLC-1 Chose mode (0) 1366x768
wlc: EGL context is double buffered
wlc: EGL version: 1.4 (DRI2)
wlc: EGL vendor: Mesa Project
wlc: EGL client APIs: OpenGL OpenGL_ES OpenGL_ES2 OpenGL_ES3
wlc: EGL context (RGB888)