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 <msp430.h> | |
| int p1[4] = { | |
| BIT5+BIT6+BIT7, | |
| BIT4+BIT6+BIT7, | |
| BIT4+BIT5+BIT7, | |
| BIT4+BIT5+BIT6}; | |
| int p2[10]={ | |
| BIT2+BIT1+BIT3+BIT4+BIT5+BIT6, //0 | |
| BIT1+BIT5, //1 |
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 <msp430.h> | |
| #include <libemb/serial/serial.h> | |
| #include <libemb/conio/conio.h> | |
| #include <libemb/shell/shell.h> | |
| int v=0; | |
| int main() | |
| { WDTCTL = WDTPW | WDTHOLD; | |
| BCSCTL1 = CALBC1_1MHZ; // the usual | |
| DCOCTL = CALDCO_1MHZ; // |
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
| SOURCE = blink.c | |
| ADDITIONAL = | |
| NAME = $(basename $(SOURCE)) | |
| CPU = msp430g2553 | |
| OPTIMIZATION = -O0 | |
| CFLAGS = -mmcu=$(CPU) $(OPTIMIZATION) -Wall -g | |
| LIBEMB = -lshell -lconio -lserial | |
| $(NAME).elf: $(SOURCE) $(ADDITIONAL) | |
| ifeq (,$(findstring libemb,$(shell cat $(SOURCE)))) |
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 <msp430.h> | |
| int main(void) { | |
| WDTCTL = WDTPW | WDTHOLD; | |
| BCSCTL1 = CALBC1_1MHZ; | |
| DCOCTL = CALDCO_1MHZ; | |
| P1DIR = 0x41; | |
| P1OUT = 0x40; |
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
| .text | |
| RESET_ISR: | |
| MOV #WDTPW+WDTHOLD, &WDTCTL | |
| MOV #__stack, R1 | |
| CLR.B &DCOCTL | |
| MOV.B &CALBC1_1MHZ, &BCSCTL1 | |
| MOV.B &CALDCO_1MHZ, &DCOCTL | |
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
| ##Copy and paste into your .bashrc | |
| ##usage: lazygit "your message here" | |
| function lazygit() { | |
| git add . | |
| git commit -a -m "$1" | |
| git push | |
| } |
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
| $PortName = "IP_141.218.90.17" | |
| $PortIP = "141.218.90.17" | |
| $DriverName = "KONICA MINOLTA C754SeriesPCL SP" | |
| $DriverLocation = "\c754_c754e_c654_c654e_pcl6_win64_v312ssd03_en_add\KOFYSJ1_.inf" | |
| ##Leave This code commented out unless you are removing old drivers with the same name | |
| #net stop spooler | |
| #net start spooler | |
| #rundll32 printui.dll PrintUIEntry /dl /q /n $DriverName | |
| #rundll32 printui.dll,PrintUIEntry /dd /m $DriverName |
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
| alias ,edit-alias='nano .bashrc' | |
| alias ,processes='ps -u gigglesbw4' | |
| alias ,webcam2="scp cclub@141.218.117.219:~/misc/image.jpg /home/members/gigglesbw4/www" | |
| alias ,webcam="scp cclub@141.218.117.219:/tmp/cclub/webcam.jpg /home/members/gigglesbw4/www" | |
| alias shrek='ssh shrek.dhcp.io -l cclub' | |
| alias millenniumfalcon='ssh shrek.dhcp.io -p 9000 -l cclub' | |
| alias uglyduck='ssh shrek.dhcp.io -p 9010 -l administrator' | |
| alias ralph='ssh shrek.dhcp.io -p 9030 -l cclub' |
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
| #Labels Each Picture using ImageMagick | |
| #http://www.imagemagick.org/script/binary-releases.php#windows | |
| #Select which routine you would like to run: 1, 2, or 3 | |
| $option=1 | |
| #Gravity is the position of the label: North, South, Center | |
| $gravity="South" | |
| #Use "convert -list color" to see color options ex: Green, Red, Orange, Blue, Black, White | |
| #Use "convert -list font" to see font options ex: Arial, Calibri, Times-New-Roman | |
| $backgroundcolor="White" |
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
| virt-install --connect qemu:///system --arch=x86_64 -n win2012 --ram 4096 --cpu host --vcpus=2 --hvm --disk size=100,sparse=false,format=raw,bus=virtio --cdrom /home/cclub/images/en_windows_server_2012_x64_dvd_915478.iso --os-type=windows --os-variant=win2k8 --network bridge=br0,model=virtio --noautoconsole | |
| qemu-system-x86_64 --enable-kvm -m 2048 -boot d -drive file=WIN2K8R2.qcow2,if=virtio -cdrom /home/cclub/images/en_windows_server_2012_x64_dvd_915478.iso -drive file=virtio-win-drivers-20120712-1.iso,media=cdrom -net nic,model=virtio -net user | |
| qemu-img create -f qcow2 ws2012.qcow2 80g | |