Two years ago, we started the process of migrating the runtime libraries to a new build system leveraging the built-in support for Swift in CMake. This effort aims to reduce the maintenance burden of the build, improve support for cross-compiling the runtime and compiler, and improve incremental build performance, with documented and tested CMake-native constructs. That work has progressed nicely, allowing the standard library to build independently of the compiler. The Windows installer and recent Apple OS releases already ship runtimes built with the new system. We aim to retire the legacy runtime build,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Evan Wilde <etcwilde@uvic.ca> | |
| # July 20, 2017 | |
| # defaults | |
| user="postgres" | |
| passwd="" | |
| host="localhost" | |
| db="ghtorrent" | |
| tmpdir='/tmp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Who is trying to access your server without permission? | |
| sudo journalctl -u sshd \ | |
| | awk '/Failed password for/ {print $11}' \ | |
| | while read address; do whois "$address" \ | |
| | grep -m 1 -i "Country: " \ | |
| | sed "s/[Cc]ountry:/$address/"; done \ | |
| | awk '{print $2 " --> " $1}' \ | |
| | uniq -c \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python | |
| # Just playing with theano. This doesn't do anything particularly useful | |
| # other than showing how things work | |
| import numpy | |
| import theano | |
| import theano.tensor as T | |
| from theano import function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Evan Wilde <etcwilde@uvic.ca> | |
| # May 19 2016 | |
| # /usr/lib/systemd/system/brightness.service | |
| # Grants non-root permissions to the backlight file so that it can be set by a user process | |
| # | |
| [Unit] | |
| Description=Grants non-root write access to the brightness file | |
| [Service] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for sysdevpath in $(find /sys/bus/usb/devices/usb*/ -name dev); do | |
| ( | |
| syspath="${sysdevpath%/dev}" | |
| devname="$(udevadm info -q name -p $syspath)" | |
| [[ "$devname" == "bus/"* ]] && continue | |
| eval "$(udevadm info -q property --export -p $syspath)" | |
| [[ -z "$ID_SERIAL" ]] && continue | |
| echo "/dev/$devname - $ID_SERIAL" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate rand; | |
| extern crate time; | |
| use std::thread; | |
| use std::sync::mpsc; | |
| use rand::distributions::{IndependentSample, Range}; | |
| use time::PreciseTime; | |
| /// Conncurent Monte-carlo PI calculator | |
| fn main() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <sys/io.h> | |
| #include <stdio.h> | |
| // Send data to keyboard | |
| // This is for my IBM rapid access 1 keyboard media key support | |
| // To activate all keys: | |
| // | |
| // sudo ./keyboard_send ea 71 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Rescan Hard disks | |
| if [ "$(id -u)" != "0" ]; then | |
| echo "Run as root" 1>&2 | |
| exit 1 | |
| fi | |
| for i in $(ls /sys/class/scsi_host/); do | |
| echo "- - -" > /sys/class/scsi_host/$i/scan; |
NewerOlder