git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9
mv 6fb35afd237e42ef25f9 ConvertTo-Markdown
cd ConvertTo-Markdown
| public void sendOutlookMail() throws Exception { | |
| String toEmail = "abc@xyz.com"; | |
| String fromEmail = "xyz@abc.com"; | |
| //register the text/calendar mime type | |
| MimetypesFileTypeMap mimetypes = (MimetypesFileTypeMap) MimetypesFileTypeMap.getDefaultFileTypeMap(); | |
| mimetypes.addMimeTypes("text/calendar ics ICS"); |
| #include <ctype.h> | |
| #include <errno.h> | |
| #include <stdarg.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/stat.h> | |
| struct Archive |
| //here is descriptors | |
| //needs interrupt endpoint 1 in, bulk endpoint 2 out, bulk endpoint 3 in | |
| //info from pl2303hx datasheet | |
| /* Device Descriptor */ | |
| const USB_DEVICE_DESCRIPTOR device_dsc= | |
| { | |
| 0x12, // Size of this descriptor in bytes | |
| USB_DESCRIPTOR_DEVICE, // DEVICE descriptor type | |
| 0x0200, // USB Spec Release Number in BCD format |
| if [ ! -S /run/user/$(id -u)/dbus/user_bus_socket ]; then | |
| mkdir -p /run/user/$(id -u)/dbus | |
| dbus-daemon --session --fork --address=unix:path=/run/user/$(id -u)/dbus/user_bus_socket --systemd-activation | |
| fi | |
| if ! systemctl --user > /dev/null 2> /dev/null; then | |
| DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/dbus/user_bus_socket /usr/lib/systemd/systemd --user & > /dev/null 2> /dev/null | |
| fi |
Add the following chunk to your existing ISC dhcpd.conf file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup
| int k; | |
| double sin() ,cos(); | |
| main(){ | |
| float A=0, B=0, i, j, z[1760]; | |
| char b[1760]; | |
| printf("\x1b[2J"); | |
| for(; ; ) { | |
| memset(b,32,1760); | |
| memset(z,0,7040); | |
| for(j=0; 6.28>j; j+=0.07) { |