Skip to content

Instantly share code, notes, and snippets.

View lae's full-sized avatar
☠️
untreated medical emergency sena please assist

lae

☠️
untreated medical emergency sena please assist
View GitHub Profile
[lae@haruka ~]$ mkvirtualenv electrum-3.2.3-test
Using base prefix '/usr'
New python executable in /home/lae/.virtualenvs/electrum-3.2.3-test/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/preactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/postactivate
virtualenvwrapper.user_scripts creating /home/lae/.virtualenvs/electrum-3.2.3-test/bin/get_env_details
(electrum-3.2.3-test) [lae@haruka ~]$ cd /tmp
packages-sync:~$ ls /mnt/ceph/packages/ubuntu/ubuntu/dists/bionic-updates/ -ltr
total 7130
drwxr-xr-x 1 archvsync archvsync 5 Oct 24 2017 restricted
drwxr-xr-x 1 archvsync archvsync 1 Oct 25 2017 by-hash
drwxr-xr-x 1 archvsync archvsync 6 May 11 05:13 universe
drwxr-xr-x 1 archvsync archvsync 6 Jun 28 10:58 multiverse
drwxr-xr-x 1 archvsync archvsync 9 Jul 9 17:13 main
-rw-r--r-- 1 archvsync archvsync 4098384 Jul 13 04:40 Contents-amd64.gz
-rw-r--r-- 1 archvsync archvsync 3024215 Jul 13 05:26 Contents-i386.gz
-rw-r--r-- 1 archvsync archvsync 819 Jul 13 20:26 Release.gpg
@lae
lae / main.rs
Last active June 11, 2018 05:56
lootcoin price bot
extern crate reqwest;
extern crate scraper;
extern crate egg_mode;
#[macro_use]
extern crate serde_derive;
extern crate serde;
extern crate toml;
extern crate tokio_core;
extern crate chrono;
@lae
lae / tfw
Last active April 19, 2018 21:33
[lae@yuzu hack]$ ansible-playbook -i localhost, assert_template.yml
<blah blah>
TASK [debug] **********************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while templating '{u'fedora-27': {u'environment': {u'root_expire_password': False}, u'container_command': u\"dnf install -y {{ (travis_lxc_profiles['fedora-25']['packages'] + additional_packages) | join(' ') }}\", u'packages': [u'python', u'ca-certificates', u'sudo'], u'label': u'Fedora 27'}, u'debian-stretch': {u'packages': [u'python', u'ca-certificates', u'curl', u'sudo', u'gnupg2'], u'label': u'Debian Stretch (9)'}, u'fedora-25': {u'environment': {u'root_expire_password': False}, u'container_command': u\"dnf install -y {{ (travis_lxc_profiles['fedora-25']['packages'] + additional_packages) | join(' ') }}\", u'packages': [u'python', u'ca-certificates', u'sudo'], u'label': u'Fedora 25'}, u'debian-wheezy': {u'packages': [u'python', u'ca-ce
--- /etc/nginx/sites-available/packages_mirror 2018-03-30 09:55:29.836239288 -0700
+++ /etc/nginx/sites-available/packages_mirror.new 2018-03-30 11:03:52.840386023 -0700
@@ -39,7 +39,12 @@
# location /uploads/ {
# proxy_pass https://up.lae.is/u/;
# }
- location ~ ^/(fedora-epel|ubuntu|ubuntu-releases)/ {
+ location ~ ^/fedora-epel/ {
+ resolver 10.11.10.11;
+ set $mirror "http://mirrors.kernel.org:80";

Keybase proof

I hereby claim:

  • I am lae on github.
  • I am lae (https://keybase.io/lae) on keybase.
  • I have a public key whose fingerprint is C754 45F1 B43A AE4D 0C23 B0C7 7666 1664 6829 92EC

To claim this, I am signing this object:

#!/bin/bash
read -p"How many alarms?" count
for c in $(seq 1 $count); do
read -p"What time are you setting alarm #${c} for? " date
echo "Okay, will ring you on $(date --date="$date")."
# Create a subshell and background it
(
sleep $(( $(date --date="$date" +%s) - $(date +%s) ));
echo 'Wake up!' #or whatever action you want to take
)&
i=0; ls data/js/tweets/*.js | while read; do sed /Grailbird/d $REPLY; done | sed -r 's/^} \] ?\[ \{/}, \{/g' | jq -r '.[] | select(.retweeted_status == null) | select (.entities.media != []) | .entities.media[] | .expanded_url + " " + .media_url_https' | while read tweet image; do id=$(printf $tweet | cut -d/ -f6); filename=$(printf $image | cut -d/ -f5); wget -O data/images/$id-$filename $image:orig& sleep 0.1; done
差出人: Breeze Productions <career@breezeprod.com>
Reply-to: michaelocsferro@gmail.com
宛先: undisclosed-recipients : ;
件名: Join Breeze Production upcoming project...
日付: Mon, 11 Dec 2017 11:08:16 -0600 (11.12.2017 09:08:16)
Hello,
I’ve reviewed your resume from Zip Recruiter and I think that you’d be a
great fit for our project as a Production Assistant for an event we have
travis_fold:start:worker_info
Worker information
hostname: fec3afaa-7996-4133-8812-c0676b894efe@1.production-3-worker-org-b-1-gce
version: v3.3.1 https://github.com/travis-ci/worker/tree/1153e5010ef9863bf96264b75fba506109633460
instance: travis-job-b8c9b089-150e-4340-a43f-8e4296fe3324 travis-ci-garnet-trusty-1503972833 (via amqp)
startup: 24.915979172s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: python