Skip to content

Instantly share code, notes, and snippets.

View kcmannem's full-sized avatar
◾️

Krishna Mannem kcmannem

◾️
View GitHub Profile
for(String s: this.gPane.candidates) {
int bptr = this.gPane.candidates.indexOf(s);
try {
this.gPane.graphBars.get(bptr).limit = (float)voteCount.get(s)/(float)resultDB.size();
}catch(Exception e) {
this.gPane.graphBars.get(bptr).limit = 0;
}
System.out.println(this.gPane.graphBars.get(bptr).limit);
this.gPane.graphBars.get(bptr).start();
}
1. buy something
2. print out the emailed reciept
3. screenshot the creditcard statement of the something
4. go to deans office (corner office 3rd floor minto, MC3091)
5. open the door (this step is important or may cause injury)
6. ask for Cheryl Auclair, she is the front desk for the deans office, she is most likely the one that will greet you once you enter so ask at your own risk.
7. better question to ask is, I have some purchases for our cusef funded project CU in the Air, can i get reimbursed for my purchases.
8. she will ask for your contact info(name, student#, address for cheque, recipt, creditcard statement)
9. go home
10. you will recieve an email saying you have to come in to sign some forms from Cheryl
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_i2c.h"
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_gpio.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
@kcmannem
kcmannem / func.S
Last active November 27, 2016 01:21
.text
.type _test, @function
.globl _test
_test:
call *%rdi
ret
@kcmannem
kcmannem / bt
Last active November 29, 2016 03:26
* thread #1: tid = 22451, 0x0000000000400c93 main`thunk + 35 at func.swift:0, name = 'main', stop reason = signal SIGSEGV: address access protected (fault address: 0x400d38)
frame #0: 0x0000000000400c93 main`thunk + 35 at func.swift:0
1 @_silgen_name("_test")
2 func testing(x: () -> Any) -> Int
3
4 /*func testing(x: () -> Void) {
5 x()
6 }*/
7
(lldb) disassemble
@kcmannem
kcmannem / func.S
Last active December 24, 2016 20:43
frame #0: test`testing(x=1, b=2, c=3, d="helo") -> () at test.swift:2
1 func testing(x: Int, b: Int, c: Int, d: String) {
-> 2 }
3 testing(x:1, b:2, c:3, d:"helo")
(lldb) d
test`testing(x : Int, b : Int, c : Int, d : String) -> ():
0x400bc0 <+0>: pushq %rbp
0x400bc1 <+1>: movq %rsp, %rbp
0x400bc4 <+4>: subq $0x30, %rsp
0x400bc8 <+8>: movq %rdi, -0x8(%rbp)
## Configuration file of Harbor
#This attribute is for migrator to detect the version of the .cfg file, DO NOT MODIFY!
_version = 1.6.0
#The IP address or hostname to access admin UI and registry service.
#DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
hostname = 10.74.5.138
#The protocol for accessing the UI and token/notification service, by default it is http.
#It can be set to https if ssl is enabled on nginx.
version: '2'
services:
log:
image: goharbor/harbor-log:v1.6.0
container_name: harbor-log
restart: always
volumes:
- ../dev/var/log/harbor/:/var/log/docker/:z
- ./common/config/log/:/etc/logrotate.d/:z
ports:
@kcmannem
kcmannem / zfs
Created November 26, 2018 17:21
#CREATING
- you can create a zpool manager through img files just like btrfs but its not recommended as it looses all of zfs' control of underlying disks and resiliance depends on the underlying fs. But thats ok since we only care about clone speeds and ability to scale
creating/destroying new filesystems.
- the mount table is populated automatically, will be interesting to how it scales on 100s of filesystems
- These are pretty avg times
- if this is how fast new creates take, damn those cow clones gunna blaze it
root@ownedbykrishna:/home/kmannem# time zfs create test/diek
real 0m0.033s
user 0m0.002s
sys 0m0.013s
[2195605.419924] wbrdg-0afe0044: port 1(wsgj51bidtp3-0) entered blocking state
[2195605.419927] wbrdg-0afe0044: port 1(wsgj51bidtp3-0) entered forwarding state
[2195605.421406] wbrdg-0afe0044: port 1(wsgj51bidtp3-0) entered disabled state
[2195608.972838] wbrdg-0afe0044: port 1(wsgj51bidtp3-0) entered blocking state
[2195608.972842] wbrdg-0afe0044: port 1(wsgj51bidtp3-0) entered forwarding state
[2195609.478141] wbrdg-0afe011c: port 1(wsgj51bidtjq-0) entered disabled state
[2195609.494125] device wsgj51bidtjq-0 left promiscuous mode
[2195609.494148] wbrdg-0afe011c: port 1(wsgj51bidtjq-0) entered disabled state
[2195637.396542] wbrdg-0afe00e4: port 1(wsgj51bidtjk-0) entered disabled state
[2195637.400387] device wsgj51bidtjk-0 left promiscuous mode